Re: Multiple views in a nib file?
Re: Multiple views in a nib file?
- Subject: Re: Multiple views in a nib file?
- From: Jean-Nicolas Jolivet <email@hidden>
- Date: Mon, 24 Nov 2008 02:40:21 -0500
mmm I guess I'll keep it one view per nib... I thought I might be
missing something obvious... could just be that it's 3am too! :)
Thanks for the reply! I'll look into the controller idea too...see
which one would fit best for what I'm trying to implement!
On 24-Nov-08, at 2:33 AM, Kyle Sluder wrote:
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
Jean-Nicolas Jolivet
email@hidden
http://www.silverscripting.com
_______________________________________________
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