Hi,
I am really new to Objective-C and Cocoa and have been teaching myself using "Programming in Objective-C" to good effect using Xcode 2 on Tiger.
I just upgraded to leopard (and thus Xcode 3) and something has happened and now I can't get any of my programs to run
I have been making "Foundation tools" (command line utilities) from the book. This is the code:
It compiles and "runs" successfully but doesn't display the little white command line window printing "Hello, World!". This is the same with using the printf command and if I use the scanf command then the app remains runing (according to Activity Monitor) but is not on the dock or on my screen?
What is different about this version of Xcode? How come everything stopped working???
Thanks,
MadDoc,
I am really new to Objective-C and Cocoa and have been teaching myself using "Programming in Objective-C" to good effect using Xcode 2 on Tiger.
I just upgraded to leopard (and thus Xcode 3) and something has happened and now I can't get any of my programs to run
I have been making "Foundation tools" (command line utilities) from the book. This is the code:
Code:
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
// insert code here...
NSLog(@"Hello, World!");
[pool drain];
return 0;
}
It compiles and "runs" successfully but doesn't display the little white command line window printing "Hello, World!". This is the same with using the printf command and if I use the scanf command then the app remains runing (according to Activity Monitor) but is not on the dock or on my screen?
What is different about this version of Xcode? How come everything stopped working???
Thanks,
MadDoc,