Created
December 10, 2008 08:20
-
-
Save tlrobinson/34280 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (TiAppMenu *)createAppMenu:(NSString*)label | |
{ | |
//TODO: review with marshall - probably need a getUserMenu | |
NSMenu *appMenu = [[[NSApp mainMenu] itemWithTitle:label] submenu]; | |
if (appMenu == nil) | |
{ | |
//FIXME | |
} | |
else | |
{ | |
return [[TiAppMenu alloc]initWithMenu:appMenu]; | |
} | |
return nil; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment