• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: NSPopUpButton disabled items won't stay disabled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Displaying sheet when window first appears.
  • Next by Date: Re: Displaying sheet when window first appears.
  • Previous by thread: Re: Displaying sheet when window first appears.
  • Next by thread: Resign key for a non-activating floating utility panel in BG app?
  • Index(es):
    • Date
    • Thread