Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
March 24, 2018, 05:07:04 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register Chat  
Pages: [1]   Go Down
Author Topic: 5th printing, prog 2.1 - unable to get output to display after build and run  (Read 2101 times)
Posts: 4

« on: July 29, 2009, 04:11:32 PM »

Hi, glad this newsgroup is here, as I'm already having trouble on the first example.   Here is my program, typed almost word for word from the Kindle 5th ed.  There are no errors, but there is no output either.  Do I need to open up the terminal window on my own to get the output?

//First Program example

#import <Foundation/Foundation.h>

int main (int argc, const char * argv[])
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    NSLog(@"Programming is fun!");
    [pool drain];
    return 0;
Global Moderator
Full Member
Posts: 212

« Reply #1 on: July 29, 2009, 05:50:23 PM »

You need to have the console open (via the Run menu).

See this thread:

Sanity: Minds are like parachutes. Just because you've lost yours doesn't mean you can borrow mine.
Pages: [1]   Go Up
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents ゥ 2009 All rights reserved.