Re: Creating Custom Views in Interface Builder
Re: Creating Custom Views in Interface Builder
- Subject: Re: Creating Custom Views in Interface Builder
- From: Jacob Lukas <email@hidden>
- Date: Fri, 14 Mar 2008 14:43:09 -0400
Whoops meant to hit "Reply All"
On Mar 14, 2008, at 14:33, Michael Fey wrote:
Hello List!
I am trying to create a custom view class using Interface Builder
that I can then instantiate within my code as many times as needed.
In this particular case I have a control that I've created that
contains a progress bar, two text fields, two buttons, and an image
view. I then want to be able to create any number of these
components within my source code and add them to another view
dynamically.
I'm guessing that this question has been answered before, but my
searches have been unsuccessful. If someone could point me in the
right direction, that would be a great help. Thanks!
Regards,
Michael
What about creating this view in a separate nib, and loading it each
time you wish to insert it somewhere? Perhaps using +[NSBundle
loadNibNamed:owner:]
-Jacob
_______________________________________________
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