• 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: Loading an image contained in a custom framework ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Loading an image contained in a custom framework ?


  • Subject: Re: Loading an image contained in a custom framework ?
  • From: Eric Morand <email@hidden>
  • Date: Tue, 30 Aug 2005 10:08:03 +0200

Thanks to both of you !

That's perfect !




Eric.


Le 26 août 05 à 23:48, j o a r a écrit :




On 26 aug 2005, at 23.29, Steve Shepard wrote:




You could do something like

NSBundle *frameworkBundle = [NSBundle bundleWithIdentifier:frameworkIdentifier];
NSString *imagePath = [frameworkBundle pathForResource:@"your image
name" ofType:@"tif"];
NSImage *myImage = [[NSImage alloc] initWithContentsOfFile:imagePath];


where frameworkIdentifier is the CFBundleIdentifier listed in the
framework's plist.




Yes, that's even better than my suggestion. I actually used this implementation at one time, but had to remove it for compatibility reasons (weird ones, don't ask), but it is to be preferred!


j o a r



 _______________________________________________
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





_______________________________________________ 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
References: 
 >Loading an image contained in a custom framework ? (From: Eric Morand <email@hidden>)
 >Re: Loading an image contained in a custom framework ? (From: Steve Shepard <email@hidden>)
 >Re: Loading an image contained in a custom framework ? (From: j o a r <email@hidden>)

  • Prev by Date: Re: Apple crash reports
  • Next by Date: multiple objects in my view
  • Previous by thread: Re: Loading an image contained in a custom framework ?
  • Next by thread: Re: Loading an image contained in a custom framework ?
  • Index(es):
    • Date
    • Thread