<?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: #4 Understanding delegates</title>
	<atom:link href="http://cappuccinocasts.com/2009/03/09/4-understanding-delegates/feed/" rel="self" type="application/rss+xml" />
	<link>http://cappuccinocasts.com/2009/03/09/4-understanding-delegates/</link>
	<description>Free Cappuccino Screencasts, with a cool accent</description>
	<lastBuildDate>Thu, 01 Jul 2010 18:18:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Thomas</title>
		<link>http://cappuccinocasts.com/2009/03/09/4-understanding-delegates/comment-page-1/#comment-59</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Wed, 17 Jun 2009 17:24:11 +0000</pubDate>
		<guid isPermaLink="false">http://cappuccinocasts.com/?p=56#comment-59</guid>
		<description>@Frank : you can simply test which window was passed as an argument in the windowShouldClose:(id)window method :
if (window===myWindow1)
  // perform an action
else 
  // perform another action</description>
		<content:encoded><![CDATA[<p>@Frank : you can simply test which window was passed as an argument in the windowShouldClose:(id)window method :<br />
if (window===myWindow1)<br />
  // perform an action<br />
else<br />
  // perform another action</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://cappuccinocasts.com/2009/03/09/4-understanding-delegates/comment-page-1/#comment-50</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Thu, 11 Jun 2009 02:16:26 +0000</pubDate>
		<guid isPermaLink="false">http://cappuccinocasts.com/?p=56#comment-50</guid>
		<description>Thank you, I&#039;m not sure I get it though. ( I&#039;ve just bought and obj-c book, maybe it will help me)

But I&#039;ll say what confuses me, maybe it can help someone else who is foreign to obj-c programming like me.

What I understand is that delegate is like subclassing to overwrite a method, but without subclassing the class (in C, or python). You overwrite the method on the class instance. Is it correct? 

But what happen if you have two different panels in your AppController that needs to delegate a difefrent windowShouldClose for each of them? 

By the way, nice job with your screencast.</description>
		<content:encoded><![CDATA[<p>Thank you, I&#8217;m not sure I get it though. ( I&#8217;ve just bought and obj-c book, maybe it will help me)</p>
<p>But I&#8217;ll say what confuses me, maybe it can help someone else who is foreign to obj-c programming like me.</p>
<p>What I understand is that delegate is like subclassing to overwrite a method, but without subclassing the class (in C, or python). You overwrite the method on the class instance. Is it correct? </p>
<p>But what happen if you have two different panels in your AppController that needs to delegate a difefrent windowShouldClose for each of them? </p>
<p>By the way, nice job with your screencast.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://cappuccinocasts.com/2009/03/09/4-understanding-delegates/comment-page-1/#comment-47</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Thu, 04 Jun 2009 10:14:08 +0000</pubDate>
		<guid isPermaLink="false">http://cappuccinocasts.com/?p=56#comment-47</guid>
		<description>@Frank : 
&gt; Why do you delegate self?

I set the delegate to self to keep things simple.
You could create another object that would act as the delegate for the panel, but it wouldn&#039;t be useful in this simple example.

&gt; How does the delegate know which method to use/overwirte?

Here : http://bit.ly/gT6mU , you can see that CPWindow tests if it&#039;s delegate object responds to windowShouldClose</description>
		<content:encoded><![CDATA[<p>@Frank :<br />
> Why do you delegate self?</p>
<p>I set the delegate to self to keep things simple.<br />
You could create another object that would act as the delegate for the panel, but it wouldn&#8217;t be useful in this simple example.</p>
<p>> How does the delegate know which method to use/overwirte?</p>
<p>Here : <a href="http://bit.ly/gT6mU" rel="nofollow">http://bit.ly/gT6mU</a> , you can see that CPWindow tests if it&#8217;s delegate object responds to windowShouldClose</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://cappuccinocasts.com/2009/03/09/4-understanding-delegates/comment-page-1/#comment-46</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Thu, 04 Jun 2009 05:17:32 +0000</pubDate>
		<guid isPermaLink="false">http://cappuccinocasts.com/?p=56#comment-46</guid>
		<description>Why do you delegate self?
and
How does the delegate know which method to use/overwirte?</description>
		<content:encoded><![CDATA[<p>Why do you delegate self?<br />
and<br />
How does the delegate know which method to use/overwirte?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CC</title>
		<link>http://cappuccinocasts.com/2009/03/09/4-understanding-delegates/comment-page-1/#comment-24</link>
		<dc:creator>CC</dc:creator>
		<pubDate>Sat, 21 Mar 2009 18:36:37 +0000</pubDate>
		<guid isPermaLink="false">http://cappuccinocasts.com/?p=56#comment-24</guid>
		<description>I&#039;ve watched this a couple times and it inspires me keep playing.  Good Job.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve watched this a couple times and it inspires me keep playing.  Good Job.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
