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: Nicko van Someren <email@hidden>
- Date: Thu, 12 Apr 2007 14:20:31 +0100
On 12 Apr 2007, at 13:36, Bill Cheeseman wrote:
The Value Transformer Programming Guide explains, in the Registering
section, how to register separate instances of a generalized value
transformer under different names.
...
But it doesn't explain how to specify the number that is to be used
as the
multiplier when a given instance of a "generalized" value
transformer is
registered. How should I do that?
The clue is in your first sentence. You register "instances" of
value transformers. So you put the parameters to your generalised
transformer into instance variables when you initialise the
instances, just before you register them.
Cheers,
Nicko
_______________________________________________
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