rosscarter.com

Leopard autoregisters transformers?

26 May 2008 2:24 pm EDT

I created a new NSValueTransformer and used it in a nib binding, referring to it by the class name. I forgot to register it. When I ran the app, I did not receive a “could not find transformer named…” error; instead, the transformer worked perfectly.

How can that be? I didn’t write any code to instantiate the transformer. The application delegate imports the header for the transformer. Hmm. Could it be that Leopard, when it can’t find a registered transformer of a given name, will try to initialize one using the className?

Wish I had more time just now to experiment.

Leave a Comment

Comments

  • There are no comments for this article.