• 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: Canonical way of loading compound UI components from a NIB into some other UI?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Canonical way of loading compound UI components from a NIB into some other UI?


  • Subject: Re: Canonical way of loading compound UI components from a NIB into some other UI?
  • From: Ricky Sharp <email@hidden>
  • Date: Wed, 5 Dec 2007 19:13:56 -0600


On Dec 5, 2007, at 6:55 PM, Luke Evans wrote:

So, my current thinking has evolved to a couple of possibilities:
1. Research how Interface Builder 3.0 supports plug-ins. This might be overkill and require a lot of work, but in many ways this is what I'm trying to do, i.e. build a more abstract, compound control that I can just drag into other interfaces to get a 'static instance' copied in.

IB 3.x Plug-Ins aren't that bad. Look for my MyIBPlugin sample at <http://www.instantinteractive.com/private/samplecode/MyIBPlugin.zip > as a starting point. It doesn't contain an exact sample of what you want, but it's very easy:


(1) Your library template NIB will contain a library template object which will have its draggedView outlet connected to a pre-built instance of your NSView and subviews.

You then basically have a shortcut of sorts. You can then drag in that single library template object into whatever and a copy of your pre-built NSView will be dropped into place. You can then of course inspect any objects in that hierarchy and make alterations as needed.

Of course you'll need to set up any bindings and/or make connections to controllers for each instance you drag in.

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.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


  • Follow-Ups:
    • Re: Canonical way of loading compound UI components from a NIB into some other UI? [SOLVED?]
      • From: Luke Evans <email@hidden>
References: 
 >Canonical way of loading compound UI components from a NIB into some other UI? (From: Luke Evans <email@hidden>)
 >Re: Canonical way of loading compound UI components from a NIB into some other UI? (From: Joshua Emmons <email@hidden>)
 >Re: Canonical way of loading compound UI components from a NIB into some other UI? (From: Luke Evans <email@hidden>)

  • Prev by Date: Re: Canonical way of loading compound UI components from a NIB into some other UI?
  • Next by Date: Re: [CA] Create a "A la FrontRow" Button
  • Previous by thread: Re: Canonical way of loading compound UI components from a NIB into some other UI?
  • Next by thread: Re: Canonical way of loading compound UI components from a NIB into some other UI? [SOLVED?]
  • Index(es):
    • Date
    • Thread