Re: Weird problem with documents
Re: Weird problem with documents
- Subject: Re: Weird problem with documents
- From: James DiPalma <email@hidden>
- Date: Sun, 14 Jul 2002 11:10:42 -0400
Guessing here: Do you have a top level object in your nib that returns a
shared instance from its init method? This array is topLevelObjects, so
nil has to be one of your nib's top level objects. Maybe its your
NSDocument subclass. What objects are in this nib file?
On Friday, July 12, 2002, at 03:15 PM, Donald Brown wrote:
2002-07-12 13:32:11.901 InTouch With[876] *** -[NSCFArray addObject:]:
attempt to insert nil
Did that, and the stack is
[NSIBObjectData nibInstantiateWithOwner: topLevelObjects]
[NSRTFReader dealloc]
[NSBundle(NSNibLoading) _loadLibName:nameTable: withZone: ownerBundle:]
[NSBundle(NSNibLoading) loadNibFile: externalTableName: withZone:]
[NSWindowController loadWindow]
[NSWindowController window]
[NSWindowController showWindows]
[NSDocumentController openUntitledDocumentOfType: display:]
This occurs before my document's windowControllerDidLoadNib routine is
called, even before windowNibName is called.
Maybe? How does NSDocumentController init this window controller without
asking for windowNibName? I'm thinking that first windowNibName would
get used to get a nib name, then a window controller gets init-ed with
this nib name, then it gets loaded.
-jim
_______________________________________________
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.