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 _______________________________________________ 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]