Amazon.com Widgets Xcode question related to chap. 2 exercises
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 20, 2013, 01:36:58 AM
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
|-+  Programming in Objective-C, 4th edition
| |-+  Chapter 2
| | |-+  Xcode question related to chap. 2 exercises
Pages: [1]   Go Down
Print
Author Topic: Xcode question related to chap. 2 exercises  (Read 1127 times)
jonr
Jr. Member
**
Posts: 52






« on: April 07, 2012, 04:34:06 PM »

I'm using Xcode 4.3.2 and just starting in on the 4th Edition book.  I'm seeing that my output for the first few exercises in chapter 2 only consists of the NSLog output (along with just a little bit of info that is right in front...date, time, etc.).  From reading the text that accompanies the exercises it appears that I should expect to see a more verbose message.  There should be a bunch of stuff before the NSLog output line and according to the book, a final bit of output from the final 'return' statement ('Program exited with status value:0').

My guess is that the difference could be the fact that the book was written using an earlier version of Xcode.  However, with that said, is there any way to tweak Xcode to make the output window more verbose (thinking this may be the reason why I'm seeing different amounts of output--the new version may have a different default setting). I've looked all around the Xcode UI and looked in HELP and can't find any info on this.

Any info would be appreciated.  It's not critical as I'm still able to do all the exercises..just a little bit curious.  I'm actually trying to learn as much about Xcode I can now while I'm going through the book, even at this early stage.
« Last Edit: April 07, 2012, 04:37:00 PM by jonr » Logged
happyzhb
Administrator
Newbie
*****
Posts: 47


Email




« Reply #1 on: May 11, 2012, 09:29:41 AM »

The latest xcode is smarter, it separates what is exactly output from your own program with the other compiler / system specific messages. You can turn it on and off.

Just above the output window, there is a drop-down menu with three options: “All output”, “Debugger output”, “Target output”, you get more verbose with “All output”.
Logged
jwalk
Newbie
*
Posts: 1






« Reply #2 on: December 21, 2012, 08:54:31 PM »

OK. The latest Xcode may be smarter, but I also cannot find a way to display more verbose output, especially to display the program's return status. As suggested, I am using the "All Output" option.

The 4th Edition of the book shows more verbose output before the NSLog output and one line displaying the program's return status after.

The 5th Edition of the book shows just one line: the NSLog output.

I am using Xcode 4.5.2 and the 5th Edition of the book. I'm guessing that the 4th Edition was written using an older version of Xcode, and the 5th Edition a newer version of Xcode.

Being able to run a program and interrogate the return status is a legitimate expectation. From the command line it is possible by running the command then issuing the command 'echo $?'. There must be some way to display the return status in newer versions of Xcode.

Has anyone found a solution?
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.