<?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 on: What a Difference a Cell Makes</title>
	<atom:link href="http://www.red-sweater.com/blog/148/what-a-difference-a-cell-makes/feed" rel="self" type="application/rss+xml" />
	<link>http://www.red-sweater.com/blog/148/what-a-difference-a-cell-makes</link>
	<description>Mac &#38; Technology Writings by Daniel Jalkut</description>
	<lastBuildDate>Thu, 16 May 2013 21:58:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Henrik N</title>
		<link>http://www.red-sweater.com/blog/148/what-a-difference-a-cell-makes/comment-page-1#comment-45510</link>
		<dc:creator>Henrik N</dc:creator>
		<pubDate>Thu, 18 Jan 2007 20:46:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/148/what-a-difference-a-cell-makes#comment-45510</guid>
		<description><![CDATA[Thanks for sharing!

Volker: Thanks for that tip. The triangle didn&#039;t display for me in the last column until I added a temporary column after it.]]></description>
		<content:encoded><![CDATA[<p>Thanks for sharing!</p>
<p>Volker: Thanks for that tip. The triangle didn&#8217;t display for me in the last column until I added a temporary column after it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Volker</title>
		<link>http://www.red-sweater.com/blog/148/what-a-difference-a-cell-makes/comment-page-1#comment-12329</link>
		<dc:creator>Volker</dc:creator>
		<pubDate>Sat, 19 Aug 2006 15:24:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/148/what-a-difference-a-cell-makes#comment-12329</guid>
		<description><![CDATA[Daniel and others,

you can easily use IB only to assign the custom class text cell to any text table column. Just drag the class header to IB from XCode, use the IB Data Panel and drag standard &quot;TextFieldCell&quot; to the according table column. next select the small triangle appearing next to the columns name and choose &quot;Custom Class&quot; from IBs info panel ... set RSVertically... as custom calss.

nice work anyhow!

volker]]></description>
		<content:encoded><![CDATA[<p>Daniel and others,</p>
<p>you can easily use IB only to assign the custom class text cell to any text table column. Just drag the class header to IB from XCode, use the IB Data Panel and drag standard &#8220;TextFieldCell&#8221; to the according table column. next select the small triangle appearing next to the columns name and choose &#8220;Custom Class&#8221; from IBs info panel &#8230; set RSVertically&#8230; as custom calss.</p>
<p>nice work anyhow!</p>
<p>volker</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Jalkut</title>
		<link>http://www.red-sweater.com/blog/148/what-a-difference-a-cell-makes/comment-page-1#comment-8352</link>
		<dc:creator>Daniel Jalkut</dc:creator>
		<pubDate>Fri, 30 Jun 2006 14:06:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/148/what-a-difference-a-cell-makes#comment-8352</guid>
		<description><![CDATA[Gerrit - thanks for sharing this. Unfortunately when I try this technique I still end up with obnoxiously large edit focus frames.  I&#039;m sticking with the current, working implementation for now!]]></description>
		<content:encoded><![CDATA[<p>Gerrit &#8211; thanks for sharing this. Unfortunately when I try this technique I still end up with obnoxiously large edit focus frames.  I&#8217;m sticking with the current, working implementation for now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerrit</title>
		<link>http://www.red-sweater.com/blog/148/what-a-difference-a-cell-makes/comment-page-1#comment-8201</link>
		<dc:creator>Gerrit</dc:creator>
		<pubDate>Wed, 28 Jun 2006 06:45:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/148/what-a-difference-a-cell-makes#comment-8201</guid>
		<description><![CDATA[If you override drawWithFrame instead of drawingRectForBounds, you don&#039;t have hack around whether you are editing or not. You will still need to override selectWithFrame and editWithFrame, but you can use the adjusted rect, which means the editor will have the proper height for the text as well.

I wasn&#039;t smart enough to figure this out, I just noticed this is how &quot;ImageAndTextCell.m&quot; does it in Apple&#039;s sample code =) So you end up with...

- (void)editWithFrame:(NSRect)frameRect inView:(NSView*)controlView editor:(NSText*)textObject delegate:(id)delegateObject event:(NSEvent*)theEvent
{
	[super editWithFrame:[self drawingRectForBounds:frameRect] inView:controlView editor:textObject delegate:delegateObject event:theEvent];
}


- (void)selectWithFrame:(NSRect)frameRect inView:(NSView*)controlView editor:(NSText*)textObject delegate:(id)delegateObject start:(int)selStart length:(int)selLength
{
	[super selectWithFrame:[self drawingRectForBounds:frameRect] inView:controlView editor:textObject delegate:delegateObject start:selStart length:selLength];
}


- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView*)controlView
{
	[super drawWithFrame:[self drawingRectForBounds:cellFrame] inView:controlView];
}


and can kill &#039;mIsEditingOrSelecting&#039;.]]></description>
		<content:encoded><![CDATA[<p>If you override drawWithFrame instead of drawingRectForBounds, you don&#8217;t have hack around whether you are editing or not. You will still need to override selectWithFrame and editWithFrame, but you can use the adjusted rect, which means the editor will have the proper height for the text as well.</p>
<p>I wasn&#8217;t smart enough to figure this out, I just noticed this is how &#8220;ImageAndTextCell.m&#8221; does it in Apple&#8217;s sample code =) So you end up with&#8230;</p>
<p>- (void)editWithFrame:(NSRect)frameRect inView:(NSView*)controlView editor:(NSText*)textObject delegate:(id)delegateObject event:(NSEvent*)theEvent<br />
{<br />
	[super editWithFrame:[self drawingRectForBounds:frameRect] inView:controlView editor:textObject delegate:delegateObject event:theEvent];<br />
}</p>
<p>- (void)selectWithFrame:(NSRect)frameRect inView:(NSView*)controlView editor:(NSText*)textObject delegate:(id)delegateObject start:(int)selStart length:(int)selLength<br />
{<br />
	[super selectWithFrame:[self drawingRectForBounds:frameRect] inView:controlView editor:textObject delegate:delegateObject start:selStart length:selLength];<br />
}</p>
<p>- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView*)controlView<br />
{<br />
	[super drawWithFrame:[self drawingRectForBounds:cellFrame] inView:controlView];<br />
}</p>
<p>and can kill &#8216;mIsEditingOrSelecting&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Batton</title>
		<link>http://www.red-sweater.com/blog/148/what-a-difference-a-cell-makes/comment-page-1#comment-8143</link>
		<dc:creator>Dave Batton</dc:creator>
		<pubDate>Tue, 27 Jun 2006 14:31:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/148/what-a-difference-a-cell-makes#comment-8143</guid>
		<description><![CDATA[Thank you! This is just what I needed for my current project.  :-)]]></description>
		<content:encoded><![CDATA[<p>Thank you! This is just what I needed for my current project.  :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: moore</title>
		<link>http://www.red-sweater.com/blog/148/what-a-difference-a-cell-makes/comment-page-1#comment-7950</link>
		<dc:creator>moore</dc:creator>
		<pubDate>Fri, 23 Jun 2006 20:15:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/148/what-a-difference-a-cell-makes#comment-7950</guid>
		<description><![CDATA[Yes ... 
good work 
is beautiful 

thanks !]]></description>
		<content:encoded><![CDATA[<p>Yes &#8230;<br />
good work<br />
is beautiful </p>
<p>thanks !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rikki</title>
		<link>http://www.red-sweater.com/blog/148/what-a-difference-a-cell-makes/comment-page-1#comment-7862</link>
		<dc:creator>Rikki</dc:creator>
		<pubDate>Thu, 22 Jun 2006 14:52:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/148/what-a-difference-a-cell-makes#comment-7862</guid>
		<description><![CDATA[I just found your blog and I&#039;ve really enjoyed reading it.  I&#039;m a freelance writer working on a book about computer/tech advice and I could really use some help with some tips on Macs and other apple software.  Let me know if you&#039;re interested in helping (it wouldn&#039;t take much time.)
Rikki]]></description>
		<content:encoded><![CDATA[<p>I just found your blog and I&#8217;ve really enjoyed reading it.  I&#8217;m a freelance writer working on a book about computer/tech advice and I could really use some help with some tips on Macs and other apple software.  Let me know if you&#8217;re interested in helping (it wouldn&#8217;t take much time.)<br />
Rikki</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damien</title>
		<link>http://www.red-sweater.com/blog/148/what-a-difference-a-cell-makes/comment-page-1#comment-7703</link>
		<dc:creator>Damien</dc:creator>
		<pubDate>Tue, 20 Jun 2006 12:56:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/148/what-a-difference-a-cell-makes#comment-7703</guid>
		<description><![CDATA[Great, I&#039;ve used it succesfully in my own project. No bugs so far :)
Thanks for sharing!]]></description>
		<content:encoded><![CDATA[<p>Great, I&#8217;ve used it succesfully in my own project. No bugs so far :)<br />
Thanks for sharing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alexr</title>
		<link>http://www.red-sweater.com/blog/148/what-a-difference-a-cell-makes/comment-page-1#comment-7666</link>
		<dc:creator>alexr</dc:creator>
		<pubDate>Mon, 19 Jun 2006 22:55:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/148/what-a-difference-a-cell-makes#comment-7666</guid>
		<description><![CDATA[I&#039;ve been using a ValueTransfomer to present bound cell contents as NSAttributedString and applying an attribute of NSBaselineOffsetAttributeName with a new baseline. I haven&#039;t tried it with editable cells yet but I suspect they won&#039;t work as well as your solution.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve been using a ValueTransfomer to present bound cell contents as NSAttributedString and applying an attribute of NSBaselineOffsetAttributeName with a new baseline. I haven&#8217;t tried it with editable cells yet but I suspect they won&#8217;t work as well as your solution.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

 Served from: www.red-sweater.com @ 2013-05-19 00:08:02 by W3 Total Cache -->