• 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: Can a value transformer get its own registration name?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Can a value transformer get its own registration name? (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: Getting the context of a context menu
  • Next by Date: Re: Problem with AESend()
  • Previous by thread: Re: Can a value transformer get its own registration name?
  • Next by thread: Re: Drawing to NSImage to create image data at different resolutions
  • Index(es):
    • Date
    • Thread