<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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; Forum: iPhone SDK / UIKit / Objective-C / Xcode - Recent Posts</title>
		<link>http://www.cocos2d-iphone.org/forum/forum/8</link>
		<description>A fast, easy to use, free, and community supported 2D game engine</description>
		<language>en-US</language>
		<pubDate>Wed, 08 Sep 2010 12:22:41 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</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/forum/8" rel="self" type="application/rss+xml" />

		<item>
			<title>David994A on "Setting the values of an array for an object"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9377#post-54122</link>
			<pubDate>Tue, 07 Sep 2010 19:56:21 +0000</pubDate>
			<dc:creator>David994A</dc:creator>
			<guid isPermaLink="false">54122@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;@coded206, I don't think you can use regular &#34;C&#34; style arrays as instance variables in a class.   You also cannot put a &#34;C&#34; array as a property.  When you declare your &#34;C&#34; arry, you are creating a pointer to integer and setting aside some area of memory.&#60;/p&#62;
&#60;p&#62;Have you looked into the Objective C array classes: NSArray and NSMutableArray? You can put a pointer to an NSArray (or NSMutableArray) as an instance variable and create and initialize an array object in your init method for example.&#60;/p&#62;
&#60;p&#62;Here is some stuff to help:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gnustep.it/nicola/Tutorials/BasicClasses/node8.html&#34; rel=&#34;nofollow&#34;&#62;http://www.gnustep.it/nicola/Tutorials/BasicClasses/node8.html&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://icodeblog.com/2009/08/26/objective-c-tutorial-nsarray/&#34; rel=&#34;nofollow&#34;&#62;http://icodeblog.com/2009/08/26/objective-c-tutorial-nsarray/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Also, a google search on NSArray will help.&#60;/p&#62;
&#60;p&#62;Now I know that you want a 2X2 array, but remember, this is really stored in flat memory anyway, keep this in mind.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Benihana on "Setting the values of an array for an object"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9377#post-54121</link>
			<pubDate>Tue, 07 Sep 2010 19:53:29 +0000</pubDate>
			<dc:creator>Benihana</dc:creator>
			<guid isPermaLink="false">54121@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;&#60;a href=&#34;http://stackoverflow.com/questions/912016/declaring-properties-synthesizing-and-implementing-int-array-in-objective-c&#34; rel=&#34;nofollow&#34;&#62;http://stackoverflow.com/questions/912016/declaring-properties-synthesizing-and-implementing-int-array-in-objective-c&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://www.iphonedevsdk.com/forum/iphone-sdk-development/10042-possible-have-array-property.html&#34; rel=&#34;nofollow&#34;&#62;http://www.iphonedevsdk.com/forum/iphone-sdk-development/10042-possible-have-array-property.html&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>code206 on "Setting the values of an array for an object"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9377#post-54108</link>
			<pubDate>Tue, 07 Sep 2010 17:54:42 +0000</pubDate>
			<dc:creator>code206</dc:creator>
			<guid isPermaLink="false">54108@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;I'm trying to create a drag and drop feature in my app and I need to have a way to tell the drag and drop object where the snap points and default locations are for it so I can reuse it.  &#60;/p&#62;
&#60;p&#62;In order to do this I need to be able to set the values of an array in the object.  The problem I'm having is I don't know how to properly declare an array of integers as a property of the object.&#60;/p&#62;
&#60;p&#62;Here is what I have in the header file&#60;br /&#62;
int snapPositions[2][2];&#60;/p&#62;
&#60;p&#62;@property (readwrite,assign) int snapPositions[2][2];&#60;/p&#62;
&#60;p&#62;And here is what I have in the .m file&#60;br /&#62;
@synthesize snapPositions[2][2];&#60;/p&#62;
&#60;p&#62;I only get error messages when I try to compile this way, what am I doing wrong?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SuperSuJFTT on "[Compile] Error on compiling the Demos..."</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9359#post-54000</link>
			<pubDate>Tue, 07 Sep 2010 03:05:08 +0000</pubDate>
			<dc:creator>SuperSuJFTT</dc:creator>
			<guid isPermaLink="false">54000@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;Thanks to Steve Oldmeadow, sorry for not paying attention to the Release note there, I'll try the older version after work, thanks ^_^
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Steve Oldmeadow on "[Compile] Error on compiling the Demos..."</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9359#post-53990</link>
			<pubDate>Tue, 07 Sep 2010 02:34:41 +0000</pubDate>
			<dc:creator>Steve Oldmeadow</dc:creator>
			<guid isPermaLink="false">53990@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;
