• 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: Frustrating...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Frustrating...


  • Subject: Re: Frustrating...
  • From: Jeff LaMarche <email@hidden>
  • Date: Mon, 13 Jan 2003 22:18:42 -0500

On Monday, January 13, 2003, at 09:37 PM, Quentin Mathi wrote:

When you open a document :
1. The data is loaded by your NSDocument subclass
2. The nib file associated with this document is loaded by the window controller
3. You fill the document with the loaded data

To know when the nib file is loaded, it's very simple because the NSWindowController call the method windowControllerDidLoadWindowNib:, then you just need to override this method like that :
- (void)windowControllerDidLoadWindowNib:(NSWindowController *)windowController {
[super windowControllerDidLoadWindowNib:windowController];
 // fill my document here
}

I'm not finding any reference to windowControllerDidLoadWindowNib, I'm guessing you mean windowControllerDidLoadNib. I had already tried putting my call to updateUI in windowControllerDidLoadNib, which didn't work. However, I tried again and it is now working. I think the reason it didn't work before was due to an unrelated bug I had in my encodeWithCoder: method and have since fixed, because everything seems to be dandy now.

Thanks for the help!
Jeff
_______________________________________________
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: Frustrating...
      • From: Mike Ferris <email@hidden>
References: 
 >Re: Frustrating... (From: Quentin Mathé <email@hidden>)

  • Prev by Date: Re: Apple and Cocoa (why don't they eat their own dog food?)
  • Next by Date: Java NSOutlineView subclass throws NSArchiverArchiveInconsistency?
  • Previous by thread: Re: Frustrating...
  • Next by thread: Re: Frustrating...
  • Index(es):
    • Date
    • Thread