public static final NSMenuItem getMenuItemAtIndex(NSMenu menu, long index) throws Throwable{ return (NSMenuItem)invokeMethod(NSMenu.class, menu, "itemAtIndex", new Object[] { osType(index) }); }
public static final long getMenuNumberOfItems( NSMenu menu ) throws Throwable { return longValue(invokeMethod(NSMenu.class, menu , "numberOfItems", new Object[] {})); }