<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kernel Panic &#187; object</title>
	<atom:link href="http://blog.epelaez.net/tag/object/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.epelaez.net</link>
	<description>~Keep It Simple</description>
	<lastBuildDate>Wed, 30 Jun 2010 17:11:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Setting up objects</title>
		<link>http://blog.epelaez.net/10/setting-up-objects/</link>
		<comments>http://blog.epelaez.net/10/setting-up-objects/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 21:38:51 +0000</pubDate>
		<dc:creator>Pelaez</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[devs]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Headers]]></category>
		<category><![CDATA[object]]></category>
		<category><![CDATA[rant]]></category>

		<guid isPermaLink="false">http://blog.epelaez.net/?p=465</guid>
		<description><![CDATA[This is something that bothers me when using apps (yes, it&#8217;s half a rant, half an advice. I&#8217;m actually tagging it &#8220;rant&#8221;, you&#8217;ll probably see that tag grow when I start sending my apps for AppStore aproval), devs don&#8217;t take the time to change the default properties of objects, and it&#8217;s something actually really easy. [...]]]></description>
			<content:encoded><![CDATA[<p>This is something that bothers me when using apps (yes, it&#8217;s half a rant, half an advice. I&#8217;m actually tagging it &#8220;rant&#8221;, you&#8217;ll probably see that tag grow when I start sending my apps for AppStore aproval), devs don&#8217;t take the time to change the default properties of objects, and it&#8217;s something actually really easy.<span id="more-465"></span></p>
<p>Not knowing what properties objects have is no excuse, because all you have to do is open the header files and scroll to where the properties are declared and see what you can change, most property names are very self-explanatory, and the ones that aren&#8217;t enough, usually have comments saying what they do.</p>
<p>So please, devs out there, don&#8217;t leave the default values of your objects (unless, of course, that&#8217;s the value you need), setting them up properly it really easy to do, and it makes your app stand out.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://blog.epelaez.net/10/setting-up-objects/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://blog.epelaez.net/10/setting-up-objects/&amp;title=Setting+up+objects" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://blog.epelaez.net/10/setting-up-objects/&amp;title=Setting+up+objects" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://blog.epelaez.net/10/setting-up-objects/&amp;t=Setting+up+objects" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-mail">
			<a href="mailto:?subject=%22Setting%20up%20objects%22&amp;body=Link: http://blog.epelaez.net/10/setting-up-objects/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A This%20is%20something%20that%20bothers%20me%20when%20using%20apps%20%28yes%2C%20it%27s%20half%20a%20rant%2C%20half%20an%20advice.%20I%27m%20actually%20tagging%20it%20%22rant%22%2C%20you%27ll%20probably%20see%20that%20tag%20grow%20when%20I%20start%20sending%20my%20apps%20for%20AppStore%20aproval%29%2C%20devs%20don%27t%20take%20the%20time%20to%20change%20the%20default%20properties%20of%20objects%2C%20and%20it%27s%20something%20act" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Setting+up+objects+-+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://blog.epelaez.net/10/setting-up-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ObjC class</title>
		<link>http://blog.epelaez.net/06/objc-class/</link>
		<comments>http://blog.epelaez.net/06/objc-class/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 22:45:32 +0000</pubDate>
		<dc:creator>Pelaez</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[Source Code]]></category>
		<category><![CDATA[Toolchain]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[ObjC]]></category>
		<category><![CDATA[object]]></category>
		<category><![CDATA[oop]]></category>

		<guid isPermaLink="false">http://blog.epelaez.net/?p=231</guid>
		<description><![CDATA[This is a &#8220;template&#8221; of a very basic ObjC class, with some things explained, you should copy it and paste it into a text editor to see it more clearly. 1234567891011121314151617181920212223242526272829//This USUALLY goes in a file called myClass.h #import @interface myClass:NSObject&#123; //&#34;myClass&#34; is the name of my class, NSObject is the superclass of my class [...]]]></description>
			<content:encoded><![CDATA[<p>This is a &#8220;template&#8221; of a very basic ObjC class, with some things explained, you should copy it and paste it into a text editor to see it more clearly.</p>
<p><span id="more-231"></span></p>
<div class="codecolorer-container objc default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:400px;height:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br /></div></td><td><div class="objc codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #11740a; font-style: italic;">//This USUALLY goes in a file called myClass.h</span><br />
<span style="color: #6e371a;">#import</span><br />
<br />
<span style="color: #a61390;">@interface</span> myClass<span style="color: #002200;">:</span><span style="color: #400080;">NSObject</span><span style="color: #002200;">&#123;</span> <span style="color: #11740a; font-style: italic;">//&quot;myClass&quot; is the name of my class, NSObject is the superclass of my class</span><br />
<span style="color: #11740a; font-style: italic;">//Instance variables (These will be the object's attributes)</span><br />
<span style="color: #11740a; font-style: italic;">//Example:</span><br />
<span style="color: #400080;">NSString</span> <span style="color: #002200;">*</span><span style="color: #a61390;">string</span>;<br />
<span style="color: #002200;">&#125;</span><br />
<span style="color: #11740a; font-style: italic;">//property declaration (Tells the compiler how to handle the variable, in this case, it will be read only)</span><br />
<span style="color: #a61390;">@property</span><span style="color: #002200;">&#40;</span>readonly<span style="color: #002200;">&#41;</span> <span style="color: #400080;">NSString</span> <span style="color: #002200;">*</span><span style="color: #a61390;">string</span>;<br />
<span style="color: #11740a; font-style: italic;">//declaration of methods</span><br />
<span style="color: #002200;">-</span><span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>init; <span style="color: #11740a; font-style: italic;">//Instance methods, you need to call these through an object of this class, notice the '-' sign</span><br />
<span style="color: #002200;">+</span><span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>doSomething; <span style="color: #11740a; font-style: italic;">//Class methods, you call these directly, not through an object [myClass something], notice the '+' sign</span><br />
<span style="color: #a61390;">@end</span> <span style="color: #11740a; font-style: italic;">//end of the interface declaration</span><br />
<br />
<span style="color: #11740a; font-style: italic;">//This USUALLY goes in a file called myClass.m</span><br />
@implement myClass<br />
<br />
<span style="color: #11740a; font-style: italic;">//sytnesize tells the compiler to create the getter and setter methods depending on how you declared in @property, in this case it will only create a getter method</span><br />
<span style="color: #11740a; font-style: italic;">//If you want to create the getter and setter methods yourself, you can use @dynamic instead</span><br />
<span style="color: #a61390;">@synthesize</span> <span style="color: #a61390;">string</span>;<br />
<span style="color: #11740a; font-style: italic;">//implementation of declared methods</span><br />
<span style="color: #002200;">-</span><span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>init<span style="color: #002200;">&#123;</span><br />
<span style="color: #11740a; font-style: italic;">//Some code</span><br />
<span style="color: #002200;">&#125;</span><br />
<span style="color: #002200;">+</span><span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>doSomething<span style="color: #002200;">&#123;</span><br />
<span style="color: #11740a; font-style: italic;">//some code</span><br />
<span style="color: #002200;">&#125;</span><br />
<span style="color: #a61390;">@end</span> <span style="color: #11740a; font-style: italic;">//end of the implementation</span></div></td></tr></tbody></table></div>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://blog.epelaez.net/06/objc-class/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://blog.epelaez.net/06/objc-class/&amp;title=ObjC+class" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://blog.epelaez.net/06/objc-class/&amp;title=ObjC+class" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://blog.epelaez.net/06/objc-class/&amp;t=ObjC+class" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-mail">
			<a href="mailto:?subject=%22ObjC%20class%22&amp;body=Link: http://blog.epelaez.net/06/objc-class/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A This%20is%20a%20%22template%22%20of%20a%20very%20basic%20ObjC%20class%2C%20with%20some%20things%20explained%2C%20you%20should%20copy%20it%20and%20paste%20it%20into%20a%20text%20editor%20to%20see%20it%20more%20clearly.%0D%0A%0D%0A%0D%0A%0D%0A%5Bcc%20lang%3D%22objc%22%5D%2F%2FThis%20USUALLY%20goes%20in%20a%20file%20called%20myClass.h%0D%0A%23import%0D%0A%0D%0A%40interface%20myClass%3ANSObject%7B%20%2F%2F%22myClass%22%20is%20the%20name%20of%20my%20class%2C%20" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=ObjC+class+-+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://blog.epelaez.net/06/objc-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
