• 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
NSPopUpButton won't display its button title dimmed?!!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPopUpButton won't display its button title dimmed?!!


  • Subject: NSPopUpButton won't display its button title dimmed?!!
  • From: Shaun Wexler <email@hidden>
  • Date: Wed, 5 Mar 2003 13:33:31 -0800

Has something changed from 10.2.3. to 10.2.4 in the NSPopUpButton class?

I use popups which I would like to draw their button text in grey when the selected NSMenuItem is disabled. When the popup's "datasource" changes, I find it more efficient to attach a new fully populated NSMenu (with items pre-enabled or disabled as appropriate) to the NSPopUpButton, select an NSMenuItem based on its represented object, and enable it based on the object's status.

This worked fine a few weeks ago, but suddenly stopped working at some time (I'm assuming due to the upgrade to 10.2.4).

I confirmed that [popup autoenablesItems] == NO. Calling [[popup selectedItem] setEnabled:NO]; will disable the NSMenuItem in the menu when popped up, but the NSPopUpButton title does not change to reflect the status of its selected item's state. Also, [popup synchronizeTitleAndSelectedItem]; and [popup setNeedsDisplay:YES]; have no effect on updating the view to redraw title text's color, in this case.

Has anybody else experienced this problem? Solutions? Or should I file a bug?
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
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: Re: ControlElements (was re:OutlineView)
  • Next by Date: Re: Newbie coming to Cocoa from the world of C++
  • Previous by thread: Re: "Constant" strings are static or autoreleased?
  • Next by thread: OT: RadarWeb (bugreporter.apple.com)
  • Index(es):
    • Date
    • Thread