Re: When to register binding transformers (applicationDidFinishLaunching)?
Re: When to register binding transformers (applicationDidFinishLaunching)?
- Subject: Re: When to register binding transformers (applicationDidFinishLaunching)?
- From: "b.bum" <email@hidden>
- Date: Sun, 21 Mar 2004 21:50:33 -0800
On Mar 21, 2004, at 8:58 PM, Tod Cunningham wrote:
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...
Add something like to main() (see main.m):
NSAutoreleasePool *p = [[NSAutoreleasePool alloc] init];
... register your transformer here ...
[p release];
_______________________________________________
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.