• 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: imageNamed cannot load an image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • RE: imageNamed cannot load an image
      • From: "Christopher Hickman" <email@hidden>
    • Re: imageNamed cannot load an image
      • From: Artemiy Pavlov <email@hidden>
References: 
 >imageNamed cannot load an image (From: Artemiy Pavlov <email@hidden>)

  • Prev by Date: Re: NSData dataWithBytes problem on Intel
  • Next by Date: NSDocument not loading nib soon enough
  • Previous by thread: imageNamed cannot load an image
  • Next by thread: Re: imageNamed cannot load an image
  • Index(es):
    • Date
    • Thread