
Originally Posted by
hookid
My question is, how do you like import things into interface builder that you made in photoshop or things like that for your interface?
I did it for my first attempt at an interface that i've scrapped and started over. Hopefully I remember acurately for you 
There are a couple of ways you can do it, but regardless the first thing you need to do is import the images into your XCode project.
If you want them to be static, then you can reference them in the attributes of the object in IB as the file name (no path needed) without the extention (i.e. just "image" if the file is "image.gif").
If you want to change them on the fly in your code (not that you can't do the above for a default and then do this to change it later), do something like:
Code:
NSString *imageName = [[NSString alloc] initWithString:@"volFull.gif"];
NSImage *volImage = [NSImage imageNamed:imageName];
[globalVolImage setImage:volImage];
Where globalVolImage is an outlet for a NSImageView object in your interface. Other interface objects should work similar.
Hope that helps.
-dave
Bookmarks