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: "Dalzhim Dalzhim" <email@hidden>
- Date: Tue, 21 Oct 2008 10:00:12 -0400
Hello,
I have previously tackled a lot with this issue without reaching a final solution. I have been able to get a ibplugin embedded in a framework to load properly but I still haven't found a way to allow Interface Builder to load it up automatically when the associated xcode project of a nib file links again such a framework as the documentation suggests it should.
You will want to change the installation directory of your framework to @loader_path/../Frameworks and then you'll need to add a run script build phase to your plugin target so that it creates a symbolic link called Frameworks in the folder above the ibplugin file. This symbolic link should point to the folder in which the framework resides. In my project this is the script I have used:
if ! test -e "${CONFIGURATION_BUILD_DIR}/${PRODUCT_NAME}.ibplugin/Contents/Frameworks"; then
ln -s ../../../../../.. "${CONFIGURATION_BUILD_DIR}/${PRODUCT_NAME}.ibplugin/Contents/Frameworks"
fi
good luck
-Dalzhim
2008/10/20 Christopher Roach
<email@hidden>
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 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.
Thanks for your help.
--
Christopher Roach
http://christopherroach.com
_______________________________________________
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
_______________________________________________
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