Hi,

   To be honest,  i can't catch what your question are. Maybe this could help 
you 

loadNibFile:externalNameTable:withZone:
Unarchives the contents of the nib file and links them to objects in your 
program.

+ (BOOL)loadNibFile:(NSString *)fileName externalNameTable:(NSDictionary 
*)context withZone:(NSZone *)zone

Parameters
fileName
The location of the nib file specified as an absolute path in the file system.

context
A name table whose keys identify objects associated with your program or the 
nib file. The newly unarchived objects from the nib file use this table to 
connect to objects in your program. For example, the nib file uses the object 
associated with the NSNibOwner constant as the nib file's owning object. If you 
associate an empty NSMutableArray object with the NSNibTopLevelObjects 
constant, on output, the array contains the top level objects from the nib 
file. For descriptions of these constants, see NSNib Class Reference.

zone
The memory zone in which to allocate the nib file objects.

Return Value
YES if the nib file was loaded successfully; otherwise, NO.

Discussion
This method is declared in NSNibLoading.h.

> Date: Wed, 26 Nov 2008 15:39:35 +0800
> From: [EMAIL PROTECTED]
> To: Cocoa-dev@lists.apple.com
> CC: 
> Subject: How to use IB to create a viewcontroller which actually linking to   
> another nib file?
> 
> Hi All,
> 
> I'm a newbie here. And i'm not sure if I can send questions directly to this
> mail list. If not, please kindly tell me how to ask questions. Thanks!
> 
> When I create a new prj using "viewbased app" template, it will create 2 nib
> file. And in MainWindow.xib, thre is a viewcontroller, when I open it, it
> says loaded from "another viewcontroller.nib".
> 
> Question is how do I mimic this behaviour and create a new viewcontroller
> which suppose to load from a new xib file.
> 
> 
> He Xiao
> 2008-11-26
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/imlerry%40live.cn
> 
> This email sent to [EMAIL PROTECTED]

_________________________________________________________________
新版手机MSN,新功能,新体验!满足您的多彩需求!
http://mobile.msn.com.cn
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to