• 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: ScreenSaver & Bundles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ScreenSaver & Bundles


  • Subject: Re: ScreenSaver & Bundles
  • From: Calum Robinson <email@hidden>
  • Date: Thu, 11 Apr 2002 09:57:11 +0000

[NSBundle bundleWithIdentifier:@"com.you.yoursaver"]

Whilst this may look really slow, it searches all of the loaded bundles first for the specified identifier.

On Wednesday, April 10, 2002, at 08:57 pm, Michael P. Rogers wrote:

Greetings,

I'm trying to bring an image in my resources folder into a ScreenSaverView. But this code:

imagePath = [ [NSBundle mainBundle]pathForResource:@"map" ofType:@"gif"];

gets me null, although map.gif is in the resources folder of my .saver.

What's the right way to access this?

Calum Robinson
http://homepage.mac.com/calumr
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >ScreenSaver & Bundles (From: "Michael P. Rogers" <email@hidden>)

  • Prev by Date: Re: NSTableView and NSImage
  • Next by Date: Re: NSTableView reloadData question FOLLOWUP
  • Previous by thread: Re: ScreenSaver & Bundles
  • Next by thread: AppleScipt & Cocoa, argh! I can't get it to work
  • Index(es):
    • Date
    • Thread