Amazon.com Widgets Program 16.6 Question
Welcome, Guest. Please login or register.
Did you miss your activation email?
June 19, 2013, 02:12:26 PM
Home Help Search chat Login Register   
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+  Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+  Old Stuff
| |-+  Chapter Study
| | |-+  Chapter 16 - Working with Files
| | | |-+  Program 16.6 Question
Pages: [1]   Go Down
Print
Author Topic: Program 16.6 Question  (Read 571 times)
-jon-
Newbie
*
Posts: 23






« on: April 25, 2010, 05:08:01 PM »

I have 16.6 compiled.  How do you run this?  I read the other posts on this program and surmise that I have to use terminal. Step by step directions would be helpful.  Or is there a way to run this in XCode?
Logged
sinth
Newbie
*
Posts: 35






« Reply #1 on: May 24, 2010, 06:49:18 PM »

I'm gonna answer this even tho it's a month old, perhaps it will help someone else. Roll Eyes

Terminal way:
1. In the left pane "Groups & Files", expand the "Products" folder and right-click -> get info on the name of your program.

2. At the top now you will see "Full path:" and a pathname, select everything here up to the last slash so for example if your full path is /Users/Sinth/Desktop/objc/testprogram/build/Debug/testprogram
you want to copy everything expect for the last part leaving you with /Users/Sinth/Desktop/objc/testprogram/build/Debug/

3. Search for terminal.app in spotlight (control + space) and run it.

4. In the terminal type cd followed by the path you copied (surrounded by parenthesis) and hit enter.
Using the preceding path: cd "/Users/Sinth/Desktop/objc/testprogram/build/Debug/"

5. Now you can do the command for the program like so: ./testprogram src dest
Note that the ./ in front of the program name is needed here, and of course you will need to replace testprogram with whatever you named your program.

xcode way
In the left pane "Groups & Files", expand "Executables" and right-click -> get info at the item there.
In the window that shows you can add arguments from the "Arguments" tab.
Logged
Pages: [1]   Go Up
Print
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents (c) 2009 classroomM.com. All rights reserved.