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
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
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
___
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
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
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
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
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
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;
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
__
10 matches
Mail list logo