<?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: Custom UITableViewCell from a XIB in Interface Builder</title>
	<atom:link href="http://www.bdunagan.com/2009/06/28/custom-uitableviewcell-from-a-xib-in-interface-builder/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bdunagan.com/2009/06/28/custom-uitableviewcell-from-a-xib-in-interface-builder/</link>
	<description></description>
	<lastBuildDate>Mon, 08 Mar 2010 19:21:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mahboud</title>
		<link>http://www.bdunagan.com/2009/06/28/custom-uitableviewcell-from-a-xib-in-interface-builder/comment-page-1/#comment-2862</link>
		<dc:creator>Mahboud</dc:creator>
		<pubDate>Mon, 23 Nov 2009 02:32:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=293#comment-2862</guid>
		<description>Or you can instantiate this way (using an IBOutlet):

    HighScoresTableCell *cell = (HighScoresTableCell *) [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {		
		// refresh the outlet
		[[NSBundle mainBundle] loadNibNamed:@&quot;HighScoresTableCell&quot; owner:self options:nil];
		cell = highScoresTableCell; // get the object from the outlet
		highScoresTableCell = nil; // make sure this can&#039;t be re-used accidentally
	}
    
    // Set up the cell...</description>
		<content:encoded><![CDATA[<p>Or you can instantiate this way (using an IBOutlet):</p>
<p>    HighScoresTableCell *cell = (HighScoresTableCell *) [tableView dequeueReusableCellWithIdentifier:CellIdentifier];<br />
    if (cell == nil) {<br />
		// refresh the outlet<br />
		[[NSBundle mainBundle] loadNibNamed:@&#8221;HighScoresTableCell&#8221; owner:self options:nil];<br />
		cell = highScoresTableCell; // get the object from the outlet<br />
		highScoresTableCell = nil; // make sure this can&#8217;t be re-used accidentally<br />
	}</p>
<p>    // Set up the cell&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bdunagan</title>
		<link>http://www.bdunagan.com/2009/06/28/custom-uitableviewcell-from-a-xib-in-interface-builder/comment-page-1/#comment-2370</link>
		<dc:creator>bdunagan</dc:creator>
		<pubDate>Sat, 08 Aug 2009 05:20:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=293#comment-2370</guid>
		<description>Great! Glad it worked for you. It&#039;s true that it doesn&#039;t reuse the cells until an existing one goes off the screen and a new one is needed. That confused me at first as well. And thanks for the link; much more detail in that post.</description>
		<content:encoded><![CDATA[<p>Great! Glad it worked for you. It&#8217;s true that it doesn&#8217;t reuse the cells until an existing one goes off the screen and a new one is needed. That confused me at first as well. And thanks for the link; much more detail in that post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: haiku</title>
		<link>http://www.bdunagan.com/2009/06/28/custom-uitableviewcell-from-a-xib-in-interface-builder/comment-page-1/#comment-2361</link>
		<dc:creator>haiku</dc:creator>
		<pubDate>Fri, 07 Aug 2009 04:02:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=293#comment-2361</guid>
		<description>hmm. tried to put a link in that last post:  &quot;http://humblecoder.blogspot.com/2009/05/iphone-tutorial-creating-table-cells-in.html&quot;  perhaps?</description>
		<content:encoded><![CDATA[<p>hmm. tried to put a link in that last post:  &#8220;http://humblecoder.blogspot.com/2009/05/iphone-tutorial-creating-table-cells-in.html&#8221;  perhaps?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: haiku</title>
		<link>http://www.bdunagan.com/2009/06/28/custom-uitableviewcell-from-a-xib-in-interface-builder/comment-page-1/#comment-2360</link>
		<dc:creator>haiku</dc:creator>
		<pubDate>Fri, 07 Aug 2009 04:01:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=293#comment-2360</guid>
		<description>Ah!   indicates that there is no re-use until there is one for every visible row in the table!  very good.</description>
		<content:encoded><![CDATA[<p>Ah!   indicates that there is no re-use until there is one for every visible row in the table!  very good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: haiku</title>
		<link>http://www.bdunagan.com/2009/06/28/custom-uitableviewcell-from-a-xib-in-interface-builder/comment-page-1/#comment-2359</link>
		<dc:creator>haiku</dc:creator>
		<pubDate>Fri, 07 Aug 2009 03:55:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=293#comment-2359</guid>
		<description>I think that if you set a breakpoint you will find that your cell is not actually being reused in either case.  At least they do not seem to be in the tests I&#039;ve done.  Most sample code that is doing this on the net is reloading the cell from the nib/xib file every time because the dequeue cell command is failing even though the cell has a reuseIdentifier (which is supposed to trigger it to be reused).  They are not getting added to the _reusableTableCells dictionary in the table view for some reason.

If you can confirm that your solution doesn&#039;t have this problem, I&#039;d be interested to hear that.</description>
		<content:encoded><![CDATA[<p>I think that if you set a breakpoint you will find that your cell is not actually being reused in either case.  At least they do not seem to be in the tests I&#8217;ve done.  Most sample code that is doing this on the net is reloading the cell from the nib/xib file every time because the dequeue cell command is failing even though the cell has a reuseIdentifier (which is supposed to trigger it to be reused).  They are not getting added to the _reusableTableCells dictionary in the table view for some reason.</p>
<p>If you can confirm that your solution doesn&#8217;t have this problem, I&#8217;d be interested to hear that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bdunagan</title>
		<link>http://www.bdunagan.com/2009/06/28/custom-uitableviewcell-from-a-xib-in-interface-builder/comment-page-1/#comment-1612</link>
		<dc:creator>bdunagan</dc:creator>
		<pubDate>Mon, 29 Jun 2009 13:55:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=293#comment-1612</guid>
		<description>Interesting. Thanks for the pointer!</description>
		<content:encoded><![CDATA[<p>Interesting. Thanks for the pointer!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brendan</title>
		<link>http://www.bdunagan.com/2009/06/28/custom-uitableviewcell-from-a-xib-in-interface-builder/comment-page-1/#comment-1599</link>
		<dc:creator>Brendan</dc:creator>
		<pubDate>Mon, 29 Jun 2009 02:00:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=293#comment-1599</guid>
		<description>The top level object has previously changed between SDK version.

If you change the File Proxy in the custom cell NIB to the tables controller, you can define one property in the table controller for the cell, and link it in the NIB. Hence when you call loadNibNamed, since the owner is self, the property will be set, 
giving access to the custom cell. 
Have a look at:
http://iphonedevbook.com/forum/viewtopic.php?f=14&amp;t=27

https://devforums.apple.com/thread/3469?start=0&amp;tstart=0</description>
		<content:encoded><![CDATA[<p>The top level object has previously changed between SDK version.</p>
<p>If you change the File Proxy in the custom cell NIB to the tables controller, you can define one property in the table controller for the cell, and link it in the NIB. Hence when you call loadNibNamed, since the owner is self, the property will be set,<br />
giving access to the custom cell.<br />
Have a look at:<br />
<a href="http://iphonedevbook.com/forum/viewtopic.php?f=14&amp;t=27" rel="nofollow">http://iphonedevbook.com/forum/viewtopic.php?f=14&amp;t=27</a></p>
<p><a href="https://devforums.apple.com/thread/3469?start=0&amp;tstart=0" rel="nofollow">https://devforums.apple.com/thread/3469?start=0&amp;tstart=0</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
