Re: Third party frameworks
Re: Third party frameworks
- Subject: Re: Third party frameworks
- From: Shane Stanley <email@hidden>
- Date: Sat, 04 Oct 2014 22:27:06 +1000
On 4 Oct 2014, at 3:42 am, John C. Welch <email@hidden> wrote:
> If anyone had the time to create a basic howto on using them in projects, (or knows of one that isn't primarily iOS-focused) I for one would be forever grateful. I've one application that I've wanted to add graphing to, but the process of using a third party framework is slightly beyond what I can dope out.
It's pretty simple. On your project's General tab, with the target app selected, add the framework to the Linked Frameworks and Libraries list; there's a + sign there somewhere, depending on the version of Xcode. That's about it.
The tricky part, though, is using it if wasn't built with bridging support. Basically, look inside the framework folder for a .bridgesupport file. If it's not there, you're out of luck. You need to either contact the developer and ask, or if the source is available, build your own version.
The process of building a framework with bridging support is generally done by adding a Run Script phase to the Build Phases, with a script like this:
mkdir -p $TARGET_BUILD_DIR/$PRODUCT_NAME.framework/Resources/BridgeSupport/
cd $TARGET_BUILD_DIR
gen_bridge_metadata --64-bit -f $TARGET_BUILD_DIR/$PRODUCT_NAME.framework/ -o $TARGET_BUILD_DIR/$PROJECT_NAME.framework/Resources/BridgeSupport/$PRODUCT_NAME.bridgesupport
Even then, there can be some methods that mean the .bridgesupport file needs to be manually tweaked. It just depends on how straight-forward the API is.
> A Quartz Composer tidbit would be similarly appreciated.
Pass.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden