Hi, Im starting to learn objective C so i can make apps for mac and iphone. In the book im working from its got a hello program. Ive copied it and checked it and checked it again but i cant see whats wrong. I open xcode(3.2.1 or what ever is the newest with out the subscription) I click cocoa app, then write the code in 'main.m' and write
#import <Foundation/Foundation.h>
int main (int argc,const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSLog (@"Programming is fun!");
[pool drain];
return 0;
}
It comes up with something like 21555 errors. Please can some one tell me what im doing wrong. Ive been to nearly every apple store in the country and no one can help.
#import <Foundation/Foundation.h>
int main (int argc,const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSLog (@"Programming is fun!");
[pool drain];
return 0;
}
It comes up with something like 21555 errors. Please can some one tell me what im doing wrong. Ive been to nearly every apple store in the country and no one can help.