• 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: Matt Gemmell <email@hidden>
  • Date: Thu, 11 Apr 2002 01:00:55 +0100

On 10/4/02 9:57 pm, Michael P. Rogers <email@hidden> wrote:

> 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.

Hi Michael,

Try this instead:

[[NSBundle bundleForClass:[self class]]
pathForResource:@"map" ofType:@"gif"];


Best,
-Matt

--
Matt Gemmell
Scotland Software
<http://www.scotlandsoftware.com/>
_______________________________________________
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 reloadData question FOLLOWUP
  • Next by Date: Re: Quick PB localization question
  • Previous by thread: Re: ScreenSaver & Bundles
  • Next by thread: Re: ScreenSaver & Bundles
  • Index(es):
    • Date
    • Thread