• 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: James Chen <email@hidden>
  • Date: Thu, 22 Mar 2007 17:46:05 +0800
  • Thread-topic: imageNamed cannot load an image

Hi,
If you're developing a loadable bundle.
[NSImage imageNamed:@"whatever"] will looking for the image file in
"mainBundle" but not your loadable bundle.
You have to use NSBundle's methods to locate your image instead.
HTH,
James Chen
Presentation Product Division
TEL: +886 2 22263630 ext 8538
FAX: +886 2 22267241
Mailto: email@hidden
http://www.avermedia.com
AVerMedia Technologies, Inc.

簡報產品事業單位: 陳銘崧
圓剛科技(股)公司
This message contains information that may be confidential and privileged.
Unless you are the addressee (or authorized to receive messages for the
addressee), you cannot use, copy or disclose to any third party or any
information contained in the message. If you have received the message in
error, please advise the sender by reply e-mail and delete the message.
Nothing in this message should be interpreted as a digital or electronic
signature that can be used to authenticate a contract or to other legal
document. Thank you very much.


> From: Artemiy Pavlov <email@hidden>
> Date: Thu, 22 Mar 2007 11:11:29 +0200
> To: Michael Watson <email@hidden>
> Cc: Cocoa <email@hidden>
> Subject: Re: imageNamed cannot load an image
>
>
> On 21 Mar 2007, at 11:27 PM, Michael Watson wrote:
>
>> Is the image actually part of a copy files build phase? Does it
>> show up in your app package when built?
>
> Yes, sure, it's in the "Resources" folder of my view bundle.
>
>
> Artemiy.
> _______________________________________________
>
> 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

_______________________________________________

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: Artemiy Pavlov <email@hidden>
References: 
 >Re: imageNamed cannot load an image (From: Artemiy Pavlov <email@hidden>)

  • Prev by Date: Re: imageNamed cannot load an image
  • Next by Date: How best to access application-scope objects from documents
  • Previous by thread: Re: imageNamed cannot load an image
  • Next by thread: Re: imageNamed cannot load an image
  • Index(es):
    • Date
    • Thread