• 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: Todd Heberlein <email@hidden>
  • Date: Tue, 19 Apr 2011 20:57:38 -0700

On Apr 19, 2011, at 3:09 PM, Dave DeLong wrote:

> 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)

For an experiment I have implemented two columns, one doing it each way. Right now I'm just showing a green circle for even numbers and a red circle for odd numbers.

Both work, but for some reason the circle images using the transformer don't quite look right, like they are duller or something. Maybe a reduced opacity. But I am returning a pointer to the same image. Weird.

Any idea why a column with a transformer has duller images?


On a different (but maybe related) note, in MyController +initialize is getting called twice even though I have one instance of MyController. This is where I register my transformer.

Any idea why +initialize is being called twice?


Thanks,

Todd

_______________________________________________

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: Quincey Morris <email@hidden>
References: 
 >NSArrayController & image in column (From: Todd Heberlein <email@hidden>)
 >Re: NSArrayController & image in column (From: Quincey Morris <email@hidden>)
 >Re: NSArrayController & image in column (From: Dave DeLong <email@hidden>)

  • Prev by Date: Re: renaming directories and moving files into them (NSFileManager)
  • Next by Date: Re: NSArrayController & image in column
  • Previous by thread: Re: NSArrayController & image in column
  • Next by thread: Re: NSArrayController & image in column
  • Index(es):
    • Date
    • Thread