Romain Vimont
53009d018b
vlc_arrays: refactor foreach loop
Replace:
FOREACH_ARRAY(item, array)
// ...
FOREACH_END()
by:
ARRAY_FOREACH(item, array)
{
// ...
}
Note that it is not possible to declare the iteration variable directly
anymore:
ARRAY_FOREACH(void *item, array)
Instead, use:
void *item;
ARRAY_FOREACH(item, array)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
8 years ago
David Fuhrmann
2192f658cb
macosx: Do not try to release a nil object
8 years ago
Marvin Scholz
4980447fd4
macosx: Force arrow cursor for extension UI labels
Now that labels have to be selectable, force the cursor to the arrow
cursor instead of the text selection cursor.
9 years ago
Marvin Scholz
e18cdcddbf
macosx: Make links in extension UI labels clickable
9 years ago
Marvin Scholz
222bc139ad
macosx: Fix default font in extensions UI
Default to the system font for extension textfields, labels and
webviews.
9 years ago
Marvin Scholz
f7c023b5cd
macosx: Set correct font for NSButton in extensions
9 years ago
Marvin Scholz
96d373800c
macosx: Properly close VLCDialogWindow
Previously, the already released Windows would stay on screen, that
should not happen.
9 years ago
Marvin Scholz
c657a08909
macosx: Do not release VLCDialogWindow instance
Releasing it at this point causes a crash later.
Given that we do a CFBridgingRetain, not releasing it here possibly
reintroduces a memory leak, and should be investigated at some point.
Fix #19772
CD f26743f6-af62-451f-99d1-02a3e02b98a7
9 years ago
Marvin Scholz
7794fa5a2f
macOS: Add comments explaining ownership passing
This adds comments that should make it clearer how ownership is handled
and passed back and forth between ARC and non-ARC in the
VLCExtensionDialogProvider.
9 years ago
Marvin Scholz
710da35f79
macOS: Fix ownership in ExtensionsDialogProvider
Fix #17912
9 years ago
David Fuhrmann
aa373d36fc
macosx: Rename to VLCExtensionsManager
10 years ago
David Fuhrmann
e1df0389e2
macosx: Rename to VLCExtensionsDialogProvider
10 years ago
Felix Paul Kühne
e0dfd83141
macosx: rename VLCMain source file and split out VLCApplication class
10 years ago
Felix Paul Kühne
545616ae33
macosx/extensions: implement new dialog callback
11 years ago
David Fuhrmann
fabe8243fe
macosx: Replace VLCIntf by getIntf()
The old VLCIntf macro is deprecated, getIntf() should be used
instead.
11 years ago
Felix Paul Kühne
456ec97fda
macosx: fix resizing issue when updating lua extension dialogs ( close #14457 )
11 years ago
David Fuhrmann
4aa458cd44
macosx: fix coredialog provider, fix dialog initialization
This removes the singleton, fixes the xib, and initializes
the dialog provider class at the correct time. dialog_Register
will be called only once now.
11 years ago
David Fuhrmann
f54301b602
macosx: avoid zombie when updating extensions dialog
CFBridgingRelease was used in the wrong place.
All view objects should only be retained by the window (and in this
situation by the grid view dicts as well), thus they is no need to
additionally retain them for the p_sys_intf pointer.
11 years ago
David Fuhrmann
eaa1ca1c35
macosx: remove singletons of ExtensionsDialogProvider and manager
Also deinitalizes both objects. This should fix the refcount
crash on exit.
11 years ago
Felix Paul Kühne
2f854ae389
macosx: deploy string conversation function in more cases
11 years ago
Felix Paul Kühne
5289253f96
macosx: fix extension rendering and clean the code a bit
11 years ago
Felix Paul Kühne
5fb6cff9d4
macosx: update singleton creation
11 years ago
Felix Paul Kühne
0b9b7eab08
macosx: privatise instance variables and resolve class dependencies on internal implementation details
11 years ago
Felix Paul Kühne
bb15c81583
macosx: switch to automated reference counting (refs #2813 )
11 years ago
David Fuhrmann
674fb436f2
macosx: extensions: delete dead code
11 years ago
David Fuhrmann
d768b02e60
macosx: fix checked state for extensions ( close #14855 )
11 years ago
David Fuhrmann
aa6b2c997c
macosx: extensions: Allow multiple selections in table view
close #14464
11 years ago
David Fuhrmann
e2270a4406
macosx: extensions: Allow multiple entries with same name in popup menu
11 years ago
Felix Paul Kühne
706da72a53
macosx: fix compilation on 10.6 with clang 3.0
13 years ago
Felix Paul Kühne
082d557e3b
macosx: trivial copyright fix
13 years ago
Felix Paul Kühne
b2e4722656
macosx: destroy lua dialogs correctly on close ( close #8567 )
13 years ago
Felix Paul Kühne
bd0c4a170d
macosx: fix memory leak
13 years ago
Felix Paul Kühne
41aa370bf0
macosx: add support for checkboxes created through lua scripts ( close #8561 )
13 years ago
Felix Paul Kühne
5e8d27a227
macosx: use modern ObjC syntax for C-Numbers to NSNumber conversations
13 years ago
Felix Paul Kühne
cc3fef6df3
macosx: use modern ObjC syntax for C-String to NSString conversations
13 years ago
Josh Watzman
ad765c21ff
macosx: Don't re-center extensions on every dialog update
If the user has moved the extension dialog, we don't want to re-center it on every single update -- many extensions update their dialogs on every input change, and this behavior can cause the extension dialog to keep re-overlapping with the video, which is very frustrating.
Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
14 years ago
Felix Paul Kühne
c33e5f1920
macosx: unify and modernize coding style
14 years ago
Felix Paul Kühne
267137066a
macosx: fixed white spacing errors
Found by the GTM Xcode plugin, which was finally updated for Xcode4
14 years ago
Felix Paul Kühne
6afece092f
macosx: fixed correct display of UTF8 strings within the Extension dialogs ( fixes #5848 )
15 years ago
Felix Paul Kühne
7e47a1f723
macosx: fixed compilation after ugly merge
15 years ago
Brendon Justin
efa2f96d31
macosx: Lua extensions infrastructure
Add files for extension creation management, add them to the build process, and
add them to the XCode project.
Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
15 years ago