• 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: 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

  • Follow-Ups:
    • Re: Can a value transformer get its own registration name?
      • From: Jim Correia <email@hidden>
References: 
 >Re: Can a value transformer get its own registration name? (From: Jim Correia <email@hidden>)

  • Prev by Date: NSTextField Image
  • Next by Date: Re: Problem with AESend() - Update
  • Previous by thread: Re: Can a value transformer get its own registration name?
  • Next by thread: Re: Can a value transformer get its own registration name?
  • Index(es):
    • Date
    • Thread