Error: 'NSImage' undeclared
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?
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
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
Lol thanks.. i knew it had to be something painfully simple :-P
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| GL_QUADS undeclared | demonpants | 16 | 9,546 |
May 28, 2009 06:47 AM Last Post: marioaae |
|

