Re: Can a value transformer get its own registration name?
Re: Can a value transformer get its own registration name?
- Subject: Re: Can a value transformer get its own registration name?
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 12 Apr 2007 11:12:54 -0400
- Thread-topic: Can a value transformer get its own registration name?
on 2007-04-12 8:44 AM, Jim Correia at email@hidden wrote:
> The same way you'd do for any other object. You write a subclass of
> NSValueTransformer with per instance state. Instantiate one, and
> register it.
Sure, like I suggested -- since I'm somewhat religious about accessor
methods, a -registeredName accessor to expose an iVar. I think I was just
surprised that NSValueTransformer doesn't already implement a
-registeredName mechanism, including an appropriate -initWith... Method. My
fiddling with value transformers suggests that it would be useful
frequently.
The documentation seems unusually mysterious about it. Usually, the docs
talk about subclassing when that's what they have in mind. In this case, the
documentation left me with the impression that there must be some more
direct technique, and I wondered what it was.
I guess I'm just reading too much into it.
--
Bill Cheeseman
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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