| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Oct 31, 2007, at 8:32 PM, Rick Mann wrote:
I think you're misinterpreting that sentence. It means you can't write a custom data formatter to display CFStringRefs differently than the standard CFStringRef formatter. It doesn't mean that it can't display strings. (Even we would consider that lame.) The notable thing about data formatters, standard or custom, is that they're keyed off of the declared type of the variable or data member, not the type of what you assign to it. So if mObject is an NString, and there's no standard data formatter for NString, then you need to create a custom data formatter for it. It's easy enough to do so; if you can assure that an NString is always a CFStringRef, then you just cast it. In the Summary, type: {(CFStringRef)$VAR}:s That's a custom data formatter for NString that causes it to be displayed as a CFStringRef. Now the fact that the debugger thinks it's out of scope at that point is interesting, and may be an obstacle, but if you can print the NString in the debugger console by casting it to a CFStringRef, then you can show it in the debugger by creating a custom data formatter that does the same thing. Chris |
_______________________________________________ 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>) | |
| >Re: Still no way to view CFString in custom data fomatter, huh? (From: Rick Mann <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.