RE: NSPopUpButton disabled items won't stay disabled
RE: NSPopUpButton disabled items won't stay disabled
- Subject: RE: NSPopUpButton disabled items won't stay disabled
- From: "Cristian Savu" <email@hidden>
- Date: Mon, 23 Sep 2002 11:50:36 +0300
Hello,
It's been a while since this question was posted but today I run into the
same problem and I found a solution.
(this is for future record, maybe will be useful for someone)
Just try :
[myPopUpButton setAutoenablesItems:NO];
Regards, Cristian
>
-----Original Message-----
>
From: email@hidden
>
[mailto:email@hidden]On Behalf Of Donald Hall
>
Sent: Saturday, August 31, 2002 9:52 AM
>
To: email@hidden
>
Subject: NSPopUpButton disabled items won't stay disabled
>
>
>
I have a popup menu that has some items that must be disabled
>
depending
>
on the state of other objects in my program. I can set them disabled
>
programmatically, but as soon as I click on the popup, they become
>
enabled again and I can select them when I shouldn't be able to. What
>
must I do to keep them disabled?
>
>
I tried using the NSPopUpButtonWillPopUpNotification to "re-disable"
>
the items but this had no effect.
>
>
Thanks,
>
>
Don
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.