Revised patch from Yves to fix Mac 10.5 compilation
NSMenuDelegate is an informal protocol before 10.6, so declare it locally in that case.
This commit is contained in:
parent
7edbf8a8c9
commit
e226983835
1 changed files with 5 additions and 0 deletions
|
@ -39,6 +39,11 @@ public:
|
|||
MenuItemBindings itemBindings;
|
||||
};
|
||||
|
||||
// prior to the 10.6 SDK, NSMenuDelegate was an informal protocol
|
||||
#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1060
|
||||
@protocol NSMenuDelegate <NSObject>
|
||||
@end
|
||||
#endif
|
||||
|
||||
@interface CocoaMenuDelegate : NSObject <NSMenuDelegate> {
|
||||
@private
|
||||
|
|
Loading…
Add table
Reference in a new issue