<?xml version="1.0" encoding="utf-8"?>
<rss 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><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/#comment-1655984</link><description>Hey Ken,&lt;br&gt;&lt;br&gt;I took out my code and replaced it with your simple clipping fix.&lt;br&gt;&lt;br&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;br&gt;&lt;br&gt;You can compare all three versions here: &lt;a href="http://toxic-public.googlecode.com//trunk/Misc/CachingLevelIndicator/Output/" rel="nofollow"&gt;http://toxic-public.googlecode.com//trunk/Misc/...&lt;/a&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/#comment-1655983</link><description>I think I recognize this one..&lt;br&gt;&lt;br&gt;Try writing a subclass with this as its only implementation:&lt;br&gt;&lt;br&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;br&gt;&lt;br&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;br&gt;&lt;br&gt;That's, uh, bad.</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/#comment-1655982</link><description>Anything I post in my public subversion repository is public domain unless stated overwise. Do with it what you will.&lt;br&gt;&lt;br&gt;I should make an exception for you though Chrisâ€¦ How about commercial - $1,000,000 per seat?</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/#comment-1655981</link><description>License on your CCachingLevelIndicatorCell?</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/#comment-1655980</link><description>Thanks for the support. It shouldn't be too difficult to fix I'd imagine.&lt;br&gt;&lt;br&gt;Awesome treehouse(s) by the way.</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/#comment-1655979</link><description>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!</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>