On Sep 30, 2008, at 16:20 , Matthew Gertner wrote:
Hi,
I'm trying to add a new menu to the main menu of my application using
Cocoa. I thought something like this would do the trick:
NSMenu* menu = [[NSMenu alloc] initWithTitle:@"foo"];
NSMenuItem* item = [[NSApp mainMenu] addItemWithTitle:@"f
On Tue, Sep 30, 2008 at 1:20 PM, Matthew Gertner
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to add a new menu to the main menu of my application using
> Cocoa. I thought something like this would do the trick:
>
> NSMenu* menu = [[NSMenu alloc] initWithTitle:@"foo"];
> NSMenuItem* item = [[N
Hi,
I'm trying to add a new menu to the main menu of my application using
Cocoa. I thought something like this would do the trick:
NSMenu* menu = [[NSMenu alloc] initWithTitle:@"foo"];
NSMenuItem* item = [[NSApp mainMenu] addItemWithTitle:@"foo"
action: nil
keyEquivalent: @""];