• 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: KVO and bindings question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: KVO and bindings question


  • Subject: Re: KVO and bindings question
  • From: Don Rainwater <email@hidden>
  • Date: Tue, 1 Jun 2004 09:15:09 -0400

This is a fine example of why you should go to the Apple web site for the latest documentation. I was using the on-disk documentation, which says:

"Value transformers are typically registered by an applications delegate, in
response to receiving a[n] applicationDidFinishLaunching: message."

In the description of +initialize in the documentation for NSObject, it says that the runtime system sends the initialize message to each class, and any class that inherits from it. So I should not have [super initialize] in my initialize method like I would with -init, right?


On May 28, 2004, at 6:00 PM, Andreas Mayer wrote:

Am 28.05.2004 um 19:17 schrieb Don Rainwater:

I think the hardest part was noticing that -applicationDidFinishLaunching: (where the value transformers are registered for use) takes a notification parameter.

a) Parameters are explained in detail in the documentation; you should probably use an app like AppKiDo (http://homepage.mac.com/aglee/downloads) for quick reference.

b) Value transformers should be registered as early as possible, i.e. in the +initialize method of your class:
http://developer.apple.com/documentation/Cocoa/Conceptual/ ValueTransformers/Concepts/Registration.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: KVO and bindings question
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Apple, Are You Listening?
  • Next by Date: Re: Code Guidelines
  • Previous by thread: Re: Apple, Are You Listening?
  • Next by thread: Re: KVO and bindings question
  • Index(es):
    • Date
    • Thread