Commit f25e0c78 authored by Felix Paul Kühne's avatar Felix Paul Kühne

* cleaning, reformatting, clarifying here and there...

parent 63d9df0e
...@@ -117,15 +117,6 @@ const NSTimeInterval HOLD_RECOGNITION_TIME_INTERVAL=0.4; ...@@ -117,15 +117,6 @@ const NSTimeInterval HOLD_RECOGNITION_TIME_INTERVAL=0.4;
[super dealloc]; [super dealloc];
} }
/* this was added by the VideoLAN team to ensure Leopard-compatibility and is VLC-only */
#if GC_ENABLED
- (void)finalize
{
[self stopListening: self];
[super finalize];
}
#endif
- (int) remoteId { - (int) remoteId {
return remoteId; return remoteId;
} }
......
...@@ -83,11 +83,11 @@ static VLAboutBox *_o_sharedInstance = nil; ...@@ -83,11 +83,11 @@ static VLAboutBox *_o_sharedInstance = nil;
/* setup the creator / revision field */ /* setup the creator / revision field */
if( VLC_Changeset() != "exported" ) if( VLC_Changeset() != "exported" )
[o_revision_field setStringValue: [NSString stringWithFormat: \ [o_revision_field setStringValue:
_NS("Compiled by %s, based on SVN revision %s"), VLC_CompileBy(), \ [NSString stringWithFormat: _NS("Compiled by %s, based on SVN revision %s"),
VLC_Changeset()]]; VLC_CompileBy(), VLC_Changeset()]];
else else
[o_revision_field setStringValue: [NSString stringWithFormat: \ [o_revision_field setStringValue: [NSString stringWithFormat:
_NS("Compiled by %s"), VLC_CompileBy()]]; _NS("Compiled by %s"), VLC_CompileBy()]];
/* Setup the nameversion field */ /* Setup the nameversion field */
......
/***************************************************************************** /*****************************************************************************
* applescript.h: MacOS X AppleScript support * applescript.h: MacOS X AppleScript support
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2003 the VideoLAN team * Copyright (C) 2002-2003, 2005, 2007 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Derk-Jan Hartman <thedj@users.sourceforge.net> * Authors: Derk-Jan Hartman <thedj@users.sourceforge.net>
...@@ -38,6 +38,6 @@ ...@@ -38,6 +38,6 @@
*****************************************************************************/ *****************************************************************************/
@interface NSApplication(ScriptSupport) @interface NSApplication(ScriptSupport)
- (BOOL) scriptFullscreenMode; - (BOOL)scriptFullscreenMode;
- (void) setScriptFullscreenMode: (BOOL) mode; - (void)setScriptFullscreenMode: (BOOL)mode;
@end @end
/***************************************************************************** /*****************************************************************************
* applescript.m: MacOS X AppleScript support * applescript.m: MacOS X AppleScript support
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2003 the VideoLAN team * Copyright (C) 2002-2003, 2005, 2007 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Derk-Jan Hartman <thedj@users.sourceforge.net> * Authors: Derk-Jan Hartman <thedj@users.sourceforge.net>
......
/***************************************************************************** /*****************************************************************************
* bookmarks.h: MacOS X Bookmarks window * bookmarks.h: MacOS X Bookmarks window
***************************************************************************** *****************************************************************************
* Copyright (C) 2005 the VideoLAN team * Copyright (C) 2005, 2007 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Felix Kühne <fkuehne@users.sf.net> * Authors: Felix Kühne <fkuehne@users.sf.net>
......
...@@ -82,16 +82,6 @@ static VLCBookmarks *_o_sharedInstance = nil; ...@@ -82,16 +82,6 @@ static VLCBookmarks *_o_sharedInstance = nil;
[super dealloc]; [super dealloc];
} }
#if GC_ENABLED
- (void)finalize
{
/* release old input even if GC is enabled on 10.5 */
if( p_old_input )
vlc_object_release( p_old_input );
[super finalize];
}
#endif
- (void)initStrings - (void)initStrings
{ {
/* localise the items */ /* localise the items */
......
/***************************************************************************** /*****************************************************************************
* controls.h: MacOS X interface module * controls.h: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2006 the VideoLAN team * Copyright (C) 2002-2007 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
- (BOOL) isFullscreen; - (BOOL) isFullscreen;
- (IBAction)windowAction:(id)sender; - (IBAction)windowAction:(id)sender;
- (BOOL)keyEvent:(NSEvent *)o_event; - (BOOL)keyEvent:(NSEvent *)o_event;
- (void)scrollWheel:(NSEvent *)theEvent; - (void)scrollWheel: (NSEvent *)theEvent;
- (void)setupVarMenuItem:(NSMenuItem *)o_mi - (void)setupVarMenuItem:(NSMenuItem *)o_mi
target:(vlc_object_t *)p_object target:(vlc_object_t *)p_object
...@@ -116,8 +116,10 @@ ...@@ -116,8 +116,10 @@
int i_type; int i_type;
} }
- (id)initWithVar: (const char *)_psz_name Object: (int)i_id - (id)initWithVar: (const char *)_psz_name
Value: (vlc_value_t)val ofType: (int)_i_type; Object: (int)i_id
Value: (vlc_value_t)val
ofType: (int)_i_type;
- (char *)name; - (char *)name;
- (int)objectID; - (int)objectID;
- (vlc_value_t)value; - (vlc_value_t)value;
......
/***************************************************************************** /*****************************************************************************
* controls.m: MacOS X interface module * controls.m: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2006 the VideoLAN team * Copyright (C) 2002-2007 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
......
/***************************************************************************** /*****************************************************************************
* embeddedwindow.h: MacOS X interface module * embeddedwindow.h: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2005-2006 the VideoLAN team * Copyright (C) 2005-2007 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Benjamin Pracht <bigben at videolan dot org> * Authors: Benjamin Pracht <bigben at videolan dot org>
...@@ -52,9 +52,9 @@ ...@@ -52,9 +52,9 @@
NSRecursiveLock * o_animation_lock; NSRecursiveLock * o_animation_lock;
} }
- (void)setTime:(NSString *)o_arg_ime position:(float)f_position; - (void)setTime: (NSString *)o_arg_ime position: (float)f_position;
- (void)playStatusUpdated:(int)i_status; - (void)playStatusUpdated: (int)i_status;
- (void)setSeekable:(BOOL)b_seekable; - (void)setSeekable: (BOOL)b_seekable;
- (NSView *)mainView; - (NSView *)mainView;
......
/***************************************************************************** /*****************************************************************************
* embeddedwindow.m: MacOS X interface module * embeddedwindow.m: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2005-2006 the VideoLAN team * Copyright (C) 2005-2007 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Benjamin Pracht <bigben at videolan dot org> * Authors: Benjamin Pracht <bigben at videolan dot org>
......
/***************************************************************************** /*****************************************************************************
* equalizer.h: MacOS X interface module * equalizer.h: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2004-2006 the VideoLAN team * Copyright (C) 2004-2007 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Jérôme Decoodt <djc@videolan.org> * Authors: Jérôme Decoodt <djc@videolan.org>
...@@ -55,9 +55,9 @@ ...@@ -55,9 +55,9 @@
- (void)windowWillClose:(NSNotification *)aNotification; - (void)windowWillClose:(NSNotification *)aNotification;
- (void)awakeFromNib; - (void)awakeFromNib;
- (void)setValue:(float)value forSlider:(int)index; - (void)setValue: (float)value forSlider: (int)index;
- (id)getSliderByIndex:(int)index; - (id)getSliderByIndex: (int)index;
- (void)setBandSlidersValues:(float *)values; - (void)setBandSlidersValues: (float *)values;
- (void)initBandSliders; - (void)initBandSliders;
......
...@@ -46,31 +46,31 @@ ...@@ -46,31 +46,31 @@
- (void)setPlay; - (void)setPlay;
- (void)setPause; - (void)setPause;
- (void)setStreamTitle:(NSString *)o_title; - (void)setStreamTitle: (NSString *)o_title;
- (void)setStreamPos:(float) f_pos andTime:(NSString *)o_time; - (void)setStreamPos: (float)f_pos andTime: (NSString *)o_time;
- (void)setSeekable:(BOOL) b_seekable; - (void)setSeekable: (BOOL)b_seekable;
- (void)setVolumeLevel: (float)f_volumeLevel; - (void)setVolumeLevel: (float)f_volumeLevel;
- (void)setNonActive:(id)noData; - (void)setNonActive: (id)noData;
- (void)setActive:(id)noData; - (void)setActive: (id)noData;
- (void)focus:(NSTimer *)timer; - (void)focus: (NSTimer *)timer;
- (void)unfocus:(NSTimer *)timer; - (void)unfocus: (NSTimer *)timer;
- (void)mouseExited:(NSEvent *)theEvent; - (void)mouseExited: (NSEvent *)theEvent;
- (void)fadeIn; - (void)fadeIn;
- (void)fadeOut; - (void)fadeOut;
- (NSTimer *)fadeTimer; - (NSTimer *)fadeTimer;
- (void)setFadeTimer:(NSTimer *)timer; - (void)setFadeTimer: (NSTimer *)timer;
- (void)autoHide; - (void)autoHide;
- (void)keepVisible:(NSTimer *)timer; - (void)keepVisible: (NSTimer *)timer;
- (void)mouseDown:(NSEvent *)theEvent; - (void)mouseDown: (NSEvent *)theEvent;
- (void)mouseDragged:(NSEvent *)theEvent; - (void)mouseDragged: (NSEvent *)theEvent;
- (BOOL)isDisplayed; - (BOOL)isDisplayed;
- (void)setVoutWasUpdated: (int) i_screen; - (void)setVoutWasUpdated: (int)i_screen;
@end @end
@interface VLCFSPanelView : NSView @interface VLCFSPanelView : NSView
...@@ -80,8 +80,8 @@ ...@@ -80,8 +80,8 @@
NSTextField *o_streamTitle_txt, *o_streamPosition_txt; NSTextField *o_streamTitle_txt, *o_streamPosition_txt;
NSSlider *o_fs_timeSlider, *o_fs_volumeSlider; NSSlider *o_fs_timeSlider, *o_fs_volumeSlider;
} }
- (id)initWithFrame:(NSRect)frameRect; - (id)initWithFrame: (NSRect)frameRect;
- (void)drawRect:(NSRect)rect; - (void)drawRect: (NSRect)rect;
- (void)setPlay; - (void)setPlay;
- (void)setPause; - (void)setPause;
...@@ -94,23 +94,23 @@ ...@@ -94,23 +94,23 @@
- (IBAction)next:(id)sender; - (IBAction)next:(id)sender;
- (IBAction)forward:(id)sender; - (IBAction)forward:(id)sender;
- (IBAction)backward:(id)sender; - (IBAction)backward:(id)sender;
- (IBAction)fsTimeSliderUpdate:(id)sender; - (IBAction)fsTimeSliderUpdate: (id)sender;
- (IBAction)fsVolumeSliderUpdate:(id)sender; - (IBAction)fsVolumeSliderUpdate: (id)sender;
@end @end
@interface VLCFSTimeSlider : NSSlider @interface VLCFSTimeSlider : NSSlider
{ {
} }
- (void)drawKnobInRect:(NSRect)knobRect; - (void)drawKnobInRect: (NSRect)knobRect;
- (void)drawRect:(NSRect)rect; - (void)drawRect: (NSRect)rect;
@end @end
@interface VLCFSVolumeSlider : NSSlider @interface VLCFSVolumeSlider : NSSlider
{ {
} }
- (void)drawKnobInRect:(NSRect)knobRect; - (void)drawKnobInRect: (NSRect)knobRect;
- (void)drawRect:(NSRect)rect; - (void)drawRect: (NSRect)rect;
@end @end
...@@ -93,17 +93,6 @@ ...@@ -93,17 +93,6 @@
return YES; return YES;
} }
#if GC_ENABLED
- (void)finalize
{
/* dealloc isn't called on 10.5 in case that GC is enabled, so we need to provide the functionality here */
[[NSNotificationCenter defaultCenter] removeObserver: self];
[self setFadeTimer:nil];
[super finalize];
}
#endif
-(void)dealloc -(void)dealloc
{ {
[[NSNotificationCenter defaultCenter] removeObserver: self]; [[NSNotificationCenter defaultCenter] removeObserver: self];
......
...@@ -94,16 +94,6 @@ ...@@ -94,16 +94,6 @@
return o_error_panel; return o_error_panel;
} }
#if GC_ENABLED
-(void)finalize
{
/* dealloc doesn't get called on 10.5 if GC is enabled, so we need to provide the basic functionality here */
[[NSNotificationCenter defaultCenter] removeObserver:self];
[o_interaction_list removeAllObjects];
[super finalize];
}
#endif
-(void)dealloc -(void)dealloc
{ {
[[NSNotificationCenter defaultCenter] removeObserver:self]; [[NSNotificationCenter defaultCenter] removeObserver:self];
...@@ -278,7 +268,7 @@ ...@@ -278,7 +268,7 @@
{ {
if( p_dialog->i_flags & DIALOG_USER_PROGRESS ) if( p_dialog->i_flags & DIALOG_USER_PROGRESS )
{ {
[o_prog_description setStringValue: \ [o_prog_description setStringValue:
[NSString stringWithUTF8String: p_dialog->psz_description]]; [NSString stringWithUTF8String: p_dialog->psz_description]];
[o_prog_bar setDoubleValue: (double)p_dialog->val.f_float]; [o_prog_bar setDoubleValue: (double)p_dialog->val.f_float];
......
...@@ -51,9 +51,6 @@ unsigned int CocoaKeyToVLC( unichar i_key ); ...@@ -51,9 +51,6 @@ unsigned int CocoaKeyToVLC( unichar i_key );
@"/System/Library/CoreServices/SystemVersion.plist"] \ @"/System/Library/CoreServices/SystemVersion.plist"] \
objectForKey: @"ProductVersion"] floatValue] objectForKey: @"ProductVersion"] floatValue]
/* switch this to 1, if you want to use Obj-C with GC */
#define GC_ENABLED 0
/***************************************************************************** /*****************************************************************************
* intf_sys_t: description and status of the interface * intf_sys_t: description and status of the interface
*****************************************************************************/ *****************************************************************************/
...@@ -106,14 +103,14 @@ struct intf_sys_t ...@@ -106,14 +103,14 @@ struct intf_sys_t
id o_sfilters; /* VLCsFilters */ id o_sfilters; /* VLCsFilters */
id o_update; /* VLCUpdate */ id o_update; /* VLCUpdate */
id o_eyetv; /* VLCEyeTVController */ id o_eyetv; /* VLCEyeTVController */
BOOL nib_main_loaded; /* reference to the main-nib */ BOOL nib_main_loaded; /* main nibfile */
BOOL nib_open_loaded; /* reference to the open-nib */ BOOL nib_open_loaded; /* open nibfile */
BOOL nib_about_loaded; /* reference to the about-nib */ BOOL nib_about_loaded; /* about nibfile */
BOOL nib_wizard_loaded; /* reference to the wizard-nib */ BOOL nib_wizard_loaded; /* wizard nibfile */
BOOL nib_extended_loaded; /* reference to the extended-nib */ BOOL nib_extended_loaded; /* extended nibfile */
BOOL nib_bookmarks_loaded; /* reference to the bookmarks-nib */ BOOL nib_bookmarks_loaded; /* bookmarks nibfile */
BOOL nib_sfilters_loaded; /* reference to the sfilters-nib */ BOOL nib_sfilters_loaded; /* sfilters nibfile */
BOOL nib_update_loaded; /* reference to the update-nib */ BOOL nib_update_loaded; /* update nibfile */
IBOutlet id o_window; /* main window */ IBOutlet id o_window; /* main window */
IBOutlet id o_playlist_view;/* playlist view */ IBOutlet id o_playlist_view;/* playlist view */
...@@ -125,14 +122,14 @@ struct intf_sys_t ...@@ -125,14 +122,14 @@ struct intf_sys_t
float f_slider_old; /* old slider val */ float f_slider_old; /* old slider val */
IBOutlet id o_volumeslider; /* volume slider */ IBOutlet id o_volumeslider; /* volume slider */
IBOutlet id o_main_pgbar; /* main interface progress bar */ IBOutlet id o_main_pgbar; /* playlist window progress bar */
IBOutlet id o_btn_prev; /* btn previous */ IBOutlet id o_btn_prev; /* btn previous */
IBOutlet id o_btn_rewind; /* btn rewind */ IBOutlet id o_btn_rewind; /* btn rewind */
IBOutlet id o_btn_play; /* btn play */ IBOutlet id o_btn_play; /* btn play */
IBOutlet id o_btn_stop; /* btn stop */ IBOutlet id o_btn_stop; /* btn stop */
IBOutlet id o_btn_ff; /* btn fast forward */ IBOutlet id o_btn_ff; /* btn fast forward */
IBOutlet id o_btn_next; /* btn next */ IBOutlet id o_btn_next; /* btn next */
IBOutlet id o_btn_fullscreen;/* btn fullscreen */ IBOutlet id o_btn_fullscreen;/* btn fullscreen (embedded vout window) */
IBOutlet id o_btn_playlist; /* btn playlist */ IBOutlet id o_btn_playlist; /* btn playlist */
NSImage * o_img_play; /* btn play img */ NSImage * o_img_play; /* btn play img */
......
/***************************************************************************** /*****************************************************************************
* misc.h: code not specific to vlc * misc.h: code not specific to vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 the VideoLAN team * Copyright (C) 2003-2007 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
......
...@@ -381,15 +381,6 @@ static NSMutableArray *blackoutWindows = NULL; ...@@ -381,15 +381,6 @@ static NSMutableArray *blackoutWindows = NULL;
[super dealloc]; [super dealloc];
} }
#if GC_ENABLED
- (void)finalize
{
/* dealloc doesn't get called on 10.5 if GC is enabled, so we need to provide the basic functionality here */
[self unregisterDraggedTypes];
[super finalize];
}
#endif
- (void)awakeFromNib - (void)awakeFromNib
{ {
[self registerForDraggedTypes:[NSArray arrayWithObjects:NSTIFFPboardType, [self registerForDraggedTypes:[NSArray arrayWithObjects:NSTIFFPboardType,
...@@ -468,15 +459,6 @@ static NSMutableArray *blackoutWindows = NULL; ...@@ -468,15 +459,6 @@ static NSMutableArray *blackoutWindows = NULL;
[super dealloc]; [super dealloc];
} }
#if GC_ENABLED
- (void)finalize
{
/* dealloc doesn't get called on 10.5 if GC is enabled, so we need to provide the basic functionality here */
[self unregisterDraggedTypes];
[super finalize];
}
#endif
- (void)awakeFromNib - (void)awakeFromNib
{ {
[self registerForDraggedTypes:[NSArray arrayWithObjects:NSTIFFPboardType, [self registerForDraggedTypes:[NSArray arrayWithObjects:NSTIFFPboardType,
......
/***************************************************************************** /*****************************************************************************
* open.h: MacOS X module for vlc * open.h: MacOS X module for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2006 the VideoLAN team * Copyright (C) 2002-2007 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
...@@ -128,7 +128,7 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class ); ...@@ -128,7 +128,7 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class );
- (void)openFileGeneric; - (void)openFileGeneric;
- (void)openFilePathChanged:(NSNotification *)o_notification; - (void)openFilePathChanged:(NSNotification *)o_notification;
- (IBAction)openFileBrowse:(id)sender; - (IBAction)openFileBrowse:(id)sender;
- (void) pathChosenInPanel: (NSOpenPanel *) sheet withReturn:(int)returnCode contextInfo:(void *)contextInfo; - (void)pathChosenInPanel: (NSOpenPanel *)sheet withReturn:(int)returnCode contextInfo:(void *)contextInfo;
- (IBAction)openFileStreamChanged:(id)sender; - (IBAction)openFileStreamChanged:(id)sender;
- (void)openDisc; - (void)openDisc;
......
/***************************************************************************** /*****************************************************************************
* output.h: MacOS X Output Dialog * output.h: MacOS X Output Dialog
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2006 the VideoLAN team * Copyright (C) 2002-2007 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
......
/***************************************************************************** /*****************************************************************************
* output.m: MacOS X Output Dialog * output.m: MacOS X Output Dialog
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2006 the VideoLAN team * Copyright (C) 2002-2007 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
......
...@@ -139,6 +139,4 @@ ...@@ -139,6 +139,4 @@
- (void)appendArray:(NSArray*)o_array atPos:(int)i_position enqueue:(BOOL)b_enqueue; - (void)appendArray:(NSArray*)o_array atPos:(int)i_position enqueue:(BOOL)b_enqueue;
- (void)appendNodeArray:(NSArray*)o_array inNode:(playlist_item_t *)p_node atPos:(int)i_position enqueue:(BOOL)b_enqueue; - (void)appendNodeArray:(NSArray*)o_array inNode:(playlist_item_t *)p_node atPos:(int)i_position enqueue:(BOOL)b_enqueue;
@end @end
/***************************************************************************** /*****************************************************************************
* playlist.m: MacOS X interface module * playlist.m: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2006 the VideoLAN team * Copyright (C) 2002-2007 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
...@@ -1667,13 +1667,6 @@ ...@@ -1667,13 +1667,6 @@
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
return NO; return NO;
} }
/* Delegate method of NSWindow */
/*- (void)windowWillClose:(NSNotification *)aNotification
{
[o_btn_playlist setState: NSOffState];
}
*/
@end @end
...@@ -112,16 +112,6 @@ ...@@ -112,16 +112,6 @@
[super dealloc]; [super dealloc];
} }
#if GC_ENABLED
- (void)finalize
{
/* since dealloc isn't called with enabled GC on 10.5, we need this to prevent core crashes */
if( [o_statUpdateTimer isValid] )
[o_statUpdateTimer invalidate];
[super finalize];
}
#endif
- (IBAction)togglePlaylistInfoPanel:(id)sender - (IBAction)togglePlaylistInfoPanel:(id)sender
{ {
if( [o_info_window isVisible] ) if( [o_info_window isVisible] )
...@@ -514,11 +504,6 @@ static VLCInfoTreeItem *o_root_item = nil; ...@@ -514,11 +504,6 @@ static VLCInfoTreeItem *o_root_item = nil;
return ( i_tmp == IsALeafNode ) ? (-1) : (int)[i_tmp count]; return ( i_tmp == IsALeafNode ) ? (-1) : (int)[i_tmp count];
} }
/*- (int)selectedPlaylistItem
{
return i_item;
}
*/
- (void)refresh - (void)refresh
{ {
p_item = [[[VLCMain sharedInstance] getInfo] getItem]; p_item = [[[VLCMain sharedInstance] getInfo] getItem];
......
/***************************************************************************** /*****************************************************************************
* prefs.h: MacOS X module for vlc * prefs.h: MacOS X module for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2005 the VideoLAN team * Copyright (C) 2002-2007 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
......
...@@ -409,16 +409,6 @@ ...@@ -409,16 +409,6 @@
[self setFrame:frame]; [self setFrame:frame];
} }
#if GC_ENABLED
- (void)finalize
{
/* since dealloc isn't called on 10.5 if GC is enabled and since GC is
* Obj-C only, we need to do this: */
if( psz_name ) free( psz_name );
[super finalize];
}
#endif
- (void)dealloc - (void)dealloc
{ {
if( o_label ) [o_label release]; if( o_label ) [o_label release];
......
...@@ -150,14 +150,17 @@ static VLCUpdate *_o_sharedInstance = nil; ...@@ -150,14 +150,17 @@ static VLCUpdate *_o_sharedInstance = nil;
[saveFilePanel setRequiredFileType: @"dmg"]; [saveFilePanel setRequiredFileType: @"dmg"];
[saveFilePanel setCanSelectHiddenExtension: YES]; [saveFilePanel setCanSelectHiddenExtension: YES];
[saveFilePanel setCanCreateDirectories: YES]; [saveFilePanel setCanCreateDirectories: YES];
[saveFilePanel beginSheetForDirectory:nil file: \ [saveFilePanel beginSheetForDirectory:nil file:
[[o_urlOfBinary componentsSeparatedByString:@"/"] lastObject] \ [[o_urlOfBinary componentsSeparatedByString:@"/"] lastObject]
modalForWindow: o_update_window modalDelegate:self didEndSelector:sel \ modalForWindow: o_update_window
modalDelegate:self
didEndSelector:sel
contextInfo:nil]; contextInfo:nil];
} }
- (void)getLocationForSaving: (NSSavePanel *)sheet returnCode: \ - (void)getLocationForSaving: (NSSavePanel *)sheet
(int)returnCode contextInfo: (void *)contextInfo returnCode: (int)returnCode
contextInfo: (void *)contextInfo
{ {
if( returnCode == NSOKButton ) if( returnCode == NSOKButton )
{ {
...@@ -189,7 +192,7 @@ static VLCUpdate *_o_sharedInstance = nil; ...@@ -189,7 +192,7 @@ static VLCUpdate *_o_sharedInstance = nil;
BOOL gettingReleaseNote = NO; BOOL gettingReleaseNote = NO;
int x = 0; int x = 0;
NSString * pathToReleaseNote; NSString * pathToReleaseNote;
pathToReleaseNote = [NSString stringWithFormat: \ pathToReleaseNote = [NSString stringWithFormat:
@"/tmp/vlc_releasenote_%d.tmp", mdate()]; @"/tmp/vlc_releasenote_%d.tmp", mdate()];
[[NSUserDefaults standardUserDefaults] setObject: [NSDate date] forKey: kPrefUpdateLastTimeChecked]; [[NSUserDefaults standardUserDefaults] setObject: [NSDate date] forKey: kPrefUpdateLastTimeChecked];
...@@ -212,8 +215,8 @@ static VLCUpdate *_o_sharedInstance = nil; ...@@ -212,8 +215,8 @@ static VLCUpdate *_o_sharedInstance = nil;
{ {
msg_Dbg( p_intf, "release note found, desc = %s", msg_Dbg( p_intf, "release note found, desc = %s",
p_uit->file.psz_description ); p_uit->file.psz_description );
[o_fld_releaseNote setString: \ [o_fld_releaseNote setString:
[NSString stringWithUTF8String: \ [NSString stringWithUTF8String:
(p_uit->file.psz_description)]]; (p_uit->file.psz_description)]];
/* download our release note /* download our release note
* We will read the temp file after this loop */ * We will read the temp file after this loop */
...@@ -222,20 +225,20 @@ static VLCUpdate *_o_sharedInstance = nil; ...@@ -222,20 +225,20 @@ static VLCUpdate *_o_sharedInstance = nil;
} }
else if( p_uit->file.i_type == UPDATE_FILE_TYPE_BINARY ) else if( p_uit->file.i_type == UPDATE_FILE_TYPE_BINARY )
{ {
msg_Dbg( p_intf, "binary found, version = %s, " \ msg_Dbg( p_intf, "binary found, version = %s, "
"url=%s, size=%i MB", p_uit->release.psz_version, \ "url=%s, size=%i MB", p_uit->release.psz_version,
p_uit->file.psz_url, \ p_uit->file.psz_url,
(int)((p_uit->file.l_size / 1024) / 1024) ); (int)((p_uit->file.l_size / 1024) / 1024) );
[o_fld_currentVersionAndSize setStringValue: [NSString \ [o_fld_currentVersionAndSize setStringValue:
stringWithFormat: \ [NSString stringWithFormat:
_NS("The latest VLC media player release " \ _NS("The latest VLC media player release "
"is %s (%i MB to download)."), \ "is %s (%i MB to download)."),
p_uit->release.psz_version, ((p_uit->file.l_size \ p_uit->release.psz_version, ((p_uit->file.l_size
/ 1024) / 1024)]]; / 1024) / 1024)]];
if( o_urlOfBinary ) if( o_urlOfBinary )
[o_urlOfBinary release]; [o_urlOfBinary release];
o_urlOfBinary = [[NSString alloc] initWithUTF8String: \ o_urlOfBinary = [[NSString alloc] initWithUTF8String:
p_uit->file.psz_url]; p_uit->file.psz_url];
} }
if( p_uit->release.i_status == UPDATE_RELEASE_STATUS_NEWER && if( p_uit->release.i_status == UPDATE_RELEASE_STATUS_NEWER &&
...@@ -243,12 +246,12 @@ static VLCUpdate *_o_sharedInstance = nil; ...@@ -243,12 +246,12 @@ static VLCUpdate *_o_sharedInstance = nil;
{ {
/* our version is outdated, let the user download the new /* our version is outdated, let the user download the new
* release */ * release */
[o_fld_status setStringValue: _NS("This version of VLC " \ [o_fld_status setStringValue: _NS("This version of VLC "
"is outdated.")]; "is outdated.")];
[o_btn_DownloadNow setEnabled: YES]; [o_btn_DownloadNow setEnabled: YES];
msg_Dbg( p_intf, "this version of VLC is outdated" ); msg_Dbg( p_intf, "this version of VLC is outdated" );
/* put the mirror information */ /* put the mirror information */
msg_Dbg( p_intf, "used mirror: %s, %s [%s]", \ msg_Dbg( p_intf, "used mirror: %s, %s [%s]",
p_uit->mirror.psz_name, p_uit->mirror.psz_location,\ p_uit->mirror.psz_name, p_uit->mirror.psz_location,\
p_uit->mirror.psz_type ); p_uit->mirror.psz_type );
/* make sure that we perform this check only once */ /* make sure that we perform this check only once */
...@@ -261,7 +264,7 @@ static VLCUpdate *_o_sharedInstance = nil; ...@@ -261,7 +264,7 @@ static VLCUpdate *_o_sharedInstance = nil;
} }
else if(! releaseChecked ) else if(! releaseChecked )
{ {
[o_fld_status setStringValue: _NS("This version of VLC " \ [o_fld_status setStringValue: _NS("This version of VLC "
"is the latest available.")]; "is the latest available.")];
[o_btn_DownloadNow setEnabled: NO]; [o_btn_DownloadNow setEnabled: NO];
msg_Dbg( p_intf, "current version is up-to-date" ); msg_Dbg( p_intf, "current version is up-to-date" );
...@@ -295,21 +298,21 @@ static VLCUpdate *_o_sharedInstance = nil; ...@@ -295,21 +298,21 @@ static VLCUpdate *_o_sharedInstance = nil;
/* let's open our cached release note and display it /* let's open our cached release note and display it
* we can't use NSString stringWithContentsOfFile:encoding:error: * we can't use NSString stringWithContentsOfFile:encoding:error:
* since it is Tiger only */ * since it is Tiger only */
NSString * releaseNote = [[NSString alloc] initWithData: \ NSString * releaseNote = [[NSString alloc] initWithData:
[NSData dataWithContentsOfFile: pathToReleaseNote] \ [NSData dataWithContentsOfFile: pathToReleaseNote]
encoding: NSISOLatin1StringEncoding]; encoding: NSISOLatin1StringEncoding];
if( releaseNote ) if( releaseNote )
[o_fld_releaseNote setString: releaseNote]; [o_fld_releaseNote setString: releaseNote];
/* delete the file since it isn't needed anymore */ /* delete the file since it isn't needed anymore */
BOOL myBOOL = NO; BOOL myBOOL = NO;
myBOOL = [[NSFileManager defaultManager] removeFileAtPath: \ myBOOL = [[NSFileManager defaultManager] removeFileAtPath:
pathToReleaseNote handler: nil]; pathToReleaseNote handler: nil];
} }
else else
{ {
/* don't confuse the user, but make her happy */ /* don't confuse the user, but make her happy */
[o_fld_status setStringValue: _NS("This version of VLC " \ [o_fld_status setStringValue: _NS("This version of VLC "
"is the latest available.")]; "is the latest available.")];
[o_btn_DownloadNow setEnabled: NO]; [o_btn_DownloadNow setEnabled: NO];
msg_Dbg( p_intf, "current version is up-to-date" ); msg_Dbg( p_intf, "current version is up-to-date" );
...@@ -332,8 +335,8 @@ static VLCUpdate *_o_sharedInstance = nil; ...@@ -332,8 +335,8 @@ static VLCUpdate *_o_sharedInstance = nil;
p_uit->file.i_type == UPDATE_FILE_TYPE_BINARY ) p_uit->file.i_type == UPDATE_FILE_TYPE_BINARY )
{ {
/* put the mirror information */ /* put the mirror information */
msg_Dbg( p_intf, "used mirror: %s, %s [%s]", \ msg_Dbg( p_intf, "used mirror: %s, %s [%s]",
p_uit->mirror.psz_name, p_uit->mirror.psz_location, \ p_uit->mirror.psz_name, p_uit->mirror.psz_location,
p_uit->mirror.psz_type ); p_uit->mirror.psz_type );
/* that's our binary */ /* that's our binary */
......
/***************************************************************************** /*****************************************************************************
* vout.h: MacOS X interface module * vout.h: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2001-2006 the VideoLAN team * Copyright (C) 2001-2007 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Colin Delacroix <colin@zoy.org> * Authors: Colin Delacroix <colin@zoy.org>
......
...@@ -143,7 +143,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -143,7 +143,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
*****************************************************************************/ *****************************************************************************/
@implementation VLCVoutView @implementation VLCVoutView
- (id)initWithFrame:(NSRect)frameRect - (id)initWithFrame: (NSRect)frameRect
{ {
[super initWithFrame: frameRect]; [super initWithFrame: frameRect];
p_vout = NULL; p_vout = NULL;
...@@ -155,7 +155,8 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -155,7 +155,8 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
return self; return self;
} }
- (BOOL)setVout: (vout_thread_t *) vout subView: (NSView *) view - (BOOL)setVout: (vout_thread_t *) vout s
ubView: (NSView *) view
frame: (NSRect *) frame frame: (NSRect *) frame
{ {
int i_device; int i_device;
......
/***************************************************************************** /*****************************************************************************
* voutgl.m: MacOS X OpenGL provider * voutgl.m: MacOS X OpenGL provider
***************************************************************************** *****************************************************************************
* Copyright (C) 2001-2004 the VideoLAN team * Copyright (C) 2001-2004, 2007 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Colin Delacroix <colin@zoy.org> * Authors: Colin Delacroix <colin@zoy.org>
...@@ -1049,6 +1049,7 @@ static pascal OSStatus WindowEventHandler(EventHandlerCallRef nextHandler, Event ...@@ -1049,6 +1049,7 @@ static pascal OSStatus WindowEventHandler(EventHandlerCallRef nextHandler, Event
static int aglLock( vout_thread_t * p_vout ) static int aglLock( vout_thread_t * p_vout )
{ {
#warning the following check is incorrect, needs testing!
#ifdef __ppc__ #ifdef __ppc__
/* /*
* before 10.4, we set the AGL context as current and * before 10.4, we set the AGL context as current and
...@@ -1073,6 +1074,7 @@ static int aglLock( vout_thread_t * p_vout ) ...@@ -1073,6 +1074,7 @@ static int aglLock( vout_thread_t * p_vout )
static void aglUnlock( vout_thread_t * p_vout ) static void aglUnlock( vout_thread_t * p_vout )
{ {
#warning the following check is incorrect, needs testing!
#ifdef __ppc__ #ifdef __ppc__
/* /*
* before 10.4, we assume that the AGL context is current. * before 10.4, we assume that the AGL context is current.
......
/***************************************************************************** /*****************************************************************************
* vout.m: MacOS X video output module * vout.m: MacOS X video output module
***************************************************************************** *****************************************************************************
* Copyright (C) 2001-2004 the VideoLAN team * Copyright (C) 2001-2007 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Colin Delacroix <colin@zoy.org> * Authors: Colin Delacroix <colin@zoy.org>
......
/***************************************************************************** /*****************************************************************************
* wizard.h: MacOS X Streaming Wizard * wizard.h: MacOS X Streaming Wizard
***************************************************************************** *****************************************************************************
* Copyright (C) 2005-2006 the VideoLAN team * Copyright (C) 2005-2007 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Felix Kühne <fkuehne@users.sf.net> * Authors: Felix Kühne <fkuehne@users.sf.net>
...@@ -181,7 +181,6 @@ ...@@ -181,7 +181,6 @@
- (void)createOpts; - (void)createOpts;
- (void)rebuildCodecMenus; - (void)rebuildCodecMenus;
- (id)getPlaylistWizard; - (id)getPlaylistWizard;
- (void)initWithExtractValuesFrom: (NSString *)from to: (NSString *)to \ - (void)initWithExtractValuesFrom: (NSString *)from to: (NSString *)to ofItem: (NSString *)item;
ofItem: (NSString *)item;
@end @end
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment