<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ktatsiu&#039;s Blog</title>
	<atom:link href="http://ktatsiu.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ktatsiu.wordpress.com</link>
	<description>Thoughts from a code monkey ...</description>
	<lastBuildDate>Thu, 19 Jan 2012 10:03:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ktatsiu.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Ktatsiu&#039;s Blog</title>
		<link>http://ktatsiu.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ktatsiu.wordpress.com/osd.xml" title="Ktatsiu&#039;s Blog" />
	<atom:link rel='hub' href='http://ktatsiu.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Auto-synthesized ivar in Objective-C is full of traps</title>
		<link>http://ktatsiu.wordpress.com/2012/01/19/auto-synthesized-ivar-in-objective-c-is-full-of-traps/</link>
		<comments>http://ktatsiu.wordpress.com/2012/01/19/auto-synthesized-ivar-in-objective-c-is-full-of-traps/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 10:01:39 +0000</pubDate>
		<dc:creator>ktatsiu</dc:creator>
				<category><![CDATA[Cocoa Programming]]></category>
		<category><![CDATA[iPhone Programming]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[objective c]]></category>
		<category><![CDATA[Windows Phone]]></category>

		<guid isPermaLink="false">http://ktatsiu.wordpress.com/?p=358</guid>
		<description><![CDATA[The modern Objective-C 2.0 runtime introduces the feature of property with the backing ivars variable generated automatically. Sounds like a nice feature but you can easily fall into traps if it is not used properly. Consider the following code: Sound nice, but the problem with this code is that the ivar that gets generated by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ktatsiu.wordpress.com&amp;blog=13342367&amp;post=358&amp;subd=ktatsiu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The modern Objective-C 2.0 runtime introduces the feature of property with the backing ivars variable generated automatically.<br />
Sounds like a nice feature but you can easily fall into traps if it is not used properly.<br />
Consider the following code:</p>
<p><pre class="brush: plain;">
@interface Person : NSObject
@property (retain) NSString *name;
@end
</pre></p>
<p>Sound nice, but the problem with this code is that the ivar that gets generated by default from this code is simply called &#8216;name&#8217; and it allows for easy slips with forgetting accessing the ivar directly to be written:</p>
<p><pre class="brush: plain;">
-(void)foo{
   // Direct ivar access bypassing property accessors
   name = [NSString stringWithString:@&quot;John&quot;];
}
</pre></p>
<p>
Note that the string returned from &#8216;stringWithString&#8217; is auto-released, it would give all sorts of troubles later, possibly crash as the autoreleased variable is never retained and the synthesized property setter is never called.</p>
<p>As you might see some code from the XCode project template, the code uses a style that attach an underscore character as prefix to the backing ivar name, like following code:
</p>
<p><pre class="brush: objc;">
@implementation MyUIViewController
@synthesize window = _window;
</pre></p>
<p>I don&#8217;t think this is good enough. You can still easily screw up yourself by writing code like:</p>
<p><pre class="brush: objc;">
     // compiler doesn't stop you like this
     _name = [NSString stringWithString:@&quot;John&quot;];
</pre></p>
<p>In my opinion, the only complete solution is that the backing ivar is completely hidden from the programmer and the generated name will be decorated internally and be known only the compiler, very much like it works in C#.</p>
<p>In that case, statement like this</p>
<p><pre class="brush: objc;">
      name = [NSString stringWithString:@&quot;John&quot;];
</pre></p>
<p>should be translated to the equivalent of the below code. (given the correct scope resolution)</p>
<p><pre class="brush: objc;">
      self.name = [NSString stringWithString:@&quot;John&quot;];
</pre>     </p>
<p>Reference: <a href="http://shinydevelopment.com/blog/automatic-property-instance-variables-with-objective-c/" title="http://shinydevelopment.com/blog/automatic-property-instance-variables-with-objective-c/"></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ktatsiu.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ktatsiu.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ktatsiu.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ktatsiu.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ktatsiu.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ktatsiu.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ktatsiu.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ktatsiu.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ktatsiu.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ktatsiu.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ktatsiu.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ktatsiu.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ktatsiu.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ktatsiu.wordpress.com/358/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ktatsiu.wordpress.com&amp;blog=13342367&amp;post=358&amp;subd=ktatsiu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ktatsiu.wordpress.com/2012/01/19/auto-synthesized-ivar-in-objective-c-is-full-of-traps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/52db1ad5b72e48f30e9dace25b08da44?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ktatsiu</media:title>
		</media:content>
	</item>
		<item>
		<title>Fix missing iOS 5 Documents in XCode 4.2</title>
		<link>http://ktatsiu.wordpress.com/2012/01/17/fix-missing-ios-5-documents-in-xcode-4-2/</link>
		<comments>http://ktatsiu.wordpress.com/2012/01/17/fix-missing-ios-5-documents-in-xcode-4-2/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 16:01:52 +0000</pubDate>
		<dc:creator>ktatsiu</dc:creator>
				<category><![CDATA[Cocoa Programming]]></category>
		<category><![CDATA[iPhone Programming]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://ktatsiu.wordpress.com/?p=353</guid>
		<description><![CDATA[Just got my shiny new Mac Book Air 13&#8243; inch core i7 and downloaded XCode 4.2 from the AppStore. When I tried to look up any class reference from the XCode editor, I got a login form inside the document window, and after I entered my Apple ID, it shows: &#8220;You do not have access [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ktatsiu.wordpress.com&amp;blog=13342367&amp;post=353&amp;subd=ktatsiu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just got my shiny new Mac Book Air 13&#8243; inch core i7 and downloaded XCode 4.2 from the AppStore.</p>
<p>When I tried to look up any class reference from the XCode editor, I got a login form inside the document window, and after I entered my Apple ID, it shows:<br />
&#8220;You do not have access to this resource based on your membership.&#8221;.</p>
<p>It seems ridiculous that I need iOS membership to access documentation as this is not the case previously; and iOS 5.0 has been released for a while now, that means shouldn&#8217;t have NDA restriction on the beta documentation.</p>
<p>Magically the problem was fixed by itself when I went to Xcode | Preferences&#8230; | Downloads | Documentation and click Check and Install Now.</p>
<p>The download started again. (I swear that I have downloaded the same set of documentation before.)</p>
<p>I am not alone with this problem.<br />
See http://forums.bignerdranch.com/viewtopic.php?f=148&amp;t=3497</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ktatsiu.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ktatsiu.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ktatsiu.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ktatsiu.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ktatsiu.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ktatsiu.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ktatsiu.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ktatsiu.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ktatsiu.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ktatsiu.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ktatsiu.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ktatsiu.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ktatsiu.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ktatsiu.wordpress.com/353/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ktatsiu.wordpress.com&amp;blog=13342367&amp;post=353&amp;subd=ktatsiu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ktatsiu.wordpress.com/2012/01/17/fix-missing-ios-5-documents-in-xcode-4-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/52db1ad5b72e48f30e9dace25b08da44?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ktatsiu</media:title>
		</media:content>
	</item>
		<item>
		<title>iOS recipe : Storing local files in iPhone</title>
		<link>http://ktatsiu.wordpress.com/2012/01/06/ios-recipe-storing-local-files-in-iphone/</link>
		<comments>http://ktatsiu.wordpress.com/2012/01/06/ios-recipe-storing-local-files-in-iphone/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 02:56:30 +0000</pubDate>
		<dc:creator>ktatsiu</dc:creator>
				<category><![CDATA[iPhone Programming]]></category>
		<category><![CDATA[Mobile Computing]]></category>

		<guid isPermaLink="false">http://ktatsiu.wordpress.com/2012/01/06/ios-recipe-storing-local-files-in-iphone/</guid>
		<description><![CDATA[Each iPhone iOS application on a device has its own private Documents and tmp directories into which it is permitted to read and write data. Because the location of these directories is different for each application the only way to find the correct path is to ask the iOS for the correct path. The following [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ktatsiu.wordpress.com&amp;blog=13342367&amp;post=341&amp;subd=ktatsiu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Each iPhone iOS application on a device has its own private Documents and tmp directories into which it is permitted to read and write data. Because the location of these directories is different for each application the only way to find the correct path is to ask the iOS for the correct path.</p>
<p>The following code snippet will generate a file path that points to the private document directory private to your iOS app.</p>
<p><pre class="brush: objc;">
NSString *fileName = @&quot;Demo.pdf&quot;;
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *pdfFileName = [documentsDirectory stringByAppendingPathComponent:fileName];
</pre></p>
<div> When executed within the iOS Simulator environment, the path returned will take the form of:</div>
<div>
<pre>/Users/&lt;user name&gt;/Library/Application Support/iPhone Simulator/&lt;sdk version&gt;/Applications/&lt;app id&gt;/Documents</pre>
<p>Where &lt;user name&gt; is the name of the user currently logged into the Mac OS X system on which the simulator is running, &lt;sdk version&gt; is the version of the iOS SDK used to compile the application and &lt;app id&gt; is the unique ID of the app, for example:</p>
<pre>06A3AEBA-8C34-476E-937F-A27BDD2E450A
</pre>
<p>Clearly this references a path on your Mac OS X system so feel free to open up a Finder window and explore the file system sandbox areas for your iOS iPhone applications.</p>
<p>When executed on a physical iPhone device, the path returned by the function call will take the following form:</p>
<pre>/var/mobile/Applications/&lt;app id&gt;/Documents</pre>
<h2>Identifying the Temporary Directory</h2>
<p>In addition to the Documents directory, iOS iPhone applications are also provided with a tmp directory for the storage of temporary files. The path to the current application’s temporary directory may be ascertained with a call to the NSTemporaryDirectory C function as follows:<br />
<pre class="brush: objc;">
NSString *tmpDir = NSTemporaryDirectory();
</pre></p>
<p>Once executed, the string object referenced by tmpDir will contain the path to the temporary directory for the application.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ktatsiu.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ktatsiu.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ktatsiu.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ktatsiu.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ktatsiu.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ktatsiu.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ktatsiu.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ktatsiu.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ktatsiu.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ktatsiu.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ktatsiu.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ktatsiu.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ktatsiu.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ktatsiu.wordpress.com/341/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ktatsiu.wordpress.com&amp;blog=13342367&amp;post=341&amp;subd=ktatsiu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ktatsiu.wordpress.com/2012/01/06/ios-recipe-storing-local-files-in-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/52db1ad5b72e48f30e9dace25b08da44?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ktatsiu</media:title>
		</media:content>
	</item>
		<item>
		<title>How to fix missing Microsoft&#8217;s fonts in iWork</title>
		<link>http://ktatsiu.wordpress.com/2012/01/05/how-to-fix-missing-microsofts-fonts-in-iwork/</link>
		<comments>http://ktatsiu.wordpress.com/2012/01/05/how-to-fix-missing-microsofts-fonts-in-iwork/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 14:38:55 +0000</pubDate>
		<dc:creator>ktatsiu</dc:creator>
				<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://ktatsiu.wordpress.com/?p=304</guid>
		<description><![CDATA[It used to be very frustrating to see the warnings whenever you load documents created by Microsoft Office into Mac OS X iWork. Kudos to this guy. Fix missing fonts No more and I can enjoy the pretty typefaces of Calibri, Cambria, Consolas etc on Mac OS X. To repeat his excellent post, the steps [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ktatsiu.wordpress.com&amp;blog=13342367&amp;post=304&amp;subd=ktatsiu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It used to be very frustrating to see the warnings whenever you load documents created by Microsoft Office into Mac OS X iWork. </p>
<p>Kudos to this guy.<br />
<a href="http://www.askdavetaylor.com/fix_missing_calibri_cambria_font_errors_iworks_numbers_pages.html">Fix missing fonts</a></p>
<p>No more and I can enjoy the pretty typefaces of Calibri, Cambria, Consolas etc on Mac OS X.</p>
<p>To repeat his excellent post, the steps basically<br />
- Download the trial version of Microsoft Office for Mac (any version later than 2008)<br />
- Right-click the Office Installer DMG and choose &#8216;Show Package Content&#8217;.<br />
- Look for .pkg file that installs fonts, like Office2011_all_fonts.pkg.<br />
- Double-click the package and it will install new Microsoft fonts to the system.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ktatsiu.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ktatsiu.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ktatsiu.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ktatsiu.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ktatsiu.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ktatsiu.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ktatsiu.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ktatsiu.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ktatsiu.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ktatsiu.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ktatsiu.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ktatsiu.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ktatsiu.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ktatsiu.wordpress.com/304/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ktatsiu.wordpress.com&amp;blog=13342367&amp;post=304&amp;subd=ktatsiu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ktatsiu.wordpress.com/2012/01/05/how-to-fix-missing-microsofts-fonts-in-iwork/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/52db1ad5b72e48f30e9dace25b08da44?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ktatsiu</media:title>
		</media:content>
	</item>
		<item>
		<title>Open Source iPhone projects and libraries</title>
		<link>http://ktatsiu.wordpress.com/2011/12/21/open-source-iphone-projects-and-libraries/</link>
		<comments>http://ktatsiu.wordpress.com/2011/12/21/open-source-iphone-projects-and-libraries/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 03:01:04 +0000</pubDate>
		<dc:creator>ktatsiu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ktatsiu.wordpress.com/2011/12/21/open-source-iphone-projects-and-libraries/</guid>
		<description><![CDATA[Open.iPhoneDev.com http://iphonedev.com/ iPhoneDev.com is a open source iPhone directory   Bullet Physics Engine http://code.google.com/p/bullet/ This is a free 3D game multi-physics library that is used in some of the popular games released on the App Store. Joe Hewitt’s Three20 Open-Source Objective-C libraryhttp://github.com/joehewitt/three20 Three20 is a complete set of iPhone UI classes. It includes things a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ktatsiu.wordpress.com&amp;blog=13342367&amp;post=302&amp;subd=ktatsiu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Open.iPhoneDev.com</strong></p>
<p>http://iphonedev.com/</p>
<p>iPhoneDev.com is a open source iPhone directory</p>
<p> </p>
<p><strong>Bullet Physics Engine</strong></p>
<p>http://code.google.com/p/bullet/</p>
<p>This is a free 3D game multi-physics library that is used in some of the popular games released on the App Store.</p>
<p><strong>Joe Hewitt’s Three20 Open-Source Objective-C library</strong><br />http://github.com/joehewitt/three20</p>
<p>Three20 is a complete set of iPhone UI classes. It includes things a photo viewer and also general utilities like the HTTP disk cache. It has been derived from the famous Facebook iPhone app – which is the number one downloaded app on the App store.</p>
<p><strong>Cocos2d Framework</strong><br />http://code.google.com/p/cocos2d-iphone/</p>
<p>This is a framework for building 2D games for the iPhone and the iPod Touch. It has a very supporting community, and is completely open-source engine. This is a must get for all aspiring iPhone game developers.</p>
<p><strong>Matt Legend Gemmell – Cocoa Source Code</strong><br />http://mattgemmell.com/source</p>
<p>Matt Gemmell has put out some of the greatest code out there for the iPhone developer community. <br />You have probably heard of his stuff including MGTwitterEngine, the Twitter API used in iPhone apps Birdhouse and Twitteriffic.</p>
<p><strong>Appsamuck</strong></p>
<p>http://www.appsamuck.com/<br />This is a blog that is an open-source collection of 31 mini-iPhone app projects to help you polish up your skills quickly.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ktatsiu.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ktatsiu.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ktatsiu.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ktatsiu.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ktatsiu.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ktatsiu.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ktatsiu.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ktatsiu.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ktatsiu.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ktatsiu.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ktatsiu.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ktatsiu.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ktatsiu.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ktatsiu.wordpress.com/302/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ktatsiu.wordpress.com&amp;blog=13342367&amp;post=302&amp;subd=ktatsiu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ktatsiu.wordpress.com/2011/12/21/open-source-iphone-projects-and-libraries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/52db1ad5b72e48f30e9dace25b08da44?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ktatsiu</media:title>
		</media:content>
	</item>
		<item>
		<title>Learning Objective-C : Selectors</title>
		<link>http://ktatsiu.wordpress.com/2011/12/06/learning-objective-c-selectors/</link>
		<comments>http://ktatsiu.wordpress.com/2011/12/06/learning-objective-c-selectors/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 06:31:18 +0000</pubDate>
		<dc:creator>ktatsiu</dc:creator>
				<category><![CDATA[Cocoa Programming]]></category>

		<guid isPermaLink="false">http://ktatsiu.wordpress.com/?p=261</guid>
		<description><![CDATA[For programmers who take the transition from Java, C# or C++, it takes some time to get used to the intricacies of Objective-C In other programming languages, we can think of a method composed by return type, method name and its list of parameters. Lets say in Java, if a class has a member method [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ktatsiu.wordpress.com&amp;blog=13342367&amp;post=261&amp;subd=ktatsiu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For programmers who take the transition from Java, C# or C++, it takes some time to get used to the intricacies of Objective-C</p>
<p>In other programming languages, we can think of a method composed by return type, method name and its list of parameters.<br />
Lets say in Java, if a class has a member method like below, we will denote the following class has method &#8216;setWidth&#8217; in the documentation.<br />
<pre class="brush: objc; gutter: false;">
void setWidth(int x, int y);
</pre><br />
Objective-C is different, we must think of a method in terms of its selector.<br />
So in below example, the method is referred as &#8216;setWidth:height:&#8217;, and not &#8216;setWidth&#8217;.<br />
We could have a similar but different method like:<br />
<pre class="brush: objc; gutter: false;">
-(void)setWidth:(int)w andWeight:(int)w;
</pre><br />
Then how to determine the selector from a method declaration?<br />
My rule-of-thumb is</p>
<p style="padding-left:30px;"><em>Write down the whole method without the return type,</em><br />
<em> strip the parameter type declarations, keep the parameter alias and colons in the process.</em></p>
<p><pre class="brush: objc; gutter: false;">
// selector = &quot;length&quot;
-(void)length;
// selector = &quot;setWidth:&quot;
-(void)setWidth:(int)w;
// selector = &quot;setNumerator:andDenominator:&quot;
-(void)setNumerator:(int)n andDenominator:(int)d;
</pre></p>
<p>Due to the unique nature of selector, one of the fact is that Objective-C does not allow method overloading.</p>
<p>In Objective-C run-time, method invocation relies on selector, it treats all methods with the same selector alike.</p>
<p>The following hypothetic methods has the same selector, thus they are not allowed in the same class.<br />
<pre class="brush: objc; gutter: false;">
-(void)setWidth:(int)w height:(int)h;
-(void)setWidth:(float)w height:(float)h;
</pre></p>
<p>Knowing this rule will help you read code easier. Consider this delegate method in the iOS SDK:</p>
<p><pre class="brush: objc; gutter: false;">
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
</pre></p>
<p>At first glance, you would wonder why this delegation method is named &#8216;application&#8217;. In fact the method actually is<br />
&#8216;application:didFinishLaunchingWithOptions:&#8217; based on the selector mechanism mentioned above.</p>
<p>A convention in naming delegation method is that the delegating class is located in the first parameter (without&#8217;NS&#8217; prefix), in this case, you know NSApplication is the class that is sending this delegation message.</p>
<p><em>Delegation methods have a conventional form. They begin with the name of the AppKit or UIKit object doing the delegating—application, window, control, and so on; this name is in lower-case and without the “NS” or “UI” prefix. Usually (but not always) this object name is followed by an auxiliary verb indicative of the temporal status of the reported event. This verb, in other words, indicates whether the event is about to occur (“Should” or “Will”) or whether it has just occurred (“Did” or “Has”).</em></p>
<p>&nbsp;</p>
<p>Links:<br />
<a href="http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaFundamentals.pdf">Cocoa Fundamental</a></p>
<p><a href="http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CodingGuidelines/Articles/NamingMethods.html#//apple_ref/doc/uid/20001282-BCIGIJJF">Coding Guidelines for Cocoa</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ktatsiu.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ktatsiu.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ktatsiu.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ktatsiu.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ktatsiu.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ktatsiu.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ktatsiu.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ktatsiu.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ktatsiu.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ktatsiu.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ktatsiu.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ktatsiu.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ktatsiu.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ktatsiu.wordpress.com/261/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ktatsiu.wordpress.com&amp;blog=13342367&amp;post=261&amp;subd=ktatsiu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ktatsiu.wordpress.com/2011/12/06/learning-objective-c-selectors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/52db1ad5b72e48f30e9dace25b08da44?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ktatsiu</media:title>
		</media:content>
	</item>
		<item>
		<title>Java Development on Snow Leopard</title>
		<link>http://ktatsiu.wordpress.com/2011/11/29/java-development-on-snow-leopard/</link>
		<comments>http://ktatsiu.wordpress.com/2011/11/29/java-development-on-snow-leopard/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 00:13:41 +0000</pubDate>
		<dc:creator>ktatsiu</dc:creator>
				<category><![CDATA[Java Programming]]></category>

		<guid isPermaLink="false">http://ktatsiu.wordpress.com/?p=250</guid>
		<description><![CDATA[I will update it when I get a new Mac with Lion&#8230;&#8230; JDK 1.6 Snow Leopard Mac OS X 10.6 only supports JDK 1.6. Apple has been struggling with Java support on Intel Mac, specifically Leopard 10.5 does not support JDK 1.6 on 32-bit Intel Mac. This has been changed with Snow Leopard. Currently Intel [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ktatsiu.wordpress.com&amp;blog=13342367&amp;post=250&amp;subd=ktatsiu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>I will update it when I get a new Mac with Lion&#8230;&#8230;</div>
<div></div>
<div><strong>JDK 1.6</strong><br />
Snow Leopard Mac OS X 10.6 only supports JDK 1.6.<br />
Apple has been struggling with Java support on Intel Mac, specifically Leopard 10.5 does not support JDK 1.6 on 32-bit Intel Mac. This has been changed with Snow Leopard.<br />
Currently Intel Core Duo Mac Book Pro has 32-bit JDK 1.6 installed.Noted that JDK 1.5 or older versions of Java have been removed permanently in Snow Leopard.<br />
As shown in following, the symbolic links of older Java version point to current JDK 1.6.</div>
<div>
<pre style="padding-left:30px;">/System/Library/Frameworks/JavaVM.framework/Versions$ ls -al
total 72
lrwxr-xr-x   1 root  wheel   10 Mar 16 03:56 1.5 -&gt; CurrentJDK
lrwxr-xr-x   1 root  wheel   10 Mar 16 03:56 1.5.0 -&gt; CurrentJDK
lrwxr-xr-x   1 root  wheel   10 Mar 16 03:56 1.6 -&gt; CurrentJDK
lrwxr-xr-x   1 root  wheel   10 Mar 16 03:56 1.6.0 -&gt; CurrentJDK
drwxr-xr-x  10 root  wheel  340 Mar 16 03:57 A
lrwxr-xr-x   1 root  wheel    1 Mar 16 03:56 Current -&gt; A
lrwxr-xr-x   1 root  wheel   59 Mar 16 03:56 CurrentJDK -&gt; /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents</pre>
<p><strong>Re-installing JDK 1.5 to Snow Leopard</strong><br />
See <a href="http://tedwise.com/2009/09/25/using-java-1-5-and-java-1-4-on-snow-leopard/">http://tedwise.com/2009/09/25/using-java-1-5-and-java-1-4-on-snow-leopard/</a></p>
<p dir="ltr">To install Java 1.5 First get the Java 1.5 archive and expand it.</p>
<pre style="padding-left:30px;"> cd /tmp/
 wget http://tedwise.com/files/java.1.5.0-leopard.tar.gz
 tar -zxvf java.1.5.0-leopard.tar.gz</pre>
<p dir="ltr">Then move it to the standard OS/X Java location.</p>
<pre style="padding-left:30px;">sudo mv 1.5.0 /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0-leopard</pre>
<p dir="ltr">And finally, setup all of the links required for OS/X.</p>
<pre style="padding-left:30px;">cd /System/Library/Frameworks/JavaVM.framework/Versions/
 sudo rm 1.5.0
 sudo ln -s 1.5.0-leopard 1.5.0
 sudo ln -s 1.5.0-leopard 1.5</pre>
<p><strong>Java support in XCode 4.0</strong><br />
Xcode was never a popular IDE for Java development in Mac. The older XCode version like 3.1.x used to have project templates for Java, but with the ever decreasing support of Java from Apple, Java is no longer a first-class citizen language for developing Mac software, and the result is that all Java project templates (except JNI) are now gone.</p>
<p>Basically Apple is telling developers that there are better tools outside with Eclipse, NetBean, IntelliJ, etc.</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ktatsiu.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ktatsiu.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ktatsiu.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ktatsiu.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ktatsiu.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ktatsiu.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ktatsiu.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ktatsiu.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ktatsiu.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ktatsiu.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ktatsiu.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ktatsiu.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ktatsiu.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ktatsiu.wordpress.com/250/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ktatsiu.wordpress.com&amp;blog=13342367&amp;post=250&amp;subd=ktatsiu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ktatsiu.wordpress.com/2011/11/29/java-development-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/52db1ad5b72e48f30e9dace25b08da44?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ktatsiu</media:title>
		</media:content>
	</item>
		<item>
		<title>Learning Android &#8211; CharSequence</title>
		<link>http://ktatsiu.wordpress.com/2011/10/15/learning-android-charsequence/</link>
		<comments>http://ktatsiu.wordpress.com/2011/10/15/learning-android-charsequence/#comments</comments>
		<pubDate>Sat, 15 Oct 2011 02:45:07 +0000</pubDate>
		<dc:creator>ktatsiu</dc:creator>
				<category><![CDATA[Android Programming]]></category>

		<guid isPermaLink="false">http://ktatsiu.wordpress.com/?p=241</guid>
		<description><![CDATA[One of the first thing I noticed while programming in Android is that a lot of functions in its API expects text uses CharSequence type instead of String type. Actually String class implements CharSequence. You can freely pass String object without problem. The use of CharSequence has notable advantages that not only it is lighter and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ktatsiu.wordpress.com&amp;blog=13342367&amp;post=241&amp;subd=ktatsiu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of the first thing I noticed while programming in Android is that a lot of functions in its API expects text uses CharSequence type instead of String type.</p>
<p>Actually String class implements CharSequence. You can freely pass String object without problem.</p>
<p>The use of CharSequence has notable advantages that not only it is lighter and more abstract than String, it widens the usage so that it allows String, CharBuffer, StringBuilder and other CharSequence implementations.</p>
<pre>	public static void printString(String s)
	{
	         System.out.println("Len = " + len);
	}

	public static void printCharSequence(CharSequence cs){
	         System.out.println(cs);
	}

 	StringBuilder builder = new StringBuilder("hello");
	builder.append(" world");
	printCharSequence(builder);
	printString(builder);  // compilation error!!</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ktatsiu.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ktatsiu.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ktatsiu.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ktatsiu.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ktatsiu.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ktatsiu.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ktatsiu.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ktatsiu.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ktatsiu.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ktatsiu.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ktatsiu.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ktatsiu.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ktatsiu.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ktatsiu.wordpress.com/241/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ktatsiu.wordpress.com&amp;blog=13342367&amp;post=241&amp;subd=ktatsiu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ktatsiu.wordpress.com/2011/10/15/learning-android-charsequence/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/52db1ad5b72e48f30e9dace25b08da44?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ktatsiu</media:title>
		</media:content>
	</item>
		<item>
		<title>Learning Android &#8211; Common Problems</title>
		<link>http://ktatsiu.wordpress.com/2011/08/20/learning-android-common-problems/</link>
		<comments>http://ktatsiu.wordpress.com/2011/08/20/learning-android-common-problems/#comments</comments>
		<pubDate>Sat, 20 Aug 2011 03:47:13 +0000</pubDate>
		<dc:creator>ktatsiu</dc:creator>
				<category><![CDATA[Android Programming]]></category>

		<guid isPermaLink="false">https://ktatsiu.wordpress.com/?p=227</guid>
		<description><![CDATA[1. Problems in starting the emulator If you are using Windows, the default Android SDK location is c:\Program Files\Android\android-sdk, or c:\Program Files(x86)\Android\android-sdk for 64-bit PC. Under this configuration, when you launch the emulator from Eclipse IDE or start the virtual device from AVD manager, you might encounter error messages like below: [2011-08-20 09:20:02 - Emulator] [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ktatsiu.wordpress.com&amp;blog=13342367&amp;post=227&amp;subd=ktatsiu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><span style="font-family:Tahoma;font-size:small;">1. Problems in starting the emulator</span></strong></p>
<p><span style="font-family:Tahoma;font-size:small;">If you are using Windows, the default Android SDK location is c:\Program Files\Android\android-sdk, or c:\Program Files(x86)\Android\android-sdk for 64-bit PC.</span></p>
<p><span style="font-family:Tahoma;font-size:small;">Under this configuration, when you launch the emulator from Eclipse IDE or start the virtual device from AVD manager, you might encounter error messages like below:</span></p>
<p style="padding-left:30px;"><span style="font-family:Tahoma;font-size:x-small;">[2011-08-20 09:20:02 - Emulator] invalid command-line parameter: Files.</span></p>
<p style="padding-left:30px;"><span style="font-family:Tahoma;font-size:x-small;">[2011-08-20 09:20:02 - Emulator] Hint: use &#8216;@foo&#8217; to launch a virtual device named &#8216;foo&#8217;.</span></p>
<p style="padding-left:30px;"><span style="font-family:Tahoma;font-size:x-small;">[2011-08-20 09:20:02 - Emulator] please use -help for more information</span></p>
<p><span style="font-family:Tahoma;font-size:small;">After a bit of research and experiments, it is a shame that looks like AVD manager or ADT don&#8217;t like any space in the SDK path, as these tools treat the &#8216;Files&#8217; in &#8216;Program Files&#8217; as command-line parameters.</span></p>
<p><span style="font-family:Tahoma;font-size:small;">I found the best way so far is to relocate the entire SDK to a directory that has no space, for my own convenience, I move it to c:\Android.</span></p>
<p><span style="font-family:Tahoma;font-size:small;">Next change the preferences of the ADT plugin in Eclipse to the location of the Android SDK, as well as the PATH environment variable.</span></p>
<p><strong><span style="font-family:Tahoma;font-size:small;">2. Emulator window cut off from the screen.</span></strong></p>
<p><span style="font-family:Tahoma;font-size:small;">Depends on which target platform chosen for the Run configuration, you may see the emulator getting cut off from the screen and the window is not sizable.</span></p>
<p><span style="font-family:Tahoma;font-size:small;">Three ways to fix:</span></p>
<ul>
<ul>
<li><span class="Apple-style-span" style="font-family:Tahoma;font-size:small;">Select your target avd in the AVD manager, click &#8216;Start&#8217;. Check the option &#8216;Scale Display to real size&#8217;, enter your preferred size and resolution.</span></li>
<li><span class="Apple-style-span" style="font-family:Tahoma;font-size:small;">Inside the Target tab of the Eclipse&#8217;s Run configuration, goes to &#8216;add additional emulator command-line options&#8217;, put this  &#8216;-scale 0.75&#8242; into the box.<br />
</span></li>
<li><span class="Apple-style-span" style="font-family:Tahoma;font-size:small;">In the command line, type </span></li>
</ul>
</ul>
<p style="padding-left:90px;">telnet localhost 5554<br />
window scale 0.75</p>
<p><strong><span style="font-family:Tahoma;font-size:small;">3. Emulator starts up slow.</span></strong></p>
<p><span style="font-family:Tahoma;font-size:small;">The boot time of Android takes up a lot of time. Emulator command-line option &#8216;-no-boot-anim&#8217; disables the boot animation. It can speed up the startup time for the emulator, not significantly but will help a little. Most importantly always keep the emulator open while developing can avoid the lengthy boot time. </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ktatsiu.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ktatsiu.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ktatsiu.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ktatsiu.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ktatsiu.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ktatsiu.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ktatsiu.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ktatsiu.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ktatsiu.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ktatsiu.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ktatsiu.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ktatsiu.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ktatsiu.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ktatsiu.wordpress.com/227/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ktatsiu.wordpress.com&amp;blog=13342367&amp;post=227&amp;subd=ktatsiu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ktatsiu.wordpress.com/2011/08/20/learning-android-common-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/52db1ad5b72e48f30e9dace25b08da44?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ktatsiu</media:title>
		</media:content>
	</item>
		<item>
		<title>Learning Objective-C Synthesized ivars</title>
		<link>http://ktatsiu.wordpress.com/2011/05/17/learning-objective-c-synthesized-ivars/</link>
		<comments>http://ktatsiu.wordpress.com/2011/05/17/learning-objective-c-synthesized-ivars/#comments</comments>
		<pubDate>Tue, 17 May 2011 19:43:29 +0000</pubDate>
		<dc:creator>ktatsiu</dc:creator>
				<category><![CDATA[Cocoa Programming]]></category>

		<guid isPermaLink="false">http://ktatsiu.wordpress.com/?p=205</guid>
		<description><![CDATA[I was puzzled initially when I looked at this piece of code generated from the project template for iPhone or iPad. @interface MyDelegate : NSObject { } @property (nonatomic, retain) IBOutlet UIWindow *window; @end How come there is no backing instance variable declared in the @interface block? The latest Objective-C Programming Language Guide (published 2010-12-08) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ktatsiu.wordpress.com&amp;blog=13342367&amp;post=205&amp;subd=ktatsiu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was puzzled initially when I looked at this piece of code generated from the project template for iPhone or iPad.</p>
<p><code><br />
@interface MyDelegate : NSObject  {</p>
<p>}<br />
@property (nonatomic, retain) IBOutlet UIWindow *window;<br />
@end<br />
</code></p>
<p>How come there is no backing instance variable declared in the @interface block?</p>
<p>The latest Objective-C Programming Language Guide (published 2010-12-08) from Apple provides the answer, though a bit convoluted.</p>
<p>There is actually two kinds of Objective-C runtime, one is the &#8216;old&#8217; or  &#8216;legacy&#8217; runtime, and the other is &#8216;modern&#8217; Objective-C runtime.</p>
<p>For the legacy runtimes, instance variables must already be declared in the @interface block of the current class. If an instance variable of the same name as the property exists, and if its type is compatible with the property’s type, it is used—otherwise, you get a compiler error.</p>
<p>For the modern runtimes, instance variables are synthesized as needed, if the instance variable is omitted in the declaration. If an instance variable of the same name already exists, it is used.</p>
<p>iPhone OS and 64-bit Intel use the &#8220;modern&#8221; Objective-C runtime, and other programs (32-bit programs on Mac OS X desktop) use the legacy version of the runtime.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ktatsiu.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ktatsiu.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ktatsiu.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ktatsiu.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ktatsiu.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ktatsiu.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ktatsiu.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ktatsiu.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ktatsiu.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ktatsiu.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ktatsiu.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ktatsiu.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ktatsiu.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ktatsiu.wordpress.com/205/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ktatsiu.wordpress.com&amp;blog=13342367&amp;post=205&amp;subd=ktatsiu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ktatsiu.wordpress.com/2011/05/17/learning-objective-c-synthesized-ivars/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/52db1ad5b72e48f30e9dace25b08da44?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ktatsiu</media:title>
		</media:content>
	</item>
	</channel>
</rss>
