Re: ScreenSaver & Bundles
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.