The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

2.2 Unlock / Jailbreak OS X | Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-25-2008, 02:03 AM
What's Jailbreak?
 
Join Date: Oct 2008
Device + Firmware: iPhone 3G 16GB 2.1
Operating System: Mac OS X 10.5.5
Location: Los Angeles, CA
Posts: 7
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via AIM to Mykel2727
total n00b question

so i am just trying to learn obj-c
i have this book: 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:
Code:
//
//  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;
}
thats in the main.m file
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

thnks

Last edited by Mykel2727; 10-25-2008 at 10:45 AM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2 (permalink)  
Old 10-25-2008, 11:25 PM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 2.2.0
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,206
Thanks: 43
Thanked 197 Times in 158 Posts

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
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3 (permalink)  
Old 10-26-2008, 09:28 PM
What's Jailbreak?
 
Join Date: Oct 2008
Device + Firmware: iPhone 3G 16GB 2.1
Operating System: Mac OS X 10.5.5
Location: Los Angeles, CA
Posts: 7
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via AIM to Mykel2727

k nvm i got it
i was just tired and wasnt thinking straight
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


Go to Top
ModMyI

All times are GMT -6. The time now is 07:29 AM. Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 | Dedicated Server Hosting by SingleHop | Copyright © 2007-09 by ModMy, LLC. All rights reserved.

RSS / Contact Us / / ModMyi Home / Archive / Privacy Statement / Top


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122