Re: Weird problem with documents
Re: Weird problem with documents
- Subject: Re: Weird problem with documents
- From: Donald Brown <email@hidden>
- Date: Sun, 14 Jul 2002 10:39:25 -0500
I've got a variety of NSObjects--but I may have just found it. Somehow, I
got an NSFontManager object in my document. That's probably a bad, bad
thing. Unfortunately, Project Builder won't let me delete it.
Donald
on 7/14/02 10:10 AM, James DiPalma at email@hidden wrote:
>
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.
--
Donald Brown
email@hidden
http://www.eamontales.com
We have met the enemy and he is us - Pogo
_______________________________________________
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.