Xcode v3.2.3 is the ONLY Xcode version supported. Don't report bugs if you are using a previous version.
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;From the Wiki.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sndwav on "[Compile] Error on compiling the Demos..."</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9359#post-53988</link>
			<pubDate>Tue, 07 Sep 2010 02:28:49 +0000</pubDate>
			<dc:creator>sndwav</dc:creator>
			<guid isPermaLink="false">53988@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;I'm running 10.6.3, so I'm not sure if it's an OS issue,&#60;br /&#62;
but the way I run the examples that come with Cocos2D is this (and excuse me if I misunderstood your issue).&#60;/p&#62;
&#60;p&#62;Open the Cocos2D project -&#38;gt;&#60;br /&#62;
Scroll down to &#34;Targets&#34; -&#38;gt;&#60;br /&#62;
Right-click a demo (orange ruler icon) -&#38;gt;&#60;br /&#62;
Select &#34;Build demo-name&#34; -&#38;gt;&#60;br /&#62;
Scroll lower to Executables -&#38;gt;&#60;br /&#62;
Right-click the same named demo and choose &#34;Start demo-name&#34;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>slycrel on "How to change the AppName?"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9350#post-53980</link>
			<pubDate>Tue, 07 Sep 2010 01:34:01 +0000</pubDate>
			<dc:creator>slycrel</dc:creator>
			<guid isPermaLink="false">53980@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;check in your info.plist.&#60;/p&#62;
&#60;p&#62;There is also a &#34;rename&#34; option for your project itself and that will affect the default name.&#60;/p&#62;
&#60;p&#62;You can also do a &#34;get info&#34; on your project itself and change the name in the build settings.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SuperSuJFTT on "[Compile] Error on compiling the Demos..."</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9359#post-53979</link>
			<pubDate>Tue, 07 Sep 2010 01:32:34 +0000</pubDate>
			<dc:creator>SuperSuJFTT</dc:creator>
			<guid isPermaLink="false">53979@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;Hi all, I'm having a little problem while compiling the Demos attached to the cocos2d project, and here is the details:&#60;/p&#62;
&#60;p&#62;Compile Environment:&#60;br /&#62;
1.OS: leopard 10.5.7&#60;br /&#62;
2.Xcode：3.1.4&#60;br /&#62;
3.cocos2d：0.99.4&#60;/p&#62;
&#60;p&#62;Compile Option:&#60;br /&#62;
1.Action SDK: iphone simulator 3.1.3&#60;br /&#62;
2.Action Configuration: Debug&#60;br /&#62;
3.Action Target: ActionsTest&#60;br /&#62;
4.Action Excutable: ActionsTest&#60;/p&#62;
&#60;p&#62;When I tried to build with the settings shown above, I got the following error:&#60;br /&#62;
&#60;strong&#62;Invalid value 'com.apple.compilers.llvm.clang.1_0' for GCC_VERSION&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;Then I tried the following ways:&#60;br /&#62;
1.Change the Action SDK to different version (say 3.0), but I got the same error&#60;br /&#62;
2.Try to compile another Demo, but I got the same error&#60;br /&#62;
3.Try to build a new project with cocos2d(HelloWorld), compile and run both worked fine&#60;/p&#62;
&#60;p&#62;PS: I tried to do the same compile thing on my leopard 10.6.2 system, and that also worked fine.&#60;/p&#62;
&#60;p&#62;I want to know what seems to be the problem and any advice would be appreciate.&#60;/p&#62;
&#60;p&#62;Thanks in advance ^_^
&#60;/p&#62;</description>
		</item>
		<item>
			<title>MandarX on "How to change the AppName?"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9350#post-53928</link>
			<pubDate>Mon, 06 Sep 2010 20:44:33 +0000</pubDate>
			<dc:creator>MandarX</dc:creator>
			<guid isPermaLink="false">53928@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;Hi, I just installed XCode 3.2.3 and cocos2d 0.99.4 (and spent my afternoon porting my project)&#60;/p&#62;
