Re: How can I populate certain table-columns with image cells while using NSArrayController?
Re: How can I populate certain table-columns with image cells while using NSArrayController?
- Subject: Re: How can I populate certain table-columns with image cells while using NSArrayController?
- From: Quincey Morris <email@hidden>
- Date: Fri, 15 Jan 2010 12:33:18 -0800
On Jan 15, 2010, at 09:50, Michael A. Crawford wrote:
> Normally, when not using NSArrayController, I would make my controller the data-source for the table. When the -[tableView:objectValueForTableColumn:row:] method is called for the BOOL columns, I would return an NSImageCell. I was assuming that I cannot do this while using bindings and the NSArrayController. However, when I coded it up, I got the callbacks even though the table was bound to the array-controller
>
> Is this the correct way to do this? I'm worried that using both the DataSource callbacks and bindings to an array-controller might not be what Apple had in mind and will lead to unforeseen issues.
FWIW, this mixing of bindings and data source has always worked perfectly well for me, and appears to be designed to do so.
_______________________________________________
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