pub trait NSMenu: Sized {
// Required methods
unsafe fn initWithTitle_(self, title: id) -> id;
unsafe fn setAutoenablesItems(self, state: BOOL);
unsafe fn addItem_(self, menu_item: id);
unsafe fn addItemWithTitle_action_keyEquivalent(
self,
title: id,
action: SEL,
key: id
) -> id;
unsafe fn itemAtIndex_(self, index: NSInteger) -> id;
// Provided methods
unsafe fn alloc(_: Self) -> id { ... }
unsafe fn new(_: Self) -> id { ... }
}