I've used the SDK to start learning iPhone programming. Going back a step, as recommended, to learn some Objective-C. Using book by Steven Holzner, Visual Quickstart Guide, Objective-C. Followed directions to create my first program on my iMac. Compiles and runs, directions say "you should see this message"...
where?
The example is just using a simple printf command. Using Project - Command Line Tool - Foundation...
#import <Foundation/Foundation.h>
int main (void) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
// insert code here...
printf("Welcome to Objective-C.");
NSLog(@"Hello, World!");
[pool drain];
return 0;
}
also tried...
#import <stdio.h>
int main (void)
{
printf("Welcome to Objective-C!");
return 0;
}
I don't see any other reference to <stdio.h>