• 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: Load order of nib internals
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Load order of nib internals (From: Francisco Tolmasky <email@hidden>)

  • Prev by Date: Document Architecture Problem
  • Next by Date: Bug with NSAffineTransform and NSAttributedString?
  • Previous by thread: Re: Load order of nib internals
  • Next by thread: File Recovery
  • Index(es):
    • Date
    • Thread