// ----------------------
#include <string.h>
-@class wxNSMenuItem;
-
-@interface wxNSMenu : NSMenu
-{
- wxMenuImpl* impl;
-}
-
-- (void) setImplementation:(wxMenuImpl*) item;
-- (wxMenuImpl*) implementation;
-
-@end
-
@implementation wxNSMenu
- (id) init
if ( menuimpl )
{
wxMenu* wxpeer = (wxMenu*) menuimpl->GetWXPeer();
- wxpeer->HandleMenuOpened();
+ if ( wxpeer )
+ wxpeer->HandleMenuOpened();
}
}
if ( menuimpl )
{
wxMenu* wxpeer = (wxMenu*) menuimpl->GetWXPeer();
- wxpeer->HandleMenuClosed();
+ if ( wxpeer )
+ wxpeer->HandleMenuClosed();
}
}
@end
+@interface NSApplication(MissingAppleMenuCall)
+- (void)setAppleMenu:(NSMenu *)menu;
+@end
+
class wxMenuCocoaImpl : public wxMenuImpl
{
public :