<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Disqus - Latest Comments for ken</title><link>http://disqus.com/people/687f423fcc59d1e15115abddaefa0c49/</link><description></description><language>en</language><lastBuildDate>Fri, 07 Mar 2008 00:36:18 -0000</lastBuildDate><item><title>Re: &amp;#8216;Discrete&amp;#8217; NSLevelIndicatorCell too slow</title><link>http://toxicsoftware.disqus.com/8216discrete8217_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: AcornImage</title><link>http://toxicsoftware.disqus.com/acornimage/#comment-1656116</link><description>Cool beans, but the class hierarchy makes me a bit nervous..&lt;br&gt;&lt;br&gt;NSCustomImageRep isn't a class you typically subclass - it's a concrete class whose purpose in life is to _delegate_ drawing.&lt;br&gt;&lt;br&gt;This image rep should be a subclass of NSImageRep.  Cool though. :-)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ken</dc:creator><pubDate>Fri, 07 Mar 2008 00:36:18 -0000</pubDate></item></channel></rss>