Re: custom NSViews and subviews - creating in IB
Re: custom NSViews and subviews - creating in IB
- Subject: Re: custom NSViews and subviews - creating in IB
- From: Kevin Cathey <email@hidden>
- Date: Mon, 11 May 2009 21:22:24 -0500
Hi Jack,
Your best bet is probably to create a new nib file that contains a top-
level view which is your "subview". Then, have outlets on the File's
Owner that connect to your various controls like the text field (or
just use bindings). In your code, then you would instantiate this nib
as many times as you needed. For information on how to do this, see
the Resource Programming guide:
http://developer.apple.com/documentation/Cocoa/Conceptual/LoadingResources/CocoaNibs/CocoaNibs.html#//apple_ref/doc/uid/10000051i-CH4-SW8
Kevin
--------------------------
Kevin Cathey
On 11 May 2009, at 20:51, Jack Carbaugh wrote:
I'm not sure if this is possible, but here goes:
I would like to "create" a subview with various controls in IB.
Then, in code, make a copy of that object and in turn make
modifications to some of the objects in that view. For example, set
a text field to a value.
Then, i'd like to add it to a super view.
Thanks for your help.
_______________________________________________
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
_______________________________________________
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