Results 1 to 2 of 2
  1. #1


    Member Since
    May 17, 2008
    Posts
    21
    Object-C Newbie Question
    Edit: The "Object-C" was a typo, sorry...objective

    Hello guys, I just got this great book (Programming in Objective-C 2.0) and I'm already working on the typical "hello world" program. I typed in the code, debugging ended normally on Xcode but I didn't get anything on screen. Here's the code:

    #import <Foundation/Foundation.h>

    int main (int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

    // insert code here...
    NSLog(@"Hello World");
    NSLog(@"Hello World 2");
    [pool drain];
    return 0;
    }

    I pressed Build and Go and I got nothing. Was I supposed to get something on the terminal or anything?? Thanks!

  2. #2

    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    Location
    MA
    Posts
    8,905
    Specs:
    27" i7 iMac, 15" Macbook Pro TB, 13" Macbook Air, iPhone 6S, iPod Nano 7th Gen
    Open up the console and you'll see your NSLog messages appear there..

    Regards

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Flash Object
    By cjc07 in forum Images, Graphic Design, and Digital Photography
    Replies: 1
    Last Post: 11-13-2010, 04:47 PM
  2. Distributed Object (newbie problem)
    By chriseccles in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 04-25-2010, 04:35 AM
  3. Select Object in PS 7
    By Christopher in forum Images, Graphic Design, and Digital Photography
    Replies: 10
    Last Post: 10-31-2007, 09:10 PM
  4. Object Annihilation
    By Stormer in forum OS X - Operating System
    Replies: 5
    Last Post: 08-01-2007, 08:03 PM
  5. okay SO MONEY IS NO OBJECT
    By hotskate in forum Apple Notebooks
    Replies: 15
    Last Post: 12-20-2006, 08:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •