Error: 'NSImage' undeclared

Nibbie
Posts: 2
Joined: 2009.08
Post: #1
I'm not quite sure how this is possible, but I'm getting a compilation error stating that NSImage is undeclared. I've been messing with it for an hour or two and finally give up. Has anyone else had this happen or have any ideas on how to fix it?

Code:
-(IBAction)button1Click:(id)sender
{
    NSLog(@"button1Click");
    NSImage *img = [NSImage imageNamed:@"button75_Green.png"];
    [sender setImage:img];
}

There's the code, it's incredibly basic. Strangely.. if i just type NSI and hold Option-Esc i don't see NSImage in the auto-complete list. However, if i type NSO i do see NSObject (and same for other NS types).

I tried quitting xcode and relaunching, but still have the issue Sad
Quote this message in a reply
DoG
Moderator
Posts: 869
Joined: 2003.01
Post: #2
NSImage doesn't exist on the iPhone, UIImage does, however.
Quote this message in a reply
Nibbie
Posts: 2
Joined: 2009.08
Post: #3
Lol thanks.. i knew it had to be something painfully simple :-P
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  GL_QUADS undeclared demonpants 16 11,284 May 28, 2009 06:47 AM
Last Post: marioaae