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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to