Re: NSMenuItem - setHidden
Re: NSMenuItem - setHidden
- Subject: Re: NSMenuItem - setHidden
- From: chaitanya pandit <email@hidden>
- Date: Fri, 22 Aug 2008 15:30:48 -0400
On 22-Aug-08, at 1:34 PM, Stuart Green wrote:
Cheers,
Tried:
[itemToBeHidden setAutoEnablesItems:NO];
Don't call setAutoEnblesItems on the item you want to hide
(NSMenuItem) call it on the menu to which the item belongs (or is
gonna get added- NSMenu class)
[itemToBeHidden setHidden:YES];
Still doesn't work.
Couldn't see any options in IB to set this.
in IB you'd see the option when the NSMenu is selected, not the
NSMenuItem
Stu
On 22 Aug 2008, at 18:26, chaitanya pandit wrote:
Set the menuitem's menu's setAutoEnablesItems to NO
Or you may have an option to do so in IB itself
On 22-Aug-08, at 9:28 AM, Stuart Green wrote:
Hi,
I've got a menu item in my app's root menu that I want to hide.
I've referenced it as an IBOutlet as per:
IBOutlet id itemToBeHidden;
I'm trying to hide it as per:
[itemToBeHidden setHidden:YES];
Problem is, item does not hide.
Any ideas?
Thanks,
Stu
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden