Re: NSMenuItem - setHidden

2008-08-23 Thread Stuart Green
So I could use this method to enable/disable the menu item rather than hide it? That may look a bit more pleasing to the user. Will give it a go. Thanks. Regards, Stuart Sent from my iPhone On 23 Aug 2008, at 02:53, Jonathan Hess <[EMAIL PROTECTED]> wrote: On Aug 22, 2008, at 6:15 PM, G

Re: NSMenuItem - setHidden

2008-08-22 Thread Jonathan Hess
On Aug 22, 2008, at 6:15 PM, Graham Cox wrote: On 23 Aug 2008, at 5:30 am, chaitanya pandit wrote: [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

Re: NSMenuItem - setHidden

2008-08-22 Thread Graham Cox
On 23 Aug 2008, at 11:15 am, Graham Cox wrote: -setAutoEnablesItems: doesn't affect visible/hidden, it affects checked/unchecked. So it's unlikely to bear on this problem. Oops, correction - it affects greyed out/not greyed out. But not visible/hidden. Graham ___

Re: NSMenuItem - setHidden

2008-08-22 Thread Graham Cox
On 23 Aug 2008, at 5:30 am, chaitanya pandit wrote: [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) -setAutoEnablesItems: doesn't

Re: NSMenuItem - setHidden

2008-08-22 Thread Peter Ammon
On Aug 22, 2008, at 6: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 no

Re: NSMenuItem - setHidden

2008-08-22 Thread chaitanya pandit
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) [itemToBeHidde

Re: NSMenuItem - setHidden

2008-08-22 Thread Andy Lee
On Aug 22, 2008, at 9:28 AM, Stuart Green wrote: 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; Any reason you don't declare this as an NSMenuItem? Doing so would give you a little protection fro

Re: NSMenuItem - setHidden

2008-08-22 Thread Stuart Green
Cheers, Tried: [itemToBeHidden setAutoEnablesItems:NO]; [itemToBeHidden setHidden:YES]; Still doesn't work. Couldn't see any options in IB to set this. Stu On 22 Aug 2008, at 18:26, chaitanya pandit wrote: Set the menuitem's menu's setAutoEnablesItems to NO Or you may have

Re: NSMenuItem - setHidden

2008-08-22 Thread chaitanya pandit
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;

NSMenuItem - setHidden

2008-08-22 Thread Stuart Green
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 __