Re: Custom Framework Basics
Re: Custom Framework Basics
- Subject: Re: Custom Framework Basics
- From: "Mark Munz (DevList)" <email@hidden>
- Date: Mon, 30 May 2005 08:05:33 -0500
On May 30, 2005, at 6:41 AM, Jonathon Mah wrote:
Hi Francisco,
On 2005-05-30, at 07:15, Francisco Tolmasky wrote:
I'm attempting to create a custom framework, and I would like to
know how to initially set up my project. Apple suggests having a
Framework Target and a Testing Target within the same project
since the dependancies are "easy to handle". But I'm having
trouble doing this. I have been able to add a new target to my
framework project, and have been testing with it, but Im not sure
if Im doing some thing correctly. For example, I ended up adding
Cocoa and FOundation frameworks twice, one for each target, this
seems innifficient, but maybe its required.
Adding a framework to a target just tells the linker that you're
using code from that framework. Both _your_ framework and test app
use Foundation stuff, for example. It doesn't actually add those
files (as then every app on your system would include a copy of
Cocoa!). So that's how it's meant to work, and it's as efficient as
you're going to get. :)
If you're creating a private framework and NOT installing it at /
Library/Frameworks/ or ~/Library/Frameworks, then you do need to
remember to copy the framework bundle into your Application's bundle
(AppleBundle)/Contents/Frameworks/ using a copy files build phase.
Otherwise your application will simply refuse to launch (with no hint
as to the problem).
Mark Munz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden