Mailing Lists: Apple Mailing Lists

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

Re: loading nib files



You do want -loadNibNamed:owner:
The owner argument is the "hook" you will need to get variables initialized with objects in the nib file. You might have noticed the "File's Owner" icon in Interface Builder. That icon is a stand-in for whatever object you specify as the owner when you call loadNibNamed:owner:. Connections made to File's Owner in the nib wil be re-established to the object you provide when you load the nib.


Of course, this really is territory well covered by available documentation and examples.
http://developer.apple.com/documentation/Cocoa/Conceptual/ LoadingResources/Concepts/UsingMultiNibFiles.html


http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSBundleAdditions.html#// apple_ref/occ/clm/NSBundle/loadNibNamed:owner:


_______________________________________________ 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.