• 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: images bundled with framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: images bundled with framework


  • Subject: Re: images bundled with framework
  • From: Jiri Volejnik <email@hidden>
  • Date: Tue, 6 Dec 2005 12:23:59 +0100

Hi Alexey,
I do it this way:

NSBundle* bundle = [NSBundle bundleForClass:[self class]];
NSString* path = [NSBundle pathForResource:name ofType:@"tiff" inDirectory:[bundle bundlePath]];
NSImage* image = [[NSImage alloc] initByReferencingFile:path];

Jiri

Hi!

What is the proper method for accessing images, that are bundled with
framework from within that framework?

I put some controls which are used in my program into the framework,
and "hide" it inside my applications bundle.

those controls have some images associated with them.

--
Alexey Zakhlestin
Milk Farm Software, ltd. CEO
http://www.milkfarmsoft.com/

_______________________________________________
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: 
 >images bundled with framework (From: Alexey Zakhlestin <email@hidden>)
 >Re: images bundled with framework (From: Alexey Zakhlestin <email@hidden>)

  • Prev by Date: Double-clicking multiple selection in a TableView
  • Next by Date: Re: Programmatically traverse NSTreeController
  • Previous by thread: Re: images bundled with framework
  • Next by thread: Double-clicking multiple selection in a TableView
  • Index(es):
    • Date
    • Thread