• 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
NSWindowController subclass as nib file owner issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSWindowController subclass as nib file owner issues


  • Subject: NSWindowController subclass as nib file owner issues
  • From: Edwin Vane <email@hidden>
  • Date: Sat, 30 Jul 2005 00:28:32 -0400
  • Mail-followup-to: Cocoa-Dev <email@hidden>

Hi,

I have a subclass of NSWindowController being the file owner for a nib
containing a window I want managed. The first thing I've noticed is that
any outlets I add to NSWindowController aren't initialized by the
-initWithWindowNibName method (even though I've connected the outlets to
the file owner in interface builder). Outlets aren't initialized until I
try to do a:

[self window];

which loads the window. What does initWithWindowNibName actuall do? The docs
lead me to believe it loads the nib file and causes all the unarchiving stuff to
happen. What would be the purpose of loading the nib file but not
actually unarchiving the contents (which seems to be happening here)?

Any insight would be appreciated. I'm just curious.


--

Edwin Vane
   MMath Candidate
   Computer Graphics Lab
   School of Computer Science
   University of Waterloo

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSWindowController subclass as nib file owner issues
      • From: Chris Hanson <email@hidden>
    • Re: NSWindowController subclass as nib file owner issues
      • From: "Marcus S. Zarra" <email@hidden>
  • Prev by Date: NSDateFormatter
  • Next by Date: Failed to copy Resource Fork??
  • Previous by thread: NSDateFormatter
  • Next by thread: Re: NSWindowController subclass as nib file owner issues
  • Index(es):
    • Date
    • Thread