• 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: NSPopUpButtonCell always select first item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPopUpButtonCell always select first item


  • Subject: Re: NSPopUpButtonCell always select first item
  • From: Ivan C Myrvold <email@hidden>
  • Date: Fri, 1 Feb 2008 12:51:22 +0100

I was not using data source, but was binding the column to an NSTreeController.
I tried your suggestion and implementing the below method. I had to activate the data source for the method to be used, but the NSPopUpButtonCell still snaps back to the first item in the list.


Ivan

On 31. jan.. 2008, at 17:05, Benjamin Stiglitz wrote:

I am baffled by this, and have not been able to find out why this happens.
I of course wants the menu item I selects to be shown after I have selected it.

Does your outline view delegate implement - outlineView:setObjectValue:forTableColumn:byItem:? If not, the outline view will reset the cell’s object value at the end of editing to the the value specified by the data source.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Plugin locks widget under Tiger
  • Next by Date: Re: How does NSButtonCell do its drawing?
  • Previous by thread: Re: Plugin locks widget under Tiger
  • Next by thread: Type introspection with NSMethodSignature, deprecated NSObjCValueType?
  • Index(es):
    • Date
    • Thread