Re: Does anyone know how to correctly create an IB Plugin?
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