<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Hexy Little Thing</title>
	<atom:link href="http://www.red-sweater.com/blog/279/hexy-little-thing/feed" rel="self" type="application/rss+xml" />
	<link>http://www.red-sweater.com/blog/279/hexy-little-thing</link>
	<description>Mac &#38; Technology Writings by Daniel Jalkut</description>
	<pubDate>Sat, 30 Aug 2008 08:21:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Bjoern Kriews</title>
		<link>http://www.red-sweater.com/blog/279/hexy-little-thing#comment-63537</link>
		<dc:creator>Bjoern Kriews</dc:creator>
		<pubDate>Sat, 03 Mar 2007 20:43:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/279/hexy-little-thing#comment-63537</guid>
		<description>Hi Daniel, thanks - this is really useful.
I made a minor modification to display the concrete classname 
and its address so one can distinguish different objects.

--- NSData+RSHexDump.m  2007-02-14 19:47:59.000000000 +0100
+++ NSData+RSHexDump.m.bkr      2007-03-03 21:40:05.000000000 +0100
@@ -53,7 +53,8 @@
        }
 
        // Start the hexdump out with an overview of the content
-       NSMutableString *buf = [NSMutableString stringWithFormat:@"NSData %d bytes%@:\n", [self length], curtailInfo];
+       NSMutableString *buf = [NSMutableString stringWithFormat:@"%@(%p) %d bytes%@:\n", 
+        NSStringFromClass([self class]), self, [self length], curtailInfo];
 
        // One row of 16-bytes at a time ...
     int i, j;</description>
		<content:encoded><![CDATA[<p>Hi Daniel, thanks - this is really useful.<br />
I made a minor modification to display the concrete classname<br />
and its address so one can distinguish different objects.</p>
<p>&#8212; NSData+RSHexDump.m  2007-02-14 19:47:59.000000000 +0100<br />
+++ NSData+RSHexDump.m.bkr      2007-03-03 21:40:05.000000000 +0100<br />
@@ -53,7 +53,8 @@<br />
        }</p>
<p>        // Start the hexdump out with an overview of the content<br />
-       NSMutableString *buf = [NSMutableString stringWithFormat:@"NSData %d bytes%@:\n", [self length], curtailInfo];<br />
+       NSMutableString *buf = [NSMutableString stringWithFormat:@"%@(%p) %d bytes%@:\n",<br />
+        NSStringFromClass([self class]), self, [self length], curtailInfo];</p>
<p>        // One row of 16-bytes at a time &#8230;<br />
     int i, j;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wevah</title>
		<link>http://www.red-sweater.com/blog/279/hexy-little-thing#comment-56654</link>
		<dc:creator>Wevah</dc:creator>
		<pubDate>Thu, 15 Feb 2007 21:53:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/279/hexy-little-thing#comment-56654</guid>
		<description>Nice! (Though I'd probably rather use an NSRange for the second.)</description>
		<content:encoded><![CDATA[<p>Nice! (Though I&#8217;d probably rather use an NSRange for the second.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blake C.</title>
		<link>http://www.red-sweater.com/blog/279/hexy-little-thing#comment-56391</link>
		<dc:creator>Blake C.</dc:creator>
		<pubDate>Thu, 15 Feb 2007 04:19:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/279/hexy-little-thing#comment-56391</guid>
		<description>alexr- I don't have a mactel, but isn't the MB plugin PPC-only?</description>
		<content:encoded><![CDATA[<p>alexr- I don&#8217;t have a mactel, but isn&#8217;t the MB plugin PPC-only?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karsten</title>
		<link>http://www.red-sweater.com/blog/279/hexy-little-thing#comment-56372</link>
		<dc:creator>Karsten</dc:creator>
		<pubDate>Thu, 15 Feb 2007 03:18:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/279/hexy-little-thing#comment-56372</guid>
		<description>Thanks a lot for this great tip!
I just blogged about something similar. It's about a project i started some weeks ago about improving the debugging experience in Xcode. You can read it at http://briksoftware.com/blog/wp-trackback.php?p=24

Karsten</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this great tip!<br />
I just blogged about something similar. It&#8217;s about a project i started some weeks ago about improving the debugging experience in Xcode. You can read it at <a href="http://briksoftware.com/blog/wp-trackback.php?p=24" rel="nofollow">http://briksoftware.com/blog/wp-trackback.php?p=24</a></p>
<p>Karsten</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Jalkut</title>
		<link>http://www.red-sweater.com/blog/279/hexy-little-thing#comment-56330</link>
		<dc:creator>Daniel Jalkut</dc:creator>
		<pubDate>Wed, 14 Feb 2007 22:32:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/279/hexy-little-thing#comment-56330</guid>
		<description>alexr: Extending that logic would lead one to question the use of - description methods in any classes.  I am happy to trade the (quite minimal) code bloat for an improved debugging experience that fits in with the existing object-inspection pattern.

Even with the "dm" command, I'd have to conceptually thing "display memory" and coerce the NSData into an address, instead of using the same "po" habit that I use everywhere.</description>
		<content:encoded><![CDATA[<p>alexr: Extending that logic would lead one to question the use of - description methods in any classes.  I am happy to trade the (quite minimal) code bloat for an improved debugging experience that fits in with the existing object-inspection pattern.</p>
<p>Even with the &#8220;dm&#8221; command, I&#8217;d have to conceptually thing &#8220;display memory&#8221; and coerce the NSData into an address, instead of using the same &#8220;po&#8221; habit that I use everywhere.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alexr</title>
		<link>http://www.red-sweater.com/blog/279/hexy-little-thing#comment-56329</link>
		<dc:creator>alexr</dc:creator>
		<pubDate>Wed, 14 Feb 2007 22:25:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/279/hexy-little-thing#comment-56329</guid>
		<description>Why bloat your code like this? You should demand more from your debugger.

The MacsBug plugin for gdb has the "dm" command, which can be trivially added via gdb's scripting language if you don't want the entire plugin.</description>
		<content:encoded><![CDATA[<p>Why bloat your code like this? You should demand more from your debugger.</p>
<p>The MacsBug plugin for gdb has the &#8220;dm&#8221; command, which can be trivially added via gdb&#8217;s scripting language if you don&#8217;t want the entire plugin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Gregurich</title>
		<link>http://www.red-sweater.com/blog/279/hexy-little-thing#comment-56326</link>
		<dc:creator>James Gregurich</dc:creator>
		<pubDate>Wed, 14 Feb 2007 22:10:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/279/hexy-little-thing#comment-56326</guid>
		<description>I did something similar in my work. I wrote a little function that dumps data from a file stream object into a simple buffer and then prints the buffer value to stdout.

I can call this function from the gdb command line then copy and paste the pointer value to the xcode memory browser to view the data.

The ultimate solution to the problem is for apple to beef up the memory browser in xcode and make it more useful and convenient to use. Why shouldn't you be able to right click on an NSData instance and choose a menu item that brings up a memory browser for it. You should even be able to edit in the memory browser rather than haveing to drop to the gdb command line to manually change items in the buffer.</description>
		<content:encoded><![CDATA[<p>I did something similar in my work. I wrote a little function that dumps data from a file stream object into a simple buffer and then prints the buffer value to stdout.</p>
<p>I can call this function from the gdb command line then copy and paste the pointer value to the xcode memory browser to view the data.</p>
<p>The ultimate solution to the problem is for apple to beef up the memory browser in xcode and make it more useful and convenient to use. Why shouldn&#8217;t you be able to right click on an NSData instance and choose a menu item that brings up a memory browser for it. You should even be able to edit in the memory browser rather than haveing to drop to the gdb command line to manually change items in the buffer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Grimes</title>
		<link>http://www.red-sweater.com/blog/279/hexy-little-thing#comment-56297</link>
		<dc:creator>Mark Grimes</dc:creator>
		<pubDate>Wed, 14 Feb 2007 20:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/279/hexy-little-thing#comment-56297</guid>
		<description>Thanks for the pointer Daniel, this helps out a lot!</description>
		<content:encoded><![CDATA[<p>Thanks for the pointer Daniel, this helps out a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scott lewis</title>
		<link>http://www.red-sweater.com/blog/279/hexy-little-thing#comment-56283</link>
		<dc:creator>scott lewis</dc:creator>
		<pubDate>Wed, 14 Feb 2007 19:27:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/279/hexy-little-thing#comment-56283</guid>
		<description>I think this post provides the answer to the question you posed in the previous one: yes, C is the new assembly. :)</description>
		<content:encoded><![CDATA[<p>I think this post provides the answer to the question you posed in the previous one: yes, C is the new assembly. :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.299 seconds -->
