Re: Static Cocoa Library
Re: Static Cocoa Library
- Subject: Re: Static Cocoa Library
- From: Seth Willits <email@hidden>
- Date: Sat, 06 Oct 2012 10:01:55 -0700
On Oct 5, 2012, at 7:23 PM, koko wrote:
> Where would one get these images as their is no bundle where that can be stored?
>
> Or the question is where are resources for a static coco library stored?
Although it's technically possible to put images (or anything) into the library itself (const char image[] = {0x01, 0x0C, 0x0F, ....}) it's not a good plan. Either use a framework to keep the images bundled with the library, or you will have to bundle the images into the the bundle of the executable the library is linked into, and you can use [[NSBundle bundleForClass:[AClassInYourLibrary class]] pathForResource:...] to look in the right place for the images.
--
Seth Willits
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden