Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSWindowController subclass as nib file owner issues



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.