Created
December 21, 2010 04:43
-
-
Save destroytoday/749498 to your computer and use it in GitHub Desktop.
One-liner for creating and setting a NativeMenuItem with a menu
This file contains hidden or 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
// can be used to create a menubar without a ton of boilerplate | |
(fileItem = new NativeMenuItem("File")).submenu = new NativeMenu(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment