• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Static Cocoa Library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Static Cocoa Library
      • From: koko <email@hidden>
References: 
 >Static Cocoa Library (From: koko <email@hidden>)

  • Prev by Date: Re: NSViewController
  • Next by Date: Re: Static Cocoa Library
  • Previous by thread: Re: Embedding resources in Static Cocoa Library
  • Next by thread: Re: Static Cocoa Library
  • Index(es):
    • Date
    • Thread