&#60;p&#62;The name of the app is [name]...raded (upgraded I think).&#60;/p&#62;
&#60;p&#62;Is there any way to set the name somewhere in the plist file or in the project info?&#60;/p&#62;
&#60;p&#62;thanks&#60;/p&#62;
&#60;p&#62;MandarX
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dragyn on "get numerical iOS version of device code is being run on"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9331#post-53841</link>
			<pubDate>Mon, 06 Sep 2010 03:48:07 +0000</pubDate>
			<dc:creator>Dragyn</dc:creator>
			<guid isPermaLink="false">53841@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;It will work for any version comparison.  Here's my test code I just dropped into a project to make sure it worked as anticipated:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;NSString *reqSysVer = @&#38;quot;4.0.2&#38;quot;;
NSString *currSysVer = [[UIDevice currentDevice] systemVersion];

if ([currSysVer compare:reqSysVer options:NSNumericSearch] != NSOrderedAscending)
 {
    NSLog(@&#38;quot;Struck on the if statement.&#38;quot;);
 }
else
 {
    NSLog(@&#38;quot;Struck on the else statement.&#38;quot;);
 }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I'm running on OS 4.0.2.  The above code will pass into the if statement when I run it.  If I put a lower reqSysVer version number (3.0, 2.1, etc), it will also pass into the if statement, since it will meet the minimum requirement.  If I put a higher number than the OS I'm running (like 4.1), the routine will drop into the else statement, since my OS failed to meet the minimum requirements.  &#60;/p&#62;
&#60;p&#62;So in place of the NSLogs, you can set your BOOL value based on your requirements. (if = PASS, else = FAIL)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>finder39 on "get numerical iOS version of device code is being run on"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9331#post-53839</link>
			<pubDate>Mon, 06 Sep 2010 03:22:48 +0000</pubDate>
			<dc:creator>finder39</dc:creator>
			<guid isPermaLink="false">53839@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;will that work for just 4.1 or 4.1 and above??
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dragyn on "get numerical iOS version of device code is being run on"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9331#post-53836</link>
			<pubDate>Mon, 06 Sep 2010 02:38:39 +0000</pubDate>
			<dc:creator>Dragyn</dc:creator>
			<guid isPermaLink="false">53836@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;In the code posted in the StackOverflow thread (copied here for clarity):&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;NSString *reqSysVer = @&#38;quot;3.1&#38;quot;;
NSString *currSysVer = [[UIDevice currentDevice] systemVersion];

if ([currSysVer compare:reqSysVer options:NSNumericSearch] != NSOrderedAscending)
 {
    //Do some clever stuff
 }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;you would replace the @&#34;3.1&#34; in the reqSysVer with your requirement @&#34;4.1&#34;.  Then, inside the if statement (in place of the &#34;Do Some Clever Stuff&#34; comment, you would either perform your code that requires a minimum of iOS 4.1, OR you could use this spot to set a global BOOL for your app (isVersionOK), and use that to be evaluated later.&#60;/p&#62;
&#60;p&#62;From your code sample (assuming the use of the BOOL isVersionOK), it would look like:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ([[UIScreen mainScreen] scale] == 2.0 &#38;amp;&#38;amp; isVersionOK) {
	bg.scale = 0.5;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;As a side note, are you serious that you can't do scaling without iOS 4.1?  Wasn't scaling released with 4.0 (or was it 3.2?)?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>finder39 on "get numerical iOS version of device code is being run on"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9331#post-53835</link>
			<pubDate>Mon, 06 Sep 2010 02:27:55 +0000</pubDate>
			<dc:creator>finder39</dc:creator>
			<guid isPermaLink="false">53835@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;so how exactly would i use that to go with the  &#38;gt;= 4.1&#60;/p&#62;
&#60;p&#62;??
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dragyn on "get numerical iOS version of device code is being run on"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9331#post-53831</link>
			<pubDate>Mon, 06 Sep 2010 01:38:10 +0000</pubDate>
			<dc:creator>Dragyn</dc:creator>
			<guid isPermaLink="false">53831@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;Here is a good StackOverflow thread on detecting iOS version numbers.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://stackoverflow.com/questions/1964776/determine-current-iphone-os-version-at-runtime-and-compare-version-strings&#34;&#62;http://stackoverflow.com/questions/1964776/determine-current-iphone-os-version-at-runtime-and-compare-version-strings&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The last reply in the thread has code that sounds like exactly what you're looking for.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tomovo on "Xcode 4.0 preview"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/7172/page/2#post-53829</link>
			<pubDate>Mon, 06 Sep 2010 00:42:03 +0000</pubDate>
			<dc:creator>tomovo</dc:creator>
			<guid isPermaLink="false">53829@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;Oh, scratch that, I found it. After logging in I had to click iOS SDK Beta in the top gray bar (under the dark one at the very top). Talk about intuitive UI!! Search didn't work... Oh. 1 hour, 3 minutes remaining.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tomovo on "Xcode 4.0 preview"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/7172/page/2#post-53828</link>
			<pubDate>Mon, 06 Sep 2010 00:37:39 +0000</pubDate>
			<dc:creator>tomovo</dc:creator>
			<guid isPermaLink="false">53828@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;@&#60;a href='http://www.cocos2d-iphone.org/forum/profile/7'&#62;GameBit&#60;/a&#62; the direct download link for Preview 3 doesn't work for me either. I am a registered iPhone developer and I did log in before clicking it. Is it a redirect?&#60;/p&#62;
&#60;p&#62;The previous one for Preview 2, listed here on first page of this thread, did work for me.&#60;br /&#62;
It had this format: &#60;a href=&#34;https://developer.apple.com/iphone/download.action?path=%2FDeveloper_Tools%2Fxcode_4_developer_preview_2%2Fxcode4_dp2_4a119.dmg&#34; rel=&#34;nofollow&#34;&#62;https://developer.apple.com/iphone/download.action?path=%2FDeveloper_Tools%2Fxcode_4_developer_preview_2%2Fxcode4_dp2_4a119.dmg&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Could anyone try looking up a similar link for Preview 3? I'm dying to try it and it just doesn't show up in my Dev center page after login.&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>finder39 on "get numerical iOS version of device code is being run on"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9331#post-53827</link>
			<pubDate>Mon, 06 Sep 2010 00:37:07 +0000</pubDate>
			<dc:creator>finder39</dc:creator>
			<guid isPermaLink="false">53827@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;I need to find out how to find the iOS version of the device the code is being run on.&#60;/p&#62;
&#60;p&#62;I use this code to make the @2x code work&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if ([[UIScreen mainScreen] scale] == 2.0) {
	bg.scale = 0.5;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;but i can only have that run if it is 4.1 or greater since it does not work below that.  Does anyone know how to get the numerical value of the iOS version so i can do something like this.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if ([[UIScreen mainScreen] scale] == 2.0 &#38;amp;&#38;amp; iOSVersion &#38;gt;= 4.1) {
	bg.scale = 0.5;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>finder39 on "Need drastic help with stupid errors"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9317#post-53743</link>
			<pubDate>Sun, 05 Sep 2010 05:20:26 +0000</pubDate>
			<dc:creator>finder39</dc:creator>
			<guid isPermaLink="false">53743@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;i will try that thanks you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dragyn on "Need drastic help with stupid errors"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9317#post-53737</link>
			<pubDate>Sun, 05 Sep 2010 03:35:48 +0000</pubDate>
			<dc:creator>Dragyn</dc:creator>
			<guid isPermaLink="false">53737@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;That is a GCC error that seems to normally be associated with setting Registers improperly.  I'm assuming that you're not doing anything funky like that (at least not directly).  This is defiinitely NOT a typical error you see in XCode.&#60;/p&#62;
&#60;p&#62;What version of XCode are you using?  My gut reaction is to tell you to reinstall XCode and see if that helps, but since I haven't heard of anyone else getting that error in XCode, it's about a 50/50 shot that reinstalling will help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>finder39 on "Need drastic help with stupid errors"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9317#post-53735</link>
			<pubDate>Sun, 05 Sep 2010 02:32:45 +0000</pubDate>
			<dc:creator>finder39</dc:creator>
			<guid isPermaLink="false">53735@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;so I keep getting these two stupid errors that I can't figure out. They only happen randomly from time to time and the only way it seems to fix them is to go to an old version of the project that I take off my Time Machine and retyping all my changes. I retype all the new stuff exactly the same and then the errors are not there.&#60;/p&#62;
&#60;p&#62;a couple notes.&#60;br /&#62;
1. it is only on ad-hoc build, not on debug build&#60;br /&#62;
2. if I retype the same code again from a time machine backup of it, it works as long as i don't copy/paste.&#60;br /&#62;
3. I am generally pissed off about it since it is so much work to fix.&#60;br /&#62;
4. It makes it impossible for me to work in debug mode since when i switch back to ad-hoc to send to my beta testers i have to RECODE EVERYTHING&#60;br /&#62;
5. I have deleted the build folder and cleared the xcode cache and still the same&#60;/p&#62;
&#60;p&#62;&#60;img src=&#34;http://a.imageshack.us/img807/8362/screenshot20100904at928.png&#34; alt=&#34;&#34; /&#62;&#60;/p&#62;
&#60;p&#62;please please PLEASE help. should i reinstall xcode?  or what?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kitsune on "using a string for runAction"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9301#post-53712</link>
			<pubDate>Sat, 04 Sep 2010 22:05:04 +0000</pubDate>
			<dc:creator>Kitsune</dc:creator>
			<guid isPermaLink="false">53712@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;Not sure if this is what you're looking for: NSClassFromString&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.cocoadev.com/index.pl?NSClassFromString&#34; rel=&#34;nofollow&#34;&#62;http://www.cocoadev.com/index.pl?NSClassFromString&#60;/a&#62;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Class myClass = NSClassFromString(@&#38;quot;CCSomething&#38;quot;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Edit:&#60;br /&#62;
I actually just tried it, this works:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Class myClass = NSClassFromString(@&#38;quot;CCMoveTo&#38;quot;);
[mySprite runAction:[myClass actionWithDuration:0.5f position:ccp(50,50)]];&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Ben Rowland on "using a string for runAction"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9301#post-53710</link>
			<pubDate>Sat, 04 Sep 2010 21:51:47 +0000</pubDate>
			<dc:creator>Ben Rowland</dc:creator>
			<guid isPermaLink="false">53710@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;If you have all the actions already created and just want to run an action with a given name, the simplest way to do this is just to create an NSDictionary in your manager with the concatenated names as keys and the appropriate actions as values. Do all this during the initialisation of your animation manager, then when you want a particular action just rebuild your concatenated name and look up the action in the dictionary.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>spinfall on "using a string for runAction"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9301#post-53651</link>
			<pubDate>Sat, 04 Sep 2010 08:49:14 +0000</pubDate>
			<dc:creator>spinfall</dc:creator>
			<guid isPermaLink="false">53651@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;I looked everywhere for an answer to this questions. Maybe Im just going about it the wrong way.&#60;/p&#62;
&#60;p&#62;What I am trying to do is simplify my custom animation manager method so that I can &#34;pass in&#34; a couple of variables and call the appropriate CCAction.&#60;/p&#62;
&#60;p&#62;Currently I have a large switch statement with embedded if/else statements.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;switch (state)
	{
               // find out what action is happening
		case kStateWalking:

                        // now findout what direction to play the action
			if(dirName == @&#38;quot;W&#38;quot; ){
				[myPlayerSprite runAction:walkingActionDirectionW];

			}else if (dirName == @&#38;quot;N&#38;quot;) {
				[myPlayerSprite runAction:walkingActionDirectionN];

			//etc...

			break;	

                case kStateRunning:

		   if(dirName == @&#38;quot;W&#38;quot; ){
				[myPlayerSprite runAction:runningActionDirectionW];

			}else if (dirName == @&#38;quot;N&#38;quot;) {
				[myPlayerSprite runAction:runningActionDirectionN];
                       //etc...

			break;	

	             ///case etc...&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This is the method I am trying to write... pseudo code&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;-(void) AnimationActionWithDirection
{
  // returns the string for the direction &#38;quot;W&#38;quot;
  NSString* directionName = [self getDirectionName];
  // returns the string for the animation type &#38;quot;walking&#38;quot;
  NSString* actionName = [self getActionName];

  //Concatenate the strings
  NSString * CCactionName =(@&#38;quot;%@ActionDirection%@&#38;quot;, [actionName,directionName);

[myPlayerSprite runAction:???CCactionName???]; // here is where im clueless

}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;It would be great if I could just tell my animation manager method what to do by just telling it what action I want and what direction and i could play the appropriate action.&#60;/p&#62;
&#60;p&#62;Any help is greatly appreciated!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>BrokenGnome on "Game Center integration with my game? How can I do this? Where can I find info?"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/7721#post-53589</link>
			<pubDate>Fri, 03 Sep 2010 20:48:04 +0000</pubDate>
			<dc:creator>BrokenGnome</dc:creator>
			<guid isPermaLink="false">53589@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;@&#60;a href='http://www.cocos2d-iphone.org/forum/profile/559'&#62;cybergreg&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;lol thanks, lips are sealed.  Thanks for the tips.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cybergreg on "Game Center integration with my game? How can I do this? Where can I find info?"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/7721#post-53587</link>
			<pubDate>Fri, 03 Sep 2010 20:28:29 +0000</pubDate>
			<dc:creator>cybergreg</dc:creator>
			<guid isPermaLink="false">53587@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;@&#60;a href='http://www.cocos2d-iphone.org/forum/profile/15947'&#62;BrokenGnome&#60;/a&#62; - start out with cocos2d 0.99.5 beta2. This will give you a rootViewController that makes it super easy to hang UIKit stuff off of it, like Game Center or iAd's. In addition, on the iOS Dev site, under the 4.1 beta sample code there is a fairly new sample app named GKTapper. Should get you going pretty quick.&#60;/p&#62;
&#60;p&#62;Reminder: until next week iOS 4.1 (min for Game Center) is still under NDA so further discussions (or at least more detailed discussions) should take place on the Apple Dev forums.&#60;/p&#62;
&#60;p&#62;:-]
&#60;/p&#62;</description>
		</item>
		<item>
			<title>BrokenGnome on "Game Center integration with my game? How can I do this? Where can I find info?"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/7721#post-53584</link>
			<pubDate>Fri, 03 Sep 2010 20:20:35 +0000</pubDate>
			<dc:creator>BrokenGnome</dc:creator>
			<guid isPermaLink="false">53584@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;Any update on integrating cocos2d and Game Center?  I just got asked to do a game, and want to use Cocos2d to speed up development, but Game Center is a requirement and it doesn't seem very easy to use the 2 together.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>paule on "Xcode 4.0 preview"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/7172/page/2#post-53501</link>
			<pubDate>Fri, 03 Sep 2010 12:54:55 +0000</pubDate>
			<dc:creator>paule</dc:creator>
			<guid isPermaLink="false">53501@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;You can download it legally! Just take a look at developer.apple.com if you are registered developer.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>idsky on "Can&#039;t set active executable to arm6 devices on XCode 3.2.3"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9254#post-53494</link>
			<pubDate>Fri, 03 Sep 2010 10:48:43 +0000</pubDate>
			<dc:creator>idsky</dc:creator>
			<guid isPermaLink="false">53494@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;Yay.  Now that I have &#60;strong&#62;4&#60;/strong&#62; different obscure ways to set build settings, I'm sure to find them in future!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>GameBit on "Xcode 4.0 preview"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/7172/page/2#post-53491</link>
			<pubDate>Fri, 03 Sep 2010 10:24:07 +0000</pubDate>
			<dc:creator>GameBit</dc:creator>
			<guid isPermaLink="false">53491@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;@&#60;a href='http://www.cocos2d-iphone.org/forum/profile/17462'&#62;macforme&#60;/a&#62;&#60;br /&#62;
ah, i see. So i guess your bet bet is torrents... See no reason for apple to not allow ppl to download it
&#60;/p&#62;</description>
		</item>
		<item>
			<title>AggroPanda on "UITextField cause crash"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/9243#post-53482</link>
			<pubDate>Fri, 03 Sep 2010 08:19:32 +0000</pubDate>
			<dc:creator>AggroPanda</dc:creator>
			<guid isPermaLink="false">53482@http://www.cocos2d-iphone.org/forum/</guid>
			<description>&#60;p&#62;@&#60;a href='http://www.cocos2d-iphone.org/forum/profile/3916'&#62;liquidfire&#60;/a&#62;, good point I was confused because I usually do the following:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;NSString *string = [NSString stringWithString:self._twUserTextField.text];&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;@&#60;a href='http://www.cocos2d-iphone.org/forum/profile/13515'&#62;FiberCore&#60;/a&#62;, glad you got the problem sorted :)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
