• 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: Weird problem with documents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Weird problem with documents
      • From: Donald Brown <email@hidden>
References: 
 >Re: Weird problem with documents (From: Donald Brown <email@hidden>)

  • Prev by Date: Re: Subclassing NSButton, and IB palettes
  • Next by Date: Re: IBOutlets and savePanels
  • Previous by thread: Re: Weird problem with documents
  • Next by thread: Re: Weird problem with documents
  • Index(es):
    • Date
    • Thread