How do I get this to display Hello World?

Discussion in 'Mac Programming' started by Doju, Jul 12, 2010.

  1. Doju macrumors 68000

    Joined:
    Jun 16, 2008
    #1
    Code:
    // First program example
    
    int main (int argc, const char * argv[])
    {
    	NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    	
    	NSLog (@"Hello, world!");
    	
    	[pool drain];
    	return 0;
    }
    In Xcode, I select Build and Run (command-R) but it just says it debugged in the bottom left corner (Debugging of "prog1" ended normally.)

    But, I want it to actually display the Hello World like the tutorial I'm falling says it should. How do I get it to do this?

    Thanks in advance.
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
  3. artbeat.easy macrumors newbie

    Joined:
    Jul 1, 2010
    #3
    press on [​IMG]
     

Share This Page