<?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: Hitting space bar with two NSButtonCells in an NSTableView</title>
	<atom:link href="http://www.bdunagan.com/2009/04/14/hitting-space-bar-with-two-nsbuttoncells-in-an-nstableview/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bdunagan.com/2009/04/14/hitting-space-bar-with-two-nsbuttoncells-in-an-nstableview/</link>
	<description>fill the void</description>
	<lastBuildDate>Mon, 30 Jan 2012 09:42:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Richard</title>
		<link>http://www.bdunagan.com/2009/04/14/hitting-space-bar-with-two-nsbuttoncells-in-an-nstableview/comment-page-1/#comment-11771</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Fri, 17 Jun 2011 02:31:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=152#comment-11771</guid>
		<description>What about
NSInteger column = [self columnWithIdentifier:@&quot;Check&quot;];
NSInteger row = [self selectedRow];
NSButtonCell *cell = (NSButtonCell *)[self preparedCellAtColumn:column row:row];
[cell performClick:nil];</description>
		<content:encoded><![CDATA[<p>What about<br />
NSInteger column = [self columnWithIdentifier:@"Check"];<br />
NSInteger row = [self selectedRow];<br />
NSButtonCell *cell = (NSButtonCell *)[self preparedCellAtColumn:column row:row];<br />
[cell performClick:nil];</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.bdunagan.com/2009/04/14/hitting-space-bar-with-two-nsbuttoncells-in-an-nstableview/comment-page-1/#comment-11770</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Fri, 17 Jun 2011 02:29:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=152#comment-11770</guid>
		<description>Maybe you need to get the preparedCellAtColumn:row: rather than the column&#039;s dataCell.
([self selectedRow] for the row and [self columnWithIdentifier:@&quot;Check&quot;] for the column index).</description>
		<content:encoded><![CDATA[<p>Maybe you need to get the preparedCellAtColumn:row: rather than the column&#8217;s dataCell.<br />
([self selectedRow] for the row and [self columnWithIdentifier:@"Check"] for the column index).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bdunagan</title>
		<link>http://www.bdunagan.com/2009/04/14/hitting-space-bar-with-two-nsbuttoncells-in-an-nstableview/comment-page-1/#comment-5943</link>
		<dc:creator>bdunagan</dc:creator>
		<pubDate>Wed, 18 Aug 2010 00:02:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=152#comment-5943</guid>
		<description>@Richard Interesting thought, but the NSIndexSet object for selected column indexes is consistently empty.</description>
		<content:encoded><![CDATA[<p>@Richard Interesting thought, but the NSIndexSet object for selected column indexes is consistently empty.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.bdunagan.com/2009/04/14/hitting-space-bar-with-two-nsbuttoncells-in-an-nstableview/comment-page-1/#comment-4907</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Thu, 15 Apr 2010 15:32:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=152#comment-4907</guid>
		<description>Instead of
NSTableColumn *checkboxColumn = [self tableColumnWithIdentifier:@&quot;Check&quot;];

maybe try
NSIndexSet *columnIndexes = [self selectedColumnIndexes];
if ([columnIndexes count] &gt; 0) // make sure that there is a selected column
{
    NSTableColumn *activeColumn = [[self tableColumns] objectAtIndex:[columnIndexes lastIndex]];
    // etc.
}</description>
		<content:encoded><![CDATA[<p>Instead of<br />
NSTableColumn *checkboxColumn = [self tableColumnWithIdentifier:@"Check"];</p>
<p>maybe try<br />
NSIndexSet *columnIndexes = [self selectedColumnIndexes];<br />
if ([columnIndexes count] > 0) // make sure that there is a selected column<br />
{<br />
    NSTableColumn *activeColumn = [[self tableColumns] objectAtIndex:[columnIndexes lastIndex]];<br />
    // etc.<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

