Re: NSArrayController & image in column
Re: NSArrayController & image in column
- Subject: Re: NSArrayController & image in column
- From: Dave DeLong <email@hidden>
- Date: Tue, 19 Apr 2011 15:09:09 -0700
On Apr 19, 2011, at 3:06 PM, Quincey Morris wrote:
> On Apr 19, 2011, at 14:26, Todd Heberlein wrote:
>
> ...
> Another alternative (and a slightly better one, I'd suggest, since it's more direct) is to provide the NSImage* directly via a data source. It works fine to use a data source for some columns but bindings for others.
> ...
Or just add a method on your data object that vends the appropriate image based on its own properties, and then just bind to that method name as the Model Key Path. (this is much simpler than the value transformer)
Dave
_______________________________________________
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