• 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: NSArrayController & image in column
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSArrayController & image in column
      • From: Todd Heberlein <email@hidden>
References: 
 >NSArrayController & image in column (From: Todd Heberlein <email@hidden>)
 >Re: NSArrayController & image in column (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: NSArrayController & image in column
  • Next by Date: Re: How call upper layer function
  • Previous by thread: Re: NSArrayController & image in column
  • Next by thread: Re: NSArrayController & image in column
  • Index(es):
    • Date
    • Thread