Thread: total n00b question
-
10-25-2008, 02:03 AM #1What's Jailbreak?
- Join Date
- Oct 2008
- Location
- Los Angeles, CA
- Posts
- 7
- Thanks
- 3
- Thanked 0 Times in 0 Posts
total n00b question
so i am just trying to learn obj-c
i have this book: [ame="http://www.amazon.com/Programming-Objective-C-Developers-Library-Stephen/dp/0672325861/ref=pd_bbs_sr_2?ie=UTF8&s=books&qid=1224921644&sr= 8-2"]Programming in Objective-C (Developer's Library)[/ame]
so i just wanna make my first hello world app
but this (old) book still refers to project builder, the old xcode
my code for the app looks like this:
thats in the main.m fileCode:// // main.m // prog2 // // Created by Mykel2727 on 10/24/08. // Copyright __MyCompanyName__ 2008. All rights reserved. // #import <stdio.h> int main(int argc, char *argv[]) { printf ("Hello World!!!n"); return 0; }
and i selected cocoa application as my choice at the beginning
i know my code is fine,
its just that xcode doesn't like this
i hit build and go and nothing happens
what do i do
thnksLast edited by Mykel2727; 10-25-2008 at 10:45 AM.
-
10-25-2008, 11:25 PM #2
Are you familiar with any GUI development at all?
That program would be run from a command line and would only work from a shell prompt on a jailbroken iPhone. It is basically a C program, not Objective-C.
Look for the jailbreak Hello World sample to get a vague idea - I believe the main.m has changed in 2.x:
A Simpler "Hello World" for the iPhone - O'Reilly Mac DevCenter Blog
-
10-26-2008, 09:28 PM #3What's Jailbreak?
- Join Date
- Oct 2008
- Location
- Los Angeles, CA
- Posts
- 7
- Thanks
- 3
- Thanked 0 Times in 0 Posts
k nvm i got it
i was just tired and wasnt thinking straight



LinkBack URL
About LinkBacks
Reply With Quote