Accessing Resources
Accessing Resources
- Subject: Accessing Resources
- From: "Bobby B" <email@hidden>
- Date: Mon, 17 Apr 2006 15:10:07 -0400
Hey guys;
I have a quick question. I've added some images to my program, via
"Add Existing Files to Project", and they are listed under my
resources. How do I access these in my program? I need to access
them as [myImage initWithContentsOfFile:@""];. I try using just their
filename, and the program crashes. But, if I use their absolute path
("/users/Me/Development/ProgramName/imagename.tif") it works fine.
But obvioulsy I can't hard-code that path in the program.
Any suggestions?
Thank you,
Bobby B
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden