Fix building Obj-C code with SDK >= 10.6.

This commit is contained in:
Alexei Svitkine 2014-01-05 10:16:51 -05:00
parent 86c50b78fe
commit a3abfdc041
2 changed files with 8 additions and 1 deletions

View File

@ -20,7 +20,11 @@
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
@interface VMListController : NSWindowController { @interface VMListController : NSWindowController
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
<NSTableViewDataSource, NSTableViewDelegate>
#endif
{
IBOutlet NSTableView *vmList; IBOutlet NSTableView *vmList;
IBOutlet NSButton *newButton; IBOutlet NSButton *newButton;
IBOutlet NSButton *importButton; IBOutlet NSButton *importButton;

View File

@ -21,6 +21,9 @@
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
@interface VMSettingsController : NSWindowController @interface VMSettingsController : NSWindowController
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
<NSTableViewDataSource>
#endif
{ {
BOOL cancelWasClicked; BOOL cancelWasClicked;