On Jul 15, 2010, at 5:25 AM, Vincenzo Morgante wrote:

>>  If you put the image into your project and add it to your application 
>> target, Xcode will> automatically add it to a "Copy Files" build phase that 
>> places the image into> WhateverApp.app/Contents/Resources/imagename.png. 
>> That is also the place that -> pathForResource:ofType: will look for it. The 
>> link that Sam Reshu posted earlier explains> this in more detail.
> Into the folder containing my project there are the following files and 
> folders:- the folders "build", "English.lproj" and "OsiriX Headers";- the 
> files "Info.plist", "DisplayReport_Prefix.pch", "DisplayReport.xcodeproj", 
> "DisplayReport.h", "DisplayReport.m", "version.plist", "report.png".I 
> searched "report.png" into the folder "build", but I don't found it...The 
> subfolder "Resources" does not exist...

Actually I believe it is not enough for the image just to be in your project -- 
it must be in the Resources group (or at least that's the easiest way to get it 
automatically copied).  "Resources" is a group, which doesn't mean there is a 
folder with that name, it is just a conceptual grouping of files such as your 
nib files which are treated as application resources and therefore copied to 
the application bundle.  Try dragging imagename.png to the Resources group.

--Andy


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to