Hello,
I'm new to Obj-C. But I'm trying to create my first app.
It is a small app for the statusmenu.
In the Interface Builder I have created the menu with nsmenuitems.
But now I want to access some nsmenuitems in my code. So I created an IBOutlet:
And I connected this in the IB with the nsmenu.
But when I want to access an menuitem I receive null:
Can somebody explain me what is wrong.
Thanks,
Kristof
I'm new to Obj-C. But I'm trying to create my first app.
It is a small app for the statusmenu.
In the Interface Builder I have created the menu with nsmenuitems.
But now I want to access some nsmenuitems in my code. So I created an IBOutlet:
Code:
IBOutlet NSMenu *menu;
But when I want to access an menuitem I receive null:
Code:
NSLog(@"title: %@", menu);
Can somebody explain me what is wrong.
Thanks,
Kristof