<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>toxicsoftware.com - Latest Comments in &amp;#8216;Discrete&amp;#8217; NSLevelIndicatorCell too slow</title><link>http://toxicsoftware.disqus.com/</link><description></description><atom:link href="https://toxicsoftware.disqus.com/8216discrete8217_nslevelindicatorcell_too_slow/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 27 Jun 2006 09:43:47 -0000</lastBuildDate><item><title>Re: &amp;#8216;Discrete&amp;#8217; NSLevelIndicatorCell too slow</title><link>http://toxicsoftware.com/discrete-nslevelindicatorcell-too-slow.html#comment-1655984</link><description>&lt;p&gt;Hey Ken,&lt;/p&gt;&lt;p&gt;I took out my code and replaced it with your simple clipping fix.&lt;/p&gt;&lt;p&gt;It certainly improved performance over the non-posed version but I think the caching version is still the fastest. Which is a shame, as your code is certainly cleaner and simpler.&lt;/p&gt;&lt;p&gt;You can compare all three versions here: &lt;a href="http://toxic-public.googlecode.com//trunk/Misc/CachingLevelIndicator/Output/" rel="nofollow noopener" target="_blank" title="http://toxic-public.googlecode.com//trunk/Misc/CachingLevelIndicator/Output/"&gt;http://toxic-public.googlec...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">schwa</dc:creator><pubDate>Tue, 27 Jun 2006 09:43:47 -0000</pubDate></item><item><title>Re: &amp;#8216;Discrete&amp;#8217; NSLevelIndicatorCell too slow</title><link>http://toxicsoftware.com/discrete-nslevelindicatorcell-too-slow.html#comment-1655983</link><description>&lt;p&gt;I think I recognize this one..&lt;/p&gt;&lt;p&gt;Try writing a subclass with this as its only implementation:&lt;/p&gt;&lt;p&gt;- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {&lt;br&gt;    [NSGraphicsContext saveGraphicsState];&lt;br&gt;    NSRectClip(cellFrame);&lt;br&gt;    [super drawWithFrame:cellFrame inView:controlView];&lt;br&gt;    [NSGraphicsContext restoreGraphicsState];&lt;br&gt;}&lt;/p&gt;&lt;p&gt;The issue is with CG transparency layers (see CGContextBeginTransparencyLayer).  They're a nice, clean way to a bunch of drawing, then put a shadow or a focus ring on the whole thing.  Problem is, when you composite a transparency layer, it'll do calculations over the whole clip.  It happens that when a cell is drawn in a tableview, the only clip is to the whole table.&lt;/p&gt;&lt;p&gt;That's, uh, bad.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ken</dc:creator><pubDate>Tue, 27 Jun 2006 02:52:30 -0000</pubDate></item><item><title>Re: &amp;#8216;Discrete&amp;#8217; NSLevelIndicatorCell too slow</title><link>http://toxicsoftware.com/discrete-nslevelindicatorcell-too-slow.html#comment-1655982</link><description>&lt;p&gt;Anything I post in my public subversion repository is public domain unless stated overwise. Do with it what you will.&lt;/p&gt;&lt;p&gt;I should make an exception for you though Chrisâ€¦ How about commercial - $1,000,000 per seat?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">schwa</dc:creator><pubDate>Mon, 26 Jun 2006 21:59:12 -0000</pubDate></item><item><title>Re: &amp;#8216;Discrete&amp;#8217; NSLevelIndicatorCell too slow</title><link>http://toxicsoftware.com/discrete-nslevelindicatorcell-too-slow.html#comment-1655981</link><description>&lt;p&gt;License on your CCachingLevelIndicatorCell?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris</dc:creator><pubDate>Mon, 26 Jun 2006 21:56:09 -0000</pubDate></item><item><title>Re: &amp;#8216;Discrete&amp;#8217; NSLevelIndicatorCell too slow</title><link>http://toxicsoftware.com/discrete-nslevelindicatorcell-too-slow.html#comment-1655980</link><description>&lt;p&gt;Thanks for the support. It shouldn't be too difficult to fix I'd imagine.&lt;/p&gt;&lt;p&gt;Awesome treehouse(s) by the way.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">schwa</dc:creator><pubDate>Mon, 26 Jun 2006 21:30:03 -0000</pubDate></item><item><title>Re: &amp;#8216;Discrete&amp;#8217; NSLevelIndicatorCell too slow</title><link>http://toxicsoftware.com/discrete-nslevelindicatorcell-too-slow.html#comment-1655979</link><description>&lt;p&gt;You rock for logging this bug AND putting the link into your page. More people need to do this; it will help issues like this get fixed. thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">corbin</dc:creator><pubDate>Mon, 26 Jun 2006 21:12:29 -0000</pubDate></item></channel></rss>