• 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: Quincey Morris <email@hidden>
  • Date: Tue, 19 Apr 2011 22:08:08 -0700

On Apr 19, 2011, at 20:57, Todd Heberlein wrote:

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

If it's significantly duller, that probably means it's being shown as disabled.

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

It's called once per class. If MyController is a subclass, it's called once for the subclass and once for the superclass, but if one of the classes doesn't implement it, the other gets called twice. The +initialize method must be coded to expect this. See:

	http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html

IAC, registering transformers isn't normally necessary any more, provided the transformer name is the same as its class name:

	http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSValueTransformer_Class/Reference/Reference.html


_______________________________________________

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

  • Prev by Date: Re: NSArrayController & image in column
  • Next by Date: Re: ArrayController vs Pop-up button vs Transformer -- three way tag team death match!
  • Previous by thread: Re: NSArrayController & image in column
  • Next by thread: Re: NSArrayController & image in column
  • Index(es):
    • Date
    • Thread