Testing adding NSMenu items, later replacing menu on Mac within a cocos2d-x 3.3 project
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Classes
Resources
cocos2d
proj.android
proj.ios_mac
proj.linux
proj.win32
proj.win8.1-universal
proj.wp8-xaml
.cocos-project.json
.gitignore
CMakeLists.txt
README.md

README.md

Creating a menu for cocos2d-x game. Example for both creating with code as well as using .xib and Interface Builder tool (superior for this task).

Notes

Loading .xib file is done with method introduced in 10.8+ need to look into supporting 10.7 (or earlier)

References

https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/LoadingResources/CocoaNibs/CocoaNibs.html#//apple_ref/doc/uid/10000051i-CH4-SW8

https://stackoverflow.com/questions/14102550/create-simbl-plugin-in-cocoa

https://stackoverflow.com/questions/19602390/trying-to-replace-deprecated-loadnibnamedowner