Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mac > BOOK: Professional Xcode 3
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Xcode 3
This is the forum to discuss the Wrox book Professional Xcode 3 by James Bucanek; ISBN: 9780470525227
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Xcode 3 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old April 19th, 2010, 06:04 PM
Registered User
 
Join Date: Apr 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Debugger Data formatters

This is my object structure

MyObjectA
{
NSURL * url;
}

MyObjectB : MyObjectA
{
...
}

For discussion, avariable instanceOfMyObjectB has been created. Looking at the variable window, I see this:

instanceOfMyObjectB 0x....
MyObjectA {...}
NSObject {...}
url 0x... out of scope


The URL is not printed out, out of scope is printed and it contains just the format string({(unichar *)Xcode_CFStringSummary((void *)[$VAR description], $ID)}:s, default one provided by XCode). If I go to the debugger console and do 'po instanceOfMyObjectB.url', OR po [instanceOfMyObjectB.url description] it prints out the URL correctly. In fact, all the members of MyObjectA only show their format string but all print out correctly in the debugger console.

Working with this a bit, it looks like there is an issue with $VAR. If I replace $VAR with instanceOfMyObjectB.url, it works fine. But this formatter is now specific to the variable name.

Any Clues? I've read the section on formatters in your book and there is one section where you talk about casting the derived object to the superclass. However, that doesn't seem to help.

Thanks!
 


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error for Formatters Maverick72 .NET Framework 2.0 0 October 30th, 2008 07:25 AM
no debugger found dudette .NET Framework 1.x 0 July 4th, 2007 10:27 AM
Help! Script Debugger! Boker BOOK: Beginning ASP 3.0 2 February 27th, 2007 06:28 PM
Need Help : VS Just-in-time Debugger rahi Visual Basic 2005 Basics 3 June 29th, 2006 11:43 PM
sql debugger dkspivey SQL Server 2000 1 January 12th, 2006 10:07 AM



All times are GMT -4. The time now is 12:17 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.