Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Still no way to view CFString in custom data fomatter, huh?




On Oct 31, 2007, at 8:11 PM, Dmitry Markman wrote:

I can see content of CFStringRef without any problem

here is a code

CFStringRef ftpHandler = LSCopyDefaultHandlerForURLScheme(CFSTR("ftp"));
I can see in the debugger window


Variable			Value				Summary
ftpHandler		0xa039b700			com.omnigroup.omniweb5

I can also see that information as a tooltip if I click on the ftpHandler and will wait for 1-2s

Huh. Well, two things.

1) When I look at a C++ object pointer and drill down to the CFTypeRef, I get nothing. Now, maybe that's not the data formatting fault, because Xcode thinks the variable is out of scope. Here's the code:

GroundStation* gs = new GroundStation();
	
gs->setID(1);
gs->setName("San Carlos");


setName takes an object NString, which wraps a CFTypeRef, which is really a pointer to a CFStringRef.


At a breakpoint just after the setName() call, I can dink open gs, and get something like this:

gs
ObjectOfInterest (superclass of gs)
private
mName type: NString value: {...} summary: out of scope
NCFObject
private
mObject type: CFTypeRef value: 0x664d20 summary: <empty>



So, I don't know why the first is out of scope, but it seems to have an address for mObject, but it won't render it. Maybe that's because it can't tell what it is, but I *can* choose Print Description to Console and that prints the value of the string. Seems like it could do the same to the summary window.


2) The doc for Custom Data Formatters says "Note, however, that you cannot specify a custom format for string types, such as NSString, char*, and so on." This makes me sad, 'cause I'd really like to make one so that the top-level NString shows the string value.

--
Rick




_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Still no way to view CFString in custom data fomatter, huh? (From: Rick Mann <email@hidden>)
 >Re: Still no way to view CFString in custom data fomatter, huh? (From: Dmitry Markman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.