[vlc-commits] macosx: fixed warnings
Felix Paul Kühne
git at videolan.org
Mon Apr 25 18:03:37 CEST 2011
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Apr 25 18:00:44 2011 +0200| [60e9829d433714e35414bd32035bd12a02360f03] | committer: Felix Paul Kühne
macosx: fixed warnings
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=60e9829d433714e35414bd32035bd12a02360f03
---
modules/gui/macosx/applescript.m | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/modules/gui/macosx/applescript.m b/modules/gui/macosx/applescript.m
index f3e8c4c..65cae70 100644
--- a/modules/gui/macosx/applescript.m
+++ b/modules/gui/macosx/applescript.m
@@ -95,7 +95,7 @@
return nil;
}
- VLCControls * o_controls = (VLCControls *)[[NSApp delegate] controls];
+ VLCControls * o_controls = [[VLCMain sharedInstance] controls];
if ( o_controls )
{
@@ -143,12 +143,10 @@
@implementation NSApplication(ScriptSupport)
- (BOOL) scriptFullscreenMode {
- VLCControls * o_controls = (VLCControls *)[[self delegate] controls];
-
- return [o_controls isFullscreen];
+ return [[[VLCMain sharedInstance] controls] isFullscreen];
}
- (void) setScriptFullscreenMode: (BOOL) mode {
- VLCControls * o_controls = (VLCControls *)[[self delegate] controls];
+ VLCControls * o_controls = [[VLCMain sharedInstance] controls];
if (mode == [o_controls isFullscreen]) return;
[o_controls toogleFullscreen: self];
}
More information about the vlc-commits
mailing list