I am almost finished with my super cool Experience Point calculator for our RoleMaster RPG. (yep, I am a geek at heart!). I did a release build and the images files were not there. Chown33 explained to me that I need to us the NSBundle and I read the documentation but I did not understand it completely. I then scoured the web and everything tutorial wise is for Xcode 3 or iPhones.
Here is how I access my images right now.
I have all my images in an image folder within my project. If I understand NSBundle correctly I use it to gather my images and bring them into the program to use. Do I bring in just the image folder or each image by it's self?
If anyone has any links to any tutorials that explain this better or sample files, I would be thankful. There are so many Methods in the NSBundle class and I am getting lost.
This is the last step before I can do the final working build! Then I can share it!
-Lars
Here is how I access my images right now.
Code:
-(void)setRoundImages{
NSImage *rOneOff = [[NSImage alloc] initWithContentsOfFile:@"/Volumes/Media_Projects/Programing/Objective_C/Xp Calc2/images/rOneOff2.png"];
[roundOneLight setImage:rOneOff];
[rOneOff release];
I have all my images in an image folder within my project. If I understand NSBundle correctly I use it to gather my images and bring them into the program to use. Do I bring in just the image folder or each image by it's self?
If anyone has any links to any tutorials that explain this better or sample files, I would be thankful. There are so many Methods in the NSBundle class and I am getting lost.
This is the last step before I can do the final working build! Then I can share it!
-Lars