• 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: Does anyone know how to correctly create an IB Plugin?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does anyone know how to correctly create an IB Plugin?


  • Subject: Re: Does anyone know how to correctly create an IB Plugin?
  • From: "Adam R. Maxwell" <email@hidden>
  • Date: Tue, 21 Oct 2008 08:15:10 -0700


On Oct 20, 2008, at 8:32 PM, Christopher Roach wrote:

Does anyone on this list happen to know how to develop an IB plug-in,
embed it into an existing custom framework, and use it in a separate
application? I've been searching for days, but the only documentation
I can find so far is in Apple's IB Plug-in Programming Guide which
seems to be either wrong or incomplete. I walked through the quick
start in the guide but it only works when I build and run the Xcode
project in which I created the plug-in. Once I try to add the
framework to a separate application, I get errors indicating that it
can't find the plugin.

I managed to get this working in my icon view project at http://fileview.googlecode.com after a bit of playing around and deciphering log messages. The route I took was to set


INSTALL_PATH = @loader_path/../../../../../../../

in the framework. Programs that use the framework have a shell script build phase that does this:

/usr/bin/install_name_tool -change \
'@loader_path/../../../../../../../FileView.framework/Versions/A/ FileView' \
'@executable_path/../Frameworks/FileView.framework/Versions/A/ FileView' \
"${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}"


so the main executable can find the framework. It all feels like a hack, but at least the plugin works (or did last time I tried it). The above is based on vague memories and a quick glance at my build settings, so beware...

I already have a framework that I've created and I have two custom
views in it that I would like to turn into IB plugins. If anyone has
experience with creating frameworks and plugins, please point me in
the right direction.

That's exactly what I did, so maybe my stuff is useful as an example of what (not?) to do :).


hth,
Adam

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: 
 >Does anyone know how to correctly create an IB Plugin? (From: "Christopher Roach" <email@hidden>)

  • Prev by Date: Re: Launching 32- vs 64- bit custom executables
  • Next by Date: RE: Xcode projects to make files?
  • Previous by thread: Re: Does anyone know how to correctly create an IB Plugin?
  • Next by thread: application support x86_64 architecture issue
  • Index(es):
    • Date
    • Thread