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 PROTECTED]> 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 PROTECTED]
http://www.silverscripting.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to