<?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: #7 Understanding notifications (part 2)</title>
	<atom:link href="http://cappuccinocasts.com/2009/04/20/7-understanding-notifications-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://cappuccinocasts.com/2009/04/20/7-understanding-notifications-part-2/</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/04/20/7-understanding-notifications-part-2/comment-page-1/#comment-114</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Fri, 11 Dec 2009 21:35:50 +0000</pubDate>
		<guid isPermaLink="false">http://cappuccinocasts.com/?p=95#comment-114</guid>
		<description>@Sig : Hi, action messages always take a single argument, which is the object that sent the message, so you can&#039;t pass other arguments. You can read more about the target-action pattern here : http://developer.apple.com/mac/library/documentation/cocoa/conceptual/ObjectiveC/Articles/ocSelectors.html#//apple_ref/doc/uid/TP30001163-CH23-TPXREF132

What I could have done was to declare button and right_button as 2 ivars, then set their action to @selector(createNewWindow:), and implement createNewWindow like this

- (void)createNewWindow:(id)sender
{
  if (sender===button)
    // ...
  else // sender===right_button
    // ...
}

Hope this helps,
Thomas.</description>
		<content:encoded><![CDATA[<p>@Sig : Hi, action messages always take a single argument, which is the object that sent the message, so you can&#8217;t pass other arguments. You can read more about the target-action pattern here : <a href="http://developer.apple.com/mac/library/documentation/cocoa/conceptual/ObjectiveC/Articles/ocSelectors.html#//apple_ref/doc/uid/TP30001163-CH23-TPXREF132" rel="nofollow">http://developer.apple.com/mac/library/documentation/cocoa/conceptual/ObjectiveC/Articles/ocSelectors.html#//apple_ref/doc/uid/TP30001163-CH23-TPXREF132</a></p>
<p>What I could have done was to declare button and right_button as 2 ivars, then set their action to @selector(createNewWindow:), and implement createNewWindow like this</p>
<p>- (void)createNewWindow:(id)sender<br />
{<br />
  if (sender===button)<br />
    // &#8230;<br />
  else // sender===right_button<br />
    // &#8230;<br />
}</p>
<p>Hope this helps,<br />
Thomas.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sig</title>
		<link>http://cappuccinocasts.com/2009/04/20/7-understanding-notifications-part-2/comment-page-1/#comment-113</link>
		<dc:creator>Sig</dc:creator>
		<pubDate>Fri, 11 Dec 2009 20:39:27 +0000</pubDate>
		<guid isPermaLink="false">http://cappuccinocasts.com/?p=95#comment-113</guid>
		<description>Hi Thomas, 
I&#039;m a cappuccino newbie (I discovered it earlier this morning) and after watching this screencast I have a question for you:

Instead creating two methods (createNewWindowLinkedToLeftSlider and createNewWindowLinkedToRightSlider) that both call createNewWindow with a different parameter, is not possible to call directly createNewWindow in setAction ( [right_button setAction:@selector(createNewWindow ...)] ; )?


Thanks</description>
		<content:encoded><![CDATA[<p>Hi Thomas,<br />
I&#8217;m a cappuccino newbie (I discovered it earlier this morning) and after watching this screencast I have a question for you:</p>
<p>Instead creating two methods (createNewWindowLinkedToLeftSlider and createNewWindowLinkedToRightSlider) that both call createNewWindow with a different parameter, is not possible to call directly createNewWindow in setAction ( [right_button setAction:@selector(createNewWindow ...)] ; )?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://cappuccinocasts.com/2009/04/20/7-understanding-notifications-part-2/comment-page-1/#comment-35</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Fri, 24 Apr 2009 14:50:25 +0000</pubDate>
		<guid isPermaLink="false">http://cappuccinocasts.com/?p=95#comment-35</guid>
		<description>Good stuff.  Thank you for taking the time to do this :)
Can&#039;t wait for the rails with cappuccino stuff.</description>
		<content:encoded><![CDATA[<p>Good stuff.  Thank you for taking the time to do this <img src='http://cappuccinocasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Can&#8217;t wait for the rails with cappuccino stuff.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
