Re: Load order of nib internals
Re: Load order of nib internals
- Subject: Re: Load order of nib internals
- From: Jérôme Laurens <email@hidden>
- Date: Tue, 16 Sep 2003 15:24:56 +0200
Le mardi, 16 sep 2003, ` 05:16 Europe/Zurich, Francisco Tolmasky a
icrit :
Alright, I have two instantiated objects within my nib, an application
controller and a custom document controller (so that it becomes the
default document controller). Currently, the document controller is
being loaded first, which crashes my program because it relies on some
things set up in the +initialize phase of my application controller.
Is there anyway to change the load order to avoid this?
Isn't there a problem of class design? What do you think of
@implementation MyAppController
+(void) initialize;
{
}
...
@end
@implementation MyDocController
+(void) initialize;
{
static BOOL tooLate = NO;
if(!tooLate)
{
tooLate = YES;
[MyAppController class];// calls +initialize as side effect
}
}
...
@end
no problem of order?
_______________________________________________
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.