• 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: Can you create a shared toolbar as an IB Plugin?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can you create a shared toolbar as an IB Plugin?


  • Subject: Re: Can you create a shared toolbar as an IB Plugin?
  • From: Rick Hoge <email@hidden>
  • Date: Sat, 2 Feb 2008 22:48:18 -0500


However it is not possible to drag the NSToolBar item in IB into an IBLibraryObjectTemplate view. I had naively hoped I could do this, and configure all the different toolbar items in this template and then import the configured toolbar into different nib files. It's clear that the toolbar object does some special stuff when dragged (i.e. attaching itself to a window when dragged into one) so I shouldn't be surprised you can't drag it into an IBLibraryObjectTemplate view, or for that matter the parent view that contains all these in the IB Plugin nib file.

Ok - I just answered my own silly question (actually re-reading an old post by Ricky Sharp answered my silly question). You drag the toolbar into the *nib window* (not the view), and then connect the representedObject outlet of the IBLibraryObjectTemplate to the toolbar. This works perfectly.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Can you create a shared toolbar as an IB Plugin? (From: Rick Hoge <email@hidden>)

  • Prev by Date: Can you create a shared toolbar as an IB Plugin?
  • Next by Date: Re: Line-number references wrong by several lines
  • Previous by thread: Can you create a shared toolbar as an IB Plugin?
  • Next by thread: NSMutableArray access from other class
  • Index(es):
    • Date
    • Thread