problem disabling a menu item
problem disabling a menu item
- Subject: problem disabling a menu item
- From: "Ivan S. Kourtev" <email@hidden>
- Date: Mon, 11 Apr 2005 17:46:42 -0400
Hi,
I am not getting the expected behavior when I try to disable a menu
item programmatically in a simple application. I do
[[NSApp mainMenu] setAutoenablesItems:NO];
[_someMenuItem setEnabled:NO];
yet the _someMenuItem remains enabled. I tried sending a setTitle:
message to _someMenuItem (just to make sure that the connection was
right) and it worked as described. So I think I am missing something
here, any suggestions?
On a more general level, I did read about the "Automatic Menu Enabling"
alternative method in Apple's documentation. Is Automatic the
preferred way to handle all menu enable/disable activity?
Thanks,
-- ivan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden