• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multiple views in a nib file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Multiple views in a nib file?
      • From: Jean-Nicolas Jolivet <email@hidden>
References: 
 >Multiple views in a nib file? (From: Jean-Nicolas Jolivet <email@hidden>)

  • Prev by Date: Re: NSPopupUpButton not showing checked menu items
  • Next by Date: Re: Multiple views in a nib file?
  • Previous by thread: Multiple views in a nib file?
  • Next by thread: Re: Multiple views in a nib file?
  • Index(es):
    • Date
    • Thread