Re: When to register binding transformers (applicationDidFinishLaunching)?
Re: When to register binding transformers (applicationDidFinishLaunching)?
- Subject: Re: When to register binding transformers (applicationDidFinishLaunching)?
- From: Scott Anguish <email@hidden>
- Date: Mon, 22 Mar 2004 00:44:27 -0500
On Mar 21, 2004, at 11:58 PM, Tod Cunningham wrote:
According to the binding documentation from apple
(http://developer.apple.com/documentation/Cocoa/Conceptual/
ValueTransformers/index.html): "Value transformers are typically
registered by an applications delegate, in response to receiving a
applicationDidFinishLaunching: message."
Yep, this is an error. It's been corrected for the next release.
It needs to be done before anything else gets loaded from the nib. So
your Application delegate's +initialize method is an excellent choice.
However if I setup manual binding with a custom transform in
awakeFromNib controller, the application will assert with
NSInternalInconsistencyException because my transform hasn't been
registered yet. Also the application will assert when the nib is
loaded, if the transform is specified in the NIB file itself. So
where is the best place to register the transform? I should mention
that this is a non-document based application...
_______________________________________________
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.