The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

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  
Old 10-25-2008, 03: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 11:45 AM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2  
Old 10-26-2008, 12:25 AM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 2.2.0
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,231
Thanks: 45
Thanked 202 Times in 162 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  
Old 10-26-2008, 10: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



Go to Top
ModMyI

All times are GMT -6. The time now is 09:39 AM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top