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

macosx: fixed compilation when using the 10.5 SDK

parent 01d1a3a6
...@@ -27,10 +27,7 @@ ...@@ -27,10 +27,7 @@
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
#import "PXSourceList.h" #import "PXSourceList.h"
#import <vlc_input.h> #import <vlc_input.h>
#import "misc.h"
#ifndef MAC_OS_X_VERSION_10_6
@protocol NSWindowDelegate <NSObject> @end
#endif
@interface VLCMainWindow : NSWindow <PXSourceListDataSource, PXSourceListDelegate, NSWindowDelegate> { @interface VLCMainWindow : NSWindow <PXSourceListDataSource, PXSourceListDelegate, NSWindowDelegate> {
IBOutlet id o_play_btn; IBOutlet id o_play_btn;
...@@ -127,3 +124,4 @@ ...@@ -127,3 +124,4 @@
} }
- (void)loadImagesInDarkStyle:(BOOL)b_value; - (void)loadImagesInDarkStyle:(BOOL)b_value;
@end @end
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#import "CoreInteraction.h" #import "CoreInteraction.h"
#import "AudioEffects.h" #import "AudioEffects.h"
#import "MainMenu.h" #import "MainMenu.h"
#import "misc.h"
#import "controls.h" // TODO: remove me #import "controls.h" // TODO: remove me
#import "SideBarItem.h" #import "SideBarItem.h"
#import <vlc_playlist.h> #import <vlc_playlist.h>
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include <Cocoa/Cocoa.h> #include <Cocoa/Cocoa.h>
#import "SPMediaKeyTap.h" /* for the media key support */ #import "SPMediaKeyTap.h" /* for the media key support */
#import "misc.h"
/***************************************************************************** /*****************************************************************************
* Local prototypes. * Local prototypes.
...@@ -78,9 +79,6 @@ struct intf_sys_t ...@@ -78,9 +79,6 @@ struct intf_sys_t
/***************************************************************************** /*****************************************************************************
* VLCMain interface * VLCMain interface
*****************************************************************************/ *****************************************************************************/
#ifndef MAC_OS_X_VERSION_10_6
@protocol NSWindowDelegate <NSObject> @end
#endif
@class AppleRemote; @class AppleRemote;
@class VLCInformation; @class VLCInformation;
@class VLCEmbeddedWindow; @class VLCEmbeddedWindow;
......
...@@ -290,7 +290,7 @@ static int InputEvent( vlc_object_t *p_this, const char *psz_var, ...@@ -290,7 +290,7 @@ static int InputEvent( vlc_object_t *p_this, const char *psz_var,
case INPUT_EVENT_DEAD: case INPUT_EVENT_DEAD:
[[VLCMain sharedInstance] updateName]; [[VLCMain sharedInstance] updateName];
[[VLCMain sharedInstance] updateTimeSlider]; [[VLCMain sharedInstance] updatePlaybackPosition];
break; break;
case INPUT_EVENT_ABORT: case INPUT_EVENT_ABORT:
......
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/ *****************************************************************************/
#import "PXSourceList.h"
/***************************************************************************** /*****************************************************************************
* VLCPlaylistView interface * VLCPlaylistView interface
*****************************************************************************/ *****************************************************************************/
...@@ -34,9 +36,6 @@ ...@@ -34,9 +36,6 @@
/***************************************************************************** /*****************************************************************************
* VLCPlaylistCommon interface * VLCPlaylistCommon interface
*****************************************************************************/ *****************************************************************************/
#ifndef MAC_OS_X_VERSION_10_6
@protocol NSOutlineViewDataSource <NSObject> @end
#endif
@interface VLCPlaylistCommon : NSObject <NSOutlineViewDataSource, NSOutlineViewDelegate> @interface VLCPlaylistCommon : NSObject <NSOutlineViewDataSource, NSOutlineViewDelegate>
{ {
IBOutlet id o_tc_name; IBOutlet id o_tc_name;
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#ifndef MAC_OS_X_VERSION_10_6 #ifndef MAC_OS_X_VERSION_10_6
@protocol NSComboBoxDataSource <NSObject> @end @protocol NSComboBoxDataSource <NSObject> @end
@protocol NSTextFieldDelegate <NSObject> @end @protocol NSTextFieldDelegate <NSObject> @end
@protocol NSTableViewDataSource <NSObject> @end
#endif #endif
static NSMenu *o_keys_menu = nil; static NSMenu *o_keys_menu = nil;
......
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