Skip to content

Instantly share code, notes, and snippets.

@destroytoday
Created December 21, 2010 04:43
Show Gist options
  • Save destroytoday/749498 to your computer and use it in GitHub Desktop.
Save destroytoday/749498 to your computer and use it in GitHub Desktop.
One-liner for creating and setting a NativeMenuItem with a menu
// 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