<?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: Objective-C Object as a C Structure</title>
	<atom:link href="http://MobileDeveloperTips.com/objective-c/objective-c-object-as-a-c-structure.html/feed" rel="self" type="application/rss+xml" />
	<link>http://MobileDeveloperTips.com/objective-c/objective-c-object-as-a-c-structure.html</link>
	<description>iOS and Objective-C Tips, Tricks and Tutorials.</description>
	<lastBuildDate>Tue, 22 May 2012 11:53:47 -0500</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: James Womack</title>
		<link>http://MobileDeveloperTips.com/objective-c/objective-c-object-as-a-c-structure.html#comment-67810</link>
		<dc:creator>James Womack</dc:creator>
		<pubDate>Wed, 29 Feb 2012 16:12:18 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1170#comment-67810</guid>
		<description>Instance variables are @protected by default—what James Yopp said is incorrect. If you mark them as @public you can automatically do the above though. You also can access self as a struct pointer.</description>
		<content:encoded><![CDATA[<p>Instance variables are @protected by default—what James Yopp said is incorrect. If you mark them as @public you can automatically do the above though. You also can access self as a struct pointer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanner</title>
		<link>http://MobileDeveloperTips.com/objective-c/objective-c-object-as-a-c-structure.html#comment-66894</link>
		<dc:creator>Tanner</dc:creator>
		<pubDate>Wed, 08 Feb 2012 01:59:57 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1170#comment-66894</guid>
		<description>&quot;I imagine there is a good use case for this, I’m just not sure I know what it is…if you can think of one, please post a comment.&quot;

In a role playing game the player drinks a potion displayed as a colored bottle.
Your stats change accordingly.

POTION is your Testclass
it contains

 int deltastrenght = 5;
 int deltastamina = -2;
 int effectsduration = 10;
 bool hasEffectOnElves = NO;

And the main class of your game register those values when the player drinks that potion.</description>
		<content:encoded><![CDATA[<p>&#8220;I imagine there is a good use case for this, I’m just not sure I know what it is…if you can think of one, please post a comment.&#8221;</p>
<p>In a role playing game the player drinks a potion displayed as a colored bottle.<br />
Your stats change accordingly.</p>
<p>POTION is your Testclass<br />
it contains</p>
<p> int deltastrenght = 5;<br />
 int deltastamina = -2;<br />
 int effectsduration = 10;<br />
 bool hasEffectOnElves = NO;</p>
<p>And the main class of your game register those values when the player drinks that potion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jack</title>
		<link>http://MobileDeveloperTips.com/objective-c/objective-c-object-as-a-c-structure.html#comment-243</link>
		<dc:creator>jack</dc:creator>
		<pubDate>Sat, 21 Feb 2009 10:01:23 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1170#comment-243</guid>
		<description>Could I use methods in this way (from structure)? 
eg. testClassAsStruct-&gt;mypreviouslyDeclaredMethod()

If no, I would ask by the way, maybe you know if it is possible at all in ObjC/iPhone to call methods with dot syntax, so like this:

myClass.myMethod(var)</description>
		<content:encoded><![CDATA[<p>Could I use methods in this way (from structure)?<br />
eg. testClassAsStruct-&gt;mypreviouslyDeclaredMethod()</p>
<p>If no, I would ask by the way, maybe you know if it is possible at all in ObjC/iPhone to call methods with dot syntax, so like this:</p>
<p>myClass.myMethod(var)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Yopp</title>
		<link>http://MobileDeveloperTips.com/objective-c/objective-c-object-as-a-c-structure.html#comment-241</link>
		<dc:creator>James Yopp</dc:creator>
		<pubDate>Fri, 20 Feb 2009 20:33:47 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1170#comment-241</guid>
		<description>Actually, unless you use the @private: or @protected: declarations to explicity hide the instance variables, the compiler will do all this for you automatically.  Try it by using tmp-&gt;testString, etc. in the above code.</description>
		<content:encoded><![CDATA[<p>Actually, unless you use the @private: or @protected: declarations to explicity hide the instance variables, the compiler will do all this for you automatically.  Try it by using tmp-&gt;testString, etc. in the above code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Grzegorz Adam Hankiewicz</title>
		<link>http://MobileDeveloperTips.com/objective-c/objective-c-object-as-a-c-structure.html#comment-122</link>
		<dc:creator>Grzegorz Adam Hankiewicz</dc:creator>
		<pubDate>Mon, 08 Dec 2008 10:13:11 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1170#comment-122</guid>
		<description>Maybe quick and dirty serialization?</description>
		<content:encoded><![CDATA[<p>Maybe quick and dirty serialization?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

