Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
December 17, 2017, 10:44:13 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
  Print  
Author Topic: 5th printing, prog 2.1 - unable to get output to display after build and run  (Read 2044 times)
falciform
Newbie
*
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;
}
Logged
rgronlie
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:

 http://classroomm.com/objective-c/index.php?topic=817.msg3704#msg3704
Logged

Sanity: Minds are like parachutes. Just because you've lost yours doesn't mean you can borrow mine.
Pages: [1]   Go Up
  Print  
 
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 classroomM.com. All rights reserved.