Re: NSOutlineView multi cell type binding query
Re: NSOutlineView multi cell type binding query
- Subject: Re: NSOutlineView multi cell type binding query
- From: Quincey Morris <email@hidden>
- Date: Tue, 5 Oct 2010 15:03:06 -0700
On Oct 5, 2010, at 03:53, email@hidden wrote:
> However it appears that the binding machinery causes the NSPopUpButtonCell selection to be reset after the user has interacted with the control.
>
> I therefore have to resync the NSPopUpButtonCell selection to the model in - outlineView:willDisplayCell:forTableColumn:item:
If I understand you correctly, then it's not the binding machinery that "resets" anything.
Instead, it's understood (as part of NSTableView's API contract) that the cell in outlineView:willDisplayCell:forTableColumn:item: is re-configured every time it is used, since it's potentially re-used for multiple rows. It's not surprising that you would have to set up the selected item(s) every time.
Or did I misunderstand what you're asking?
_______________________________________________
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