RE: How to use IB to create a viewcontroller which actually linking to another nib file?
RE: How to use IB to create a viewcontroller which actually linking to another nib file?
- Subject: RE: How to use IB to create a viewcontroller which actually linking to another nib file?
- From: 李瑞 <email@hidden>
- Date: Wed, 26 Nov 2008 17:22:26 +0800
- Importance: Normal
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@hidden
> To: email@hidden
> 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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden
_________________________________________________________________
新版手机MSN,新功能,新体验!满足您的多彩需求!
http://mobile.msn.com.cn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden