RE: Using custom NSValueTransformer objects in single-window applications
RE: Using custom NSValueTransformer objects in single-window applications
- Subject: RE: Using custom NSValueTransformer objects in single-window applications
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Tue, 16 Dec 2003 14:36:33 -0500
The docs strongly discourage the use of +load, and recommend using
+initialize instead:
"Due to the amount of uncertainty about the environment at the point that
load is invoked, you should avoid using load whenever possible. All
class-specific initialization should be done in the class's initialize
method."
Jonathan
Jonathan Wight wrote:
>
>
I've put them in the class's "+ (void)load" method (you may need to
>
wrap the code in an NSAutoreleasePool though).
>
>
Jon.
>
>
On Dec 16, 2003, at 10:07, 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?
>
>
>
> TIA.
>
>
>
> Oscar Morales Vivs.
>
> _______________________________________________
>
> 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.
>
>
[demime 0.98b removed an attachment of type
>
application/pkcs7-signature which had a name of smime.p7s]
>
_______________________________________________
>
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.
_______________________________________________
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.