Re: imageNamed cannot load an image
Re: imageNamed cannot load an image
- Subject: Re: imageNamed cannot load an image
- From: Kevin Hoctor <email@hidden>
- Date: Wed, 21 Mar 2007 15:24:47 -0500
On Mar 21, 2007, at 1:07 PM, Artemiy Pavlov wrote:
I have an image file SpaceOscillator.png which resides in my
"Resources" and in the Interface Builder as SpaceOscillator. When I
try to draw it, it just doesn't work: the code I use is below, and
I always get "Couldn't load background image".
Can anyone suggest what I should do?
Thanks very much,
Artemiy.
NSImage *BackgroundImage = [NSImage imageNamed:@"SpaceOscillator"];
Try using @"SpaceOscillator.png"
Peace,
Kevin Hoctor
email@hidden
No Thirst Software LLC
http://nothirst.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden