• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Still no way to view CFString in custom data fomatter, huh?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: Still no way to view CFString in custom data fomatter, huh?
  • From: Rick Mann <email@hidden>
  • Date: Wed, 31 Oct 2007 20:32:47 -0700


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: This email sent to email@hidden
  • Follow-Ups:
    • Re: Still no way to view CFString in custom data fomatter, huh?
      • From: Chris Espinosa <email@hidden>
    • Re: Still no way to view CFString in custom data fomatter, huh?
      • From: Dmitry Markman <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>)

  • Prev by Date: Re: Output to the XCode 3.0 console - News
  • Next by Date: Nasm, PIC and the Leopard/XCode 3.0 linker
  • Previous by thread: Re: Still no way to view CFString in custom data fomatter, huh?
  • Next by thread: Re: Still no way to view CFString in custom data fomatter, huh?
  • Index(es):
    • Date
    • Thread