Results 1 to 2 of 2
  1. #1
    Object-C Newbie Question

    Member Since
    May 17, 2008
    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
    Object-C Newbie Question
    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 5 & 5S, iPod Nano 7th Gen, iPad 2 16GB WiFi, iPad 3
    Open up the console and you'll see your NSLog messages appear there..


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, 03:47 PM
  2. Distributed Object (newbie problem)
    By chriseccles in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 04-25-2010, 03: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, 08:10 PM
  4. Object Annihilation
    By Stormer in forum OS X - Operating System
    Replies: 5
    Last Post: 08-01-2007, 07:03 PM
    By hotskate in forum Apple Notebooks
    Replies: 15
    Last Post: 12-20-2006, 07: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