<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<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">
	<channel>
		<title>cocos2d for iPhone &#187; Topic: Touch Event to parent</title>
		<link>http://www.cocos2d-iphone.org/forum/topic/1158</link>
		<description>A fast, easy to use, free, and community supported 2D game engine</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Feb 2012 01:48:33 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.cocos2d-iphone.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.cocos2d-iphone.org/forum/rss/topic/1158" rel="self" type="application/rss+xml" />

		<item>
			<title>Joao Caxaria on "Touch Event to parent"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1158#post-7305</link>
			<pubDate>Sat, 08 Aug 2009 22:28:41 +0000</pubDate>
			<dc:creator>Joao Caxaria</dc:creator>
			<guid isPermaLink="false">7305@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>something like you wrote:</p>
<p>[(MyScene)[(MyLayer)self parent] parent]
</p></description>
		</item>
		<item>
			<title>eemceebee on "Touch Event to parent"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1158#post-7196</link>
			<pubDate>Fri, 07 Aug 2009 16:45:29 +0000</pubDate>
			<dc:creator>eemceebee</dc:creator>
			<guid isPermaLink="false">7196@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>How would such a solution look like in code ?
</p></description>
		</item>
		<item>
			<title>Joao Caxaria on "Touch Event to parent"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1158#post-7143</link>
			<pubDate>Fri, 07 Aug 2009 11:28:57 +0000</pubDate>
			<dc:creator>Joao Caxaria</dc:creator>
			<guid isPermaLink="false">7143@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>I would go for the parent solution..
</p></description>
		</item>
		<item>
			<title>eemceebee on "Touch Event to parent"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1158#post-7140</link>
			<pubDate>Fri, 07 Aug 2009 11:12:37 +0000</pubDate>
			<dc:creator>eemceebee</dc:creator>
			<guid isPermaLink="false">7140@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>No one ?</p>
<p>How about using the NSNotificationCenter ? Would that be a better solution then calling the parent object directly ?
</p></description>
		</item>
		<item>
			<title>eemceebee on "Touch Event to parent"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1158#post-6971</link>
			<pubDate>Thu, 06 Aug 2009 13:21:00 +0000</pubDate>
			<dc:creator>eemceebee</dc:creator>
			<guid isPermaLink="false">6971@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Hi</p>
<p>I currently try to make a simple game, which is more for learning Cocos2D. </p>
<p>I ran into a simple problem,...how do I track touches on Sprites, do something and then tell the Layer or actually the Scene about it?</p>
<p>I am as far that I inherit a Object from TextureNode to get the touches, but how about telling the parent about it ? I assume that calling a cast of self.parent.parent is not a good solution.</p>
<p>Thanks for helping.</p>
<p>-eem
</p></description>
		</item>

	</channel>
</rss>

