• 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: Using custom NSValueTransformer objects in single-window applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using custom NSValueTransformer objects in single-window applications


  • Subject: Re: Using custom NSValueTransformer objects in single-window applications
  • From: Dustin Voss <email@hidden>
  • Date: Tue, 16 Dec 2003 17:09:50 -0800

On 16 Dec, 2003, at 8:07 AM, Sscar Morales Vivs wrote:

I'm trying to play with the new controller stuff, including NSValueTransformer objects (neato!). However, in order to use them in single window apps I need to register my custom value transformer instances before the main nib loads, which happens before the application delegate is send any notification that I know of.

So when instantiating the nib the value transformers are still not there, an exception is raised and the app terminates.

The docs say the app delegate is the suggested place for putting the registration code, but I figure I could do it somewhere else in this case. Any sound advice?

The initialize method, as others have suggested, is probably the best place. But if you wanted to centralize registration in one place, you could do it in the main() function before calling NSApplicationMain().
_______________________________________________
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.
References: 
 >Using custom NSValueTransformer objects in single-window applications (From: Óscar Morales Vivó <email@hidden>)

  • Prev by Date: Re: NSFont system help or documentation needed
  • Next by Date: Re: Interface builder, .nibs, etc ...
  • Previous by thread: RE: Using custom NSValueTransformer objects in single-window applications
  • Next by thread: Using invocation forwarding
  • Index(es):
    • Date
    • Thread