Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Debugger question: seeing the bytes in an NSData

Debugger question: seeing the bytes in an NSData
Thread Tools
GeeYouEye
Junior Member
Join Date: Mar 2003
Location: Walnut Creek, CA
Status: Offline
Reply With Quote
Oct 11, 2004, 01:26 AM
 
In an NSString, you can see what the characters of the string are in the debugger. Is there a comparable way to see what the bytes are in the data, either as hex or the unsigned chars?
I bring order to chaos. You are in chaos windows, you are the contradiction, a bug wishing to be an OS.
     
smeger
Mac Elite
Join Date: Sep 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Oct 11, 2004, 03:11 AM
 
From the debugging console, you can type "po myNSDataObject". po is short for "print-object".

Or you could do "x /20x (void *)[myNSDataObject bytes]" to get the first 20 longs, for example.
Geekspiff - generating spiffdiddlee software since before you began paying attention.
     
   
 
Forum Links
Forum 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 On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 09:45 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,