Re: NSPopUpButtonCell always select first item
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