<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Philomathy</title>
	<atom:link href="http://www.reitshamer.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.reitshamer.com</link>
	<description>Adventures in indie software development</description>
	<lastBuildDate>Wed, 09 Mar 2011 01:04:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on NSBrowser with checkboxes by stefan</title>
		<link>http://www.reitshamer.com/2011/03/nsbrowser-with-checkboxes/comment-page-1/#comment-347</link>
		<dc:creator>stefan</dc:creator>
		<pubDate>Wed, 09 Mar 2011 01:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.reitshamer.com/?p=80#comment-347</guid>
		<description>Thanks Chris. I learned during the process that NSCell was using NSCopyObject, so I did handle my ivars appropriately in copyWithZone:, but couldn&#039;t get it to work. If your code works, then apparently I was doing something wrong. I don&#039;t have the code anymore to check.</description>
		<content:encoded><![CDATA[<p>Thanks Chris. I learned during the process that NSCell was using NSCopyObject, so I did handle my ivars appropriately in copyWithZone:, but couldn&#8217;t get it to work. If your code works, then apparently I was doing something wrong. I don&#8217;t have the code anymore to check.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on NSBrowser with checkboxes by Chris</title>
		<link>http://www.reitshamer.com/2011/03/nsbrowser-with-checkboxes/comment-page-1/#comment-346</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 09 Mar 2011 00:44:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.reitshamer.com/?p=80#comment-346</guid>
		<description>The secret is to override copyWithZone:, but you have to do it like this:

&lt;code&gt;@interface CBrowserCell : NSBrowserCell { id anIVar; }

- (id) copyWithZone: (NSZone*) zone {
	CBrowserCell* obj = [super copyWithZone: zone];
	obj-&gt;anIVar = [anIVar retain];	// MUST zero or copy/retain all added i-vars
	return obj;
}
@end&lt;/code&gt;

Without this you WILL get &#039;random&#039; crashes, notably when Cocoa tries to display expansion tool-tips.  (Displaying one of these tool-tips deallocates a copy of the target cell.)
Typically this does not appear to be documented anywhere, but It does work 100%.
If you don’t add i-vars you don’t need to override copyWithZone:.</description>
		<content:encoded><![CDATA[<p>The secret is to override copyWithZone:, but you have to do it like this:</p>
<p><code>@interface CBrowserCell : NSBrowserCell { id anIVar; }</p>
<p>- (id) copyWithZone: (NSZone*) zone {<br />
	CBrowserCell* obj = [super copyWithZone: zone];<br />
	obj-&gt;anIVar = [anIVar retain];	// MUST zero or copy/retain all added i-vars<br />
	return obj;<br />
}<br />
@end</code></p>
<p>Without this you WILL get &#8216;random&#8217; crashes, notably when Cocoa tries to display expansion tool-tips.  (Displaying one of these tool-tips deallocates a copy of the target cell.)<br />
Typically this does not appear to be documented anywhere, but It does work 100%.<br />
If you don’t add i-vars you don’t need to override copyWithZone:.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on NSBrowser with checkboxes by stefan</title>
		<link>http://www.reitshamer.com/2011/03/nsbrowser-with-checkboxes/comment-page-1/#comment-345</link>
		<dc:creator>stefan</dc:creator>
		<pubDate>Tue, 08 Mar 2011 20:55:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.reitshamer.com/?p=80#comment-345</guid>
		<description>I subclassed it and got random intermittent crashes. I tried everything I could think of to debug it, including overriding retain/release/copyWithZone/etc. I switched to subclassing NSTextFieldCell like Apple&#039;s sample code, and it worked great.

Do you have code you can share that subclasses NSBrowserCell successfully?</description>
		<content:encoded><![CDATA[<p>I subclassed it and got random intermittent crashes. I tried everything I could think of to debug it, including overriding retain/release/copyWithZone/etc. I switched to subclassing NSTextFieldCell like Apple&#8217;s sample code, and it worked great.</p>
<p>Do you have code you can share that subclasses NSBrowserCell successfully?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on NSBrowser with checkboxes by Chris</title>
		<link>http://www.reitshamer.com/2011/03/nsbrowser-with-checkboxes/comment-page-1/#comment-344</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 08 Mar 2011 19:59:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.reitshamer.com/?p=80#comment-344</guid>
		<description>&quot;Contrary to what you may have read, don’t subclass NSBrowserCell — it’s unsubclassable.&quot;

What do you base this on?
I don&#039;t believe it to be true.</description>
		<content:encoded><![CDATA[<p>&#8220;Contrary to what you may have read, don’t subclass NSBrowserCell — it’s unsubclassable.&#8221;</p>
<p>What do you base this on?<br />
I don&#8217;t believe it to be true.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using Breakpad on Mac OS X 10.6 by Ted Mielczarek</title>
		<link>http://www.reitshamer.com/2009/09/using-breakpad-on-mac-os-x-10-6/comment-page-1/#comment-173</link>
		<dc:creator>Ted Mielczarek</dc:creator>
		<pubDate>Fri, 05 Feb 2010 13:39:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.reitshamer.com/?p=18#comment-173</guid>
		<description>Glad to hear you were able to use Breakpad! I think we&#039;ll be getting 64-bit OS X support soon, since we&#039;ll want to ship a 64-bit Firefox in the near future. It&#039;s probably very close to working and just needs a bit of cleanup.

I&#039;d be interested to see what your server solution looks like. We&#039;re using Socorro, but that&#039;s probably a bit heavyweight for smaller software projects that aren&#039;t getting millions of crash reports. It would probably be nice to have a smaller solution that we could recommend to other projects.</description>
		<content:encoded><![CDATA[<p>Glad to hear you were able to use Breakpad! I think we&#8217;ll be getting 64-bit OS X support soon, since we&#8217;ll want to ship a 64-bit Firefox in the near future. It&#8217;s probably very close to working and just needs a bit of cleanup.</p>
<p>I&#8217;d be interested to see what your server solution looks like. We&#8217;re using Socorro, but that&#8217;s probably a bit heavyweight for smaller software projects that aren&#8217;t getting millions of crash reports. It would probably be nice to have a smaller solution that we could recommend to other projects.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

