Re: Multiple views in a nib file?
Re: Multiple views in a nib file?
- Subject: Re: Multiple views in a nib file?
- From: "Kyle Sluder" <email@hidden>
- Date: Mon, 24 Nov 2008 02:33:11 -0500
On Mon, Nov 24, 2008 at 2:17 AM, Jean-Nicolas Jolivet
<email@hidden> wrote:
> The problem is, I'm not sure how I can store those custom views and
> associate them with their respective subclasses once they are instantiated.
> I'm able to do it if each views are in separate nib files, that way I just
> add a "nibName" property to my Tool class, so that every subclass of it has
> a distinct nib name, I load that nib and load the only view in it...
This seems like the right way to go. Alternatively, you could have a
ToolViewController with outlets for each tool... "pencilToolView",
"paintbrushToolView", etc.
But the one-per-nib approach strikes me as the better option.
--Kyle Sluder
_______________________________________________
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