<?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>DaVinC Coder</title>
	<atom:link href="http://davinccoder.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://davinccoder.wordpress.com</link>
	<description>if( [you developOnPlatform:@&#34;iOS&#34;] ) { NSLog(@&#34;DaVinC Welcomes you!&#34;); }</description>
	<lastBuildDate>Sun, 19 Feb 2012 06:31:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='davinccoder.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/f7eb9b6667c962e1db80bc069342e254?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>DaVinC Coder</title>
		<link>http://davinccoder.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://davinccoder.wordpress.com/osd.xml" title="DaVinC Coder" />
	<atom:link rel='hub' href='http://davinccoder.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Stop abusing App Delegate</title>
		<link>http://davinccoder.wordpress.com/2012/02/19/stop-abusing-app-delegate/</link>
		<comments>http://davinccoder.wordpress.com/2012/02/19/stop-abusing-app-delegate/#comments</comments>
		<pubDate>Sun, 19 Feb 2012 06:27:47 +0000</pubDate>
		<dc:creator>DaVinC</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[appDelegate]]></category>
		<category><![CDATA[class hierarchy]]></category>
		<category><![CDATA[class structure]]></category>
		<category><![CDATA[data access]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[singleton]]></category>

		<guid isPermaLink="false">http://davinccoder.wordpress.com/?p=285</guid>
		<description><![CDATA[Generally people misunderstand the usage of AppDelegate in iOS programming. It is not a singleton class which people use as a single point of contact for data access from whole class hierarchy. AppDelegate has a specific task that need to be done and it is to work with iOS notifications. If anywhere in your iOS [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=davinccoder.wordpress.com&amp;blog=12946441&amp;post=285&amp;subd=davinccoder&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Generally people misunderstand the usage of AppDelegate in iOS programming. It is not a singleton class which people use as a single point of contact for data access from whole class hierarchy. AppDelegate has a specific task that need to be done and it is to work with iOS notifications.</p>
<p>If anywhere in your iOS code you are writing,</p>
<pre>
[UIApplication sharedApplication].delegate…
</pre>
<p>Its the time to rethink your class design.</p>
<p>Matthijs Hollemans has written a nice article about this,<a href="http://www.hollance.com/2012/02/dont-abuse-the-app-delegate"> http://www.hollance.com/2012/02/dont-abuse-the-app-delegate</a>. I’ve been shouting this from ages, people please read this and STOP ABUSING APP DELEGATE!!</p>
<br />Filed under: <a href='http://davinccoder.wordpress.com/category/development/'>Development</a> Tagged: <a href='http://davinccoder.wordpress.com/tag/appdelegate/'>appDelegate</a>, <a href='http://davinccoder.wordpress.com/tag/class-hierarchy/'>class hierarchy</a>, <a href='http://davinccoder.wordpress.com/tag/class-structure/'>class structure</a>, <a href='http://davinccoder.wordpress.com/tag/data-access/'>data access</a>, <a href='http://davinccoder.wordpress.com/tag/ios/'>iOS</a>, <a href='http://davinccoder.wordpress.com/tag/singleton/'>singleton</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/davinccoder.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/davinccoder.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/davinccoder.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/davinccoder.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/davinccoder.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/davinccoder.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/davinccoder.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/davinccoder.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/davinccoder.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/davinccoder.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/davinccoder.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/davinccoder.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/davinccoder.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/davinccoder.wordpress.com/285/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=davinccoder.wordpress.com&amp;blog=12946441&amp;post=285&amp;subd=davinccoder&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://davinccoder.wordpress.com/2012/02/19/stop-abusing-app-delegate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dbdebfdea3fb580bf9402c202f1fbcc9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DaVinC</media:title>
		</media:content>
	</item>
		<item>
		<title>Asynchronous services for reading/processing remote/local data</title>
		<link>http://davinccoder.wordpress.com/2012/02/15/vcrequesthandler/</link>
		<comments>http://davinccoder.wordpress.com/2012/02/15/vcrequesthandler/#comments</comments>
		<pubDate>Wed, 15 Feb 2012 07:28:38 +0000</pubDate>
		<dc:creator>DaVinC</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[asynchronous]]></category>
		<category><![CDATA[davinc]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[NSURL]]></category>
		<category><![CDATA[NSURLConnection]]></category>
		<category><![CDATA[VCRequestHandler]]></category>

		<guid isPermaLink="false">http://davinccoder.wordpress.com/?p=277</guid>
		<description><![CDATA[A very lightweight library for processing different types of fetch response. After receiving every response request we need to process it depending on the type of the data, say text, image, xml, json etc. This is a generic library so we can add new custom processors for as many types of different types of responses [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=davinccoder.wordpress.com&amp;blog=12946441&amp;post=277&amp;subd=davinccoder&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A very lightweight library for processing different types of fetch response. After receiving every response request we need to process it depending on the type of the data, say text, image, xml, json etc. This is a generic library so we can add new custom processors for as many types of different types of responses we need.</p>
<p>You can also read local files using this handler asynchronous simple way!!</p>
<p>All you need to do is get started with predefined processors i.e. &#8216;VCResponseProcessor&#8217; and &#8216;VCImageResponseProcessor&#8217;.</p>
<h2>Usage</h2>
<p>Add &#8216;VCRequestHandler.h&#8217; to the header file, and the implementation class should follow &#8216;VCRequestDelegate&#8217; protocol, add respective data processor headers to the implementation file and call following method,</p>
<pre>
VCRequest *request = [VCRequestFactory requestWithObserver:self
                                                       URL:[NSURL URLWithString:@"http://www.google.com"]
                                                     cache:NSURLRequestReloadIgnoringLocalAndRemoteCacheData
                                         responseProcessor:[[[VCResponseProcessor alloc] init] autorelease]];
request.tag = 1;
[[VCRequestHandler sharedHandler] requestWithRequest:request];</pre>
<p>When removing a view or deallocating a delegate of request, Do not forget to set request delegate to nil.<br />
You can find project source at github &#8211; <a title="VCRequestHandler" href="https://github.com/davinc/VCRequestHandler" target="_blank">https://github.com/davinc/VCRequestHandler</a></p>
<br />Filed under: <a href='http://davinccoder.wordpress.com/category/development/'>Development</a> Tagged: <a href='http://davinccoder.wordpress.com/tag/asynchronous/'>asynchronous</a>, <a href='http://davinccoder.wordpress.com/tag/davinc/'>davinc</a>, <a href='http://davinccoder.wordpress.com/tag/github/'>github</a>, <a href='http://davinccoder.wordpress.com/tag/nsurl/'>NSURL</a>, <a href='http://davinccoder.wordpress.com/tag/nsurlconnection/'>NSURLConnection</a>, <a href='http://davinccoder.wordpress.com/tag/vcrequesthandler/'>VCRequestHandler</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/davinccoder.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/davinccoder.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/davinccoder.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/davinccoder.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/davinccoder.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/davinccoder.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/davinccoder.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/davinccoder.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/davinccoder.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/davinccoder.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/davinccoder.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/davinccoder.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/davinccoder.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/davinccoder.wordpress.com/277/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=davinccoder.wordpress.com&amp;blog=12946441&amp;post=277&amp;subd=davinccoder&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://davinccoder.wordpress.com/2012/02/15/vcrequesthandler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dbdebfdea3fb580bf9402c202f1fbcc9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DaVinC</media:title>
		</media:content>
	</item>
		<item>
		<title>Apple iTV, what I expect</title>
		<link>http://davinccoder.wordpress.com/2012/01/09/apple-itv-what-i-expect/</link>
		<comments>http://davinccoder.wordpress.com/2012/01/09/apple-itv-what-i-expect/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 18:16:11 +0000</pubDate>
		<dc:creator>DaVinC</dc:creator>
				<category><![CDATA[Ideas]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[itv]]></category>

		<guid isPermaLink="false">https://davinccoder.wordpress.com/?p=275</guid>
		<description><![CDATA[I think apple iTV will have channel grid instead of apps grid, you can buy subscription just like buying apps from AppStore. You can group channels together in folders, change channel using gestures ( I don&#8217;t think it will be touchscreen ) and yes it will be portable&#8230; Or maybe just next iPad will have [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=davinccoder.wordpress.com&amp;blog=12946441&amp;post=275&amp;subd=davinccoder&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I think apple iTV will have channel grid instead of apps grid, you can buy subscription just like buying apps from AppStore. You can group channels together in folders, change channel using gestures ( I don&#8217;t think it will be touchscreen ) and yes it will be portable&#8230; Or maybe just next iPad will have these features integrated??</p>
<br />Filed under: <a href='http://davinccoder.wordpress.com/category/ideas/'>Ideas</a> Tagged: <a href='http://davinccoder.wordpress.com/tag/apple/'>apple</a>, <a href='http://davinccoder.wordpress.com/tag/itv/'>itv</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/davinccoder.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/davinccoder.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/davinccoder.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/davinccoder.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/davinccoder.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/davinccoder.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/davinccoder.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/davinccoder.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/davinccoder.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/davinccoder.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/davinccoder.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/davinccoder.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/davinccoder.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/davinccoder.wordpress.com/275/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=davinccoder.wordpress.com&amp;blog=12946441&amp;post=275&amp;subd=davinccoder&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://davinccoder.wordpress.com/2012/01/09/apple-itv-what-i-expect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dbdebfdea3fb580bf9402c202f1fbcc9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DaVinC</media:title>
		</media:content>
	</item>
		<item>
		<title>View from the window&#8230;</title>
		<link>http://davinccoder.wordpress.com/2011/11/10/view-from-the-window/</link>
		<comments>http://davinccoder.wordpress.com/2011/11/10/view-from-the-window/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 12:07:08 +0000</pubDate>
		<dc:creator>DaVinC</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://davinccoder.wordpress.com/?p=271</guid>
		<description><![CDATA[Filed under: Other<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=davinccoder.wordpress.com&amp;blog=12946441&amp;post=271&amp;subd=davinccoder&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://davinccoder.files.wordpress.com/2011/11/img_0194.jpg"><img class="aligncenter size-full wp-image-272" title="IMG_0194" src="http://davinccoder.files.wordpress.com/2011/11/img_0194.jpg?w=630&#038;h=472" alt="" width="630" height="472" /></a></p>
<br />Filed under: <a href='http://davinccoder.wordpress.com/category/other/'>Other</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/davinccoder.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/davinccoder.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/davinccoder.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/davinccoder.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/davinccoder.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/davinccoder.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/davinccoder.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/davinccoder.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/davinccoder.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/davinccoder.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/davinccoder.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/davinccoder.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/davinccoder.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/davinccoder.wordpress.com/271/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=davinccoder.wordpress.com&amp;blog=12946441&amp;post=271&amp;subd=davinccoder&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://davinccoder.wordpress.com/2011/11/10/view-from-the-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dbdebfdea3fb580bf9402c202f1fbcc9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DaVinC</media:title>
		</media:content>

		<media:content url="http://davinccoder.files.wordpress.com/2011/11/img_0194.jpg" medium="image">
			<media:title type="html">IMG_0194</media:title>
		</media:content>
	</item>
		<item>
		<title>I got my copy of Steve’s Biography</title>
		<link>http://davinccoder.wordpress.com/2011/10/27/steve-bio/</link>
		<comments>http://davinccoder.wordpress.com/2011/10/27/steve-bio/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 14:45:11 +0000</pubDate>
		<dc:creator>DaVinC</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[steve jobs]]></category>

		<guid isPermaLink="false">http://davinccoder.wordpress.com/?p=268</guid>
		<description><![CDATA[After a long waiting period of 3 days I finally got my hands on Steve’s Biography… This is just for collection purpose… I have anyways read most about him already! Filed under: Other Tagged: steve jobs<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=davinccoder.wordpress.com&amp;blog=12946441&amp;post=268&amp;subd=davinccoder&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After a long waiting period of 3 days I finally got my hands on Steve’s Biography…</p>
<p><a href="http://davinccoder.files.wordpress.com/2011/10/acwovlnciaex6tu.jpg"><img class="aligncenter size-full wp-image-269" title="Steve Jobs by Walter Isaacson" src="http://davinccoder.files.wordpress.com/2011/10/acwovlnciaex6tu.jpg?w=630" alt="Steve Jobs by Walter Isaacson"   /></a>This is just for collection purpose… I have anyways read most about him already!</p>
<br />Filed under: <a href='http://davinccoder.wordpress.com/category/other/'>Other</a> Tagged: <a href='http://davinccoder.wordpress.com/tag/steve-jobs/'>steve jobs</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/davinccoder.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/davinccoder.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/davinccoder.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/davinccoder.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/davinccoder.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/davinccoder.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/davinccoder.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/davinccoder.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/davinccoder.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/davinccoder.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/davinccoder.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/davinccoder.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/davinccoder.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/davinccoder.wordpress.com/268/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=davinccoder.wordpress.com&amp;blog=12946441&amp;post=268&amp;subd=davinccoder&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://davinccoder.wordpress.com/2011/10/27/steve-bio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dbdebfdea3fb580bf9402c202f1fbcc9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DaVinC</media:title>
		</media:content>

		<media:content url="http://davinccoder.files.wordpress.com/2011/10/acwovlnciaex6tu.jpg" medium="image">
			<media:title type="html">Steve Jobs by Walter Isaacson</media:title>
		</media:content>
	</item>
		<item>
		<title>Words that changed my life… Stay hungry, Stay foolish.</title>
		<link>http://davinccoder.wordpress.com/2011/10/06/words-that-changed-my-life%e2%80%a6-stay-hungry-stay-foolish/</link>
		<comments>http://davinccoder.wordpress.com/2011/10/06/words-that-changed-my-life%e2%80%a6-stay-hungry-stay-foolish/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 02:58:13 +0000</pubDate>
		<dc:creator>DaVinC</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[stanford]]></category>
		<category><![CDATA[Stay foolish]]></category>
		<category><![CDATA[Stay hungry]]></category>
		<category><![CDATA[steve jobs]]></category>

		<guid isPermaLink="false">http://davinccoder.wordpress.com/?p=261</guid>
		<description><![CDATA[This is the text of the commencement address by Steve Jobs, CEO of Apple Computer and of Pixar Animation Studios, delivered on June 12, 2005. I am honored to be with you today at your commencement from one of the finest universities in the world. I never graduated from college. Truth to be told, this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=davinccoder.wordpress.com&amp;blog=12946441&amp;post=261&amp;subd=davinccoder&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="text-align:center;"><strong>This is the text of the commencement address by Steve Jobs, CEO of Apple Computer and of Pixar Animation Studios, delivered on June 12, 2005.</strong></div>
<div style="text-align:left;">
<p>I am honored to be with you today at your commencement from one of the finest universities in the world. I never graduated from college. Truth to be told, this is the closest I’ve ever gotten to college graduation. Today I want to tell you three stories of my life. That’s it. No big deal, just three stories.</p>
<p><strong>The first story is about connecting the dots</strong><br />
I dropped out of Reed College after the first six months, but then stayed around as a drop-in for another 18 months or so before I really quit. So why did I drop out?<br />
It started before I was born. My biological mother was young, unwed college graduate student, and she decided to put me up for adoption. She felt very strongly that I should be adopted by college graduates, so everything was all set for me to be adopted at birth by a lawyer and his wife. Except that when I popped out they decided that they wanted a girl. So my parents, who were on a waiting list, got a call in the middle of the night asking: “We have an unexpected baby boy; do you want him?” They said: “of course.” My biological mother later found that my mother had never graduated from college and that my father had never graduate from high school. She refused to sign the final adoption papers. She only relented few months later when my parents promised that I would someday go to college. And 17 years later I did go to college. But I naively chose a college that was almost as expensive as Stanford, and all of my working-class parents’ savings were being spent on my college tuitions. After six months, I couldn’t see the value in it. I had no idea what I wanted to do with my life and no idea how college was going to help me figure it out. And here I was spending all of the money my parents had saved their entire life. So I decided to drop out and trust that it would all work out OK. It was pretty scary that time, but looking back it was one of the best decisions I ever made. The minute I dropped out I could stop talking the required classes that didn’t interest me, and begin dropping in on the once that looked interesting. It wasn’t all romantic. I didn’t have a dorm room, so I slept on the floor in friend’s rooms, I returned coke bottle for 5€ deposits to buy food with, and I would walk the 7 miles across town every Sunday night to get one good meal a week at the hare Krishna temple. I loved it. And much of what I stumbled into by following my curiosity and intuition turned out to be priceless later on. Let me give you one example:<br />
Reed College at that time offered perhaps the best calligraphy instruction in the country. Throughout the campus every poster, every label on every drawer, was beautifully hand calligraphed. Because I had dropped out and didn’t have to take the normal classes, I decided to take a calligraphy class to learn how to do this. I learned about serif and san serif typefaces, about varying the amount of space between different letter combinations, about what makes great typography great. It was beautiful, historical, artistically subtle in a way that science can’t capture, and I found it fascinating.<br />
None of this had even a hope of any practical application in my life. But 10 years later, when we designing the first Macintosh computer, it all came back to me. And we designed it all into the Mac. It was the first computer with beautiful typography. If I had never dropped in on that single course in college, the Mac would have never had multiple typefaces and proportionally spaced fonts. And since windows just copied Mac, it’s likely that no personal computer would have them. If I had never dropped out, I would have never dropped in on this calligraphy class, and personal computer might not have the wonderful typography that they do. Of course it was impossible to connect the dots looking forward when I was in college. But it was very, very clear looking backwards 10 years later.<br />
Again, you can’t connect the dots looking forward; you can only connect them looking backwards. So you have to trust that the dots will somehow connect in your future. You have to trust in something- your gut, destiny, life, karma, whatever. This approach has never let me down, and it has made all the difference in my life.</p>
<p><strong>My second story is about love and loss</strong><br />
I was lucky-I found what I loved to do early in life. Woz and I started Apple in my parent’s garage when I was 20. We worked hard, and in 10 years Apple had grown from just two of us in garage into a $2 billion company with over 4,000 employees. We had just released our finest creation-the Macintosh-a year earlier, and I had just turned 30. And then I got fired. How can you get fired from company you started? Well, as Apple grew we hired someone who I thought was very talented to run company with me, and for the first year or so things went well. But then our vision of the future began to diverge and eventually we had falling out. When we did, our Board of Directors sided with him. So at 30 I was out. And very publicly out. What had been the focus of my entire adult life was gone, and it was devastating.<br />
I really didn’t know what to do for a few months. I felt that I had let the previous generation of entrepreneurs down-that I had dropped the baton as it was being passed to me. I met with David Packard and Bob Noyce and tried to apologize for screwing up so badly. I was a very public failure, and I even thought about running away from the valley. But something slowly began to down on me-I still loved what I did. The turn of events at Apple had not changed that one bit. I had been rejected, but I was still in love. And I decided to start over.<br />
I didn’t see it then, but it turned out that getting fired from Apple was the best thing that could have ever happened to me. The heaviness of being successful was replaced by the lightness of being a beginner again, less sure about everything. It freed me to enter one of the most creative periods of my life.<br />
During the next 5 years, I started a company named NeXT, another company named Pixar, fell in love with an amazing woman who would become my wife. Pixar went on to create the world’s first computer animated feature film, Toy Story, and is now the most successful animation studio in the world. In a remarkable turn of events, Apple bought NeXT, I returned to Apple, and the technology we developed at NeXT is at the heart of Apple’s current renaissance. And Laurene and I have a wonderful family together.<br />
I’m pretty sure none of this would have happened if I hadn’t been fired from Apple. It awful tasted medicine, but I guess the patient needed it. Sometimes life hits you in the head with a brick. Don’t lose faith. I’m convinced that the only thing that kept me going was that I loved what I did. You’ve got to find what you love. And that is true for your work as it is your lovers. Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do. If you haven’t found it yet, keep looking. Don’t settle. As with all matters of the heart. You will know when you find it. And, like any great relationship, it just gets better and better as the years roll on. So keep looking until you find it. Don’t settle.</p>
<p><strong>My third story is about death</strong><br />
When I was 17. I read a quote that went something like: “if you live each day as if it was your last, someday you’ll most certainly be right.” It made an impression on me, and since then, for the past 33 years. I have looked in the mirror every morning and asked myself: “if today were last day of my life, would I want to do what I am about to do today?” and whenever the answer has been “No” for too many days in a row. I know I need to change something.<br />
Remembering that ill be dead soon is the most important tool I’ve ever encountered to help me make the big choices in life. Because almost everything all external expectations, all pride, all fear of embarrassment or failure-these things just fall away in the face of death, leaving only what is truly important. Remembering you are going to die is the best way I know to avoid the trap of thinking you have something to lose. You are already naked. There is no reason not to follow your heart.<br />
About a year ago I was diagnosed with cancer. I had scan in the 7.30 in the morning. And it clearly showed a tumor on my pancreas. I didn’t even know what a pancreas was. The doctors told me this was almost certainly a type of cancer that is incurable, and I should expect to live no longer than three to six months. My doctor advised me to go home and get my affaires in order, which is doctor’s code for prepare to die. It means try to tell your kids everything you thought you’d have next 10 years to tell them in just a few months. It means to make sure everything is buttoned up so that it will be as easy as possible for your family. It means to say your goodbyes.<br />
I lived with that diagnosis all day. Later that evening I had biopsy. Where they stuck an endoscope down my throat, through my stomach and into my intestine, put a needle into my pancreas and got few cells from the tumor. I was sedated, but my wife, who was there, told me that when they viewed cells under a microscope the doctor started crying because it turned out to be a very curable with surgery. I had the surgery and I’m fine now.<br />
This was closest I’ve been to facing death, and I hope it’s the closest I get for few more decades. Having lived through it, I can now say this to you with a bit more certainly than when death was a useful but purely intellectual concept.<br />
No one wants to die. Even people who want to go to heaven don’t want to die to get there. And yet death is the destination we all share. No one has ever escaped it. And that is as it should be, because Death is very likely the single best invention of life. It is life’s change agent. It clears out the old to make way for new. Right now the new is you, but someday not too long from now, you will gradually become old and be cleared away. Sorry to be so dramatic, but it is quite true.<br />
Your time is limited, so don’t waste it living someone else’s life. Don’t be trapped by dogma-which is living with the results of other people’s thinking. Don’t let the noise of other’s opinions down out your own inner voice. And most important, have the courage to follow your heart and intuitions. They somehow already know what you truly want to become. Everything else is secondary.<br />
When I was young, there was an amazing publication called The Whole Earth Catalog, which was one of the bibles of my generation. It was created by a fellow named Stevert Brand not far from here in Menlo Park, and brought it to life with his poetic touch. This was in the late 1960s, before personal computers and desktop publishing, so it was all made with typewriters, scissors, and Polaroid cameras. It was sort of like Google in paperback form, 35 years before Google came along: it was idealistic, and overwhelming with neat tools and great notions.<br />
Stewart and his team put out several issues of The Whole Earth Catalog, and then when it had run its course, they put out final issue. It was the mid 1970s, and I was your age. On the back cover of their final issue was a photograph of an early morning country road, the kind you might find yourself hitchhiking on if you were so adventurous. Because it were the words: “Stay hungry, Stay foolish.” It was their farewell message as they signed off. And I have always wished that for myself. And now, as you graduate to begin anew, I wish that for you.</p>
</div>
<div style="text-align:center;"><strong>Stay hungry, Stay foolish.</strong></div>
<div>Thank you all very much.</div>
<div>Thank you Steve.</div>
<br />Filed under: <a href='http://davinccoder.wordpress.com/category/other/'>Other</a> Tagged: <a href='http://davinccoder.wordpress.com/tag/apple/'>apple</a>, <a href='http://davinccoder.wordpress.com/tag/stanford/'>stanford</a>, <a href='http://davinccoder.wordpress.com/tag/stay-foolish/'>Stay foolish</a>, <a href='http://davinccoder.wordpress.com/tag/stay-hungry/'>Stay hungry</a>, <a href='http://davinccoder.wordpress.com/tag/steve-jobs/'>steve jobs</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/davinccoder.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/davinccoder.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/davinccoder.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/davinccoder.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/davinccoder.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/davinccoder.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/davinccoder.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/davinccoder.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/davinccoder.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/davinccoder.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/davinccoder.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/davinccoder.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/davinccoder.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/davinccoder.wordpress.com/261/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=davinccoder.wordpress.com&amp;blog=12946441&amp;post=261&amp;subd=davinccoder&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://davinccoder.wordpress.com/2011/10/06/words-that-changed-my-life%e2%80%a6-stay-hungry-stay-foolish/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dbdebfdea3fb580bf9402c202f1fbcc9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DaVinC</media:title>
		</media:content>
	</item>
		<item>
		<title>Bug in music app of iOS?</title>
		<link>http://davinccoder.wordpress.com/2011/10/01/bug-in-music-app-of-ios/</link>
		<comments>http://davinccoder.wordpress.com/2011/10/01/bug-in-music-app-of-ios/#comments</comments>
		<pubDate>Sat, 01 Oct 2011 15:40:32 +0000</pubDate>
		<dc:creator>DaVinC</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[iOS5]]></category>
		<category><![CDATA[iPod]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[screenshot]]></category>

		<guid isPermaLink="false">http://davinccoder.wordpress.com/?p=256</guid>
		<description><![CDATA[These are two screenshot from iPod music player, when it starts playing music at the launch, you can see a minute gradient below progress bar and above lyrics. When you come to the same screen after navigating to other screen… bamm, gradient is gone!!! Really not expected from Apple.  =&#62; Filed under: Other Tagged: bug, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=davinccoder.wordpress.com&amp;blog=12946441&amp;post=256&amp;subd=davinccoder&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>These are two screenshot from iPod music player, when it starts playing music at the launch, you can see a minute gradient below progress bar and above lyrics. When you come to the same screen after navigating to other screen… bamm, gradient is gone!!! Really not expected from Apple.</p>
<p><a href="http://davinccoder.files.wordpress.com/2011/10/img_0037.jpg"><img class="alignleft size-full wp-image-257" title="IMG_0037" src="http://davinccoder.files.wordpress.com/2011/10/img_0037.jpg?w=630" alt="screenshot with gradient"   /></a> =&gt;<a href="http://davinccoder.files.wordpress.com/2011/10/img_0038.jpg"><img class="alignright size-full wp-image-258" title="IMG_0038" src="http://davinccoder.files.wordpress.com/2011/10/img_0038.jpg?w=630" alt="screenshot without gradient"   /></a></p>
<br />Filed under: <a href='http://davinccoder.wordpress.com/category/other/'>Other</a> Tagged: <a href='http://davinccoder.wordpress.com/tag/bug/'>bug</a>, <a href='http://davinccoder.wordpress.com/tag/ios5/'>iOS5</a>, <a href='http://davinccoder.wordpress.com/tag/ipod/'>iPod</a>, <a href='http://davinccoder.wordpress.com/tag/music/'>Music</a>, <a href='http://davinccoder.wordpress.com/tag/screenshot/'>screenshot</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/davinccoder.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/davinccoder.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/davinccoder.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/davinccoder.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/davinccoder.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/davinccoder.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/davinccoder.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/davinccoder.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/davinccoder.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/davinccoder.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/davinccoder.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/davinccoder.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/davinccoder.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/davinccoder.wordpress.com/256/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=davinccoder.wordpress.com&amp;blog=12946441&amp;post=256&amp;subd=davinccoder&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://davinccoder.wordpress.com/2011/10/01/bug-in-music-app-of-ios/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dbdebfdea3fb580bf9402c202f1fbcc9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DaVinC</media:title>
		</media:content>

		<media:content url="http://davinccoder.files.wordpress.com/2011/10/img_0037.jpg" medium="image">
			<media:title type="html">IMG_0037</media:title>
		</media:content>

		<media:content url="http://davinccoder.files.wordpress.com/2011/10/img_0038.jpg" medium="image">
			<media:title type="html">IMG_0038</media:title>
		</media:content>
	</item>
		<item>
		<title>Improve performance while using shadow/glow using layers</title>
		<link>http://davinccoder.wordpress.com/2011/09/27/improve-performance-while-using-shadowglow-using-layers/</link>
		<comments>http://davinccoder.wordpress.com/2011/09/27/improve-performance-while-using-shadowglow-using-layers/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 13:28:54 +0000</pubDate>
		<dc:creator>DaVinC</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[CALayer]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[layer]]></category>
		<category><![CDATA[objc]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[shadow]]></category>
		<category><![CDATA[shouldRasterize]]></category>
		<category><![CDATA[UIView]]></category>

		<guid isPermaLink="false">http://davinccoder.wordpress.com/?p=243</guid>
		<description><![CDATA[Whenever using layers to add shadow, add rounded corners, show border or anything, just remember to set &#8220;shouldRasterize&#8221; property of a layer object to YES, default value is NO. &#160;self.layer.shouldRasterize = YES; This is what header file says about &#8220;shouldRasterize&#8221; property. When true, the layer is rendered as a bitmap in its local coordinate space [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=davinccoder.wordpress.com&amp;blog=12946441&amp;post=243&amp;subd=davinccoder&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Whenever using layers to add shadow, add rounded corners, show border or anything, just remember to set &#8220;shouldRasterize&#8221; property of a layer object to YES, default value is NO.</p>
<p><code>
<div class="objc" style="font-family:monospace;color:#006;border:1px solid #d0d0d0;background-color:#f0f0f0;">&nbsp;self.layer.shouldRasterize <span style="color:#002200;">=</span> <span style="color:#a61390;">YES</span>;</div>
<p></code></p>
<p>This is what header file says about &#8220;shouldRasterize&#8221; property.</p>
<blockquote><p>When true, the layer is rendered as a bitmap in its local coordinate space (&#8220;rasterized&#8221;), then the bitmap is composited into the destination (with the minificationFilter and magnificationFilter properties of the layer applied if the bitmap needs scaling). Rasterization occurs after the layer&#8217;s filters and shadow effects are applied, but before the opacity modulation. As an implementation detail the rendering engine may attempt to cache and reuse the bitmap from one frame to the next. (Whether it does or not will have no affect on the rendered output.)</p></blockquote>
<br />Filed under: <a href='http://davinccoder.wordpress.com/category/development/'>Development</a> Tagged: <a href='http://davinccoder.wordpress.com/tag/calayer/'>CALayer</a>, <a href='http://davinccoder.wordpress.com/tag/ios/'>iOS</a>, <a href='http://davinccoder.wordpress.com/tag/layer/'>layer</a>, <a href='http://davinccoder.wordpress.com/tag/objc/'>objc</a>, <a href='http://davinccoder.wordpress.com/tag/performance/'>performance</a>, <a href='http://davinccoder.wordpress.com/tag/shadow/'>shadow</a>, <a href='http://davinccoder.wordpress.com/tag/shouldrasterize/'>shouldRasterize</a>, <a href='http://davinccoder.wordpress.com/tag/uiview/'>UIView</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/davinccoder.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/davinccoder.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/davinccoder.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/davinccoder.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/davinccoder.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/davinccoder.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/davinccoder.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/davinccoder.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/davinccoder.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/davinccoder.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/davinccoder.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/davinccoder.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/davinccoder.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/davinccoder.wordpress.com/243/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=davinccoder.wordpress.com&amp;blog=12946441&amp;post=243&amp;subd=davinccoder&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://davinccoder.wordpress.com/2011/09/27/improve-performance-while-using-shadowglow-using-layers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dbdebfdea3fb580bf9402c202f1fbcc9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DaVinC</media:title>
		</media:content>
	</item>
		<item>
		<title>resourceURL equivalent before iOS 4</title>
		<link>http://davinccoder.wordpress.com/2011/08/09/resourceurl-equivalent-before-ios-4/</link>
		<comments>http://davinccoder.wordpress.com/2011/08/09/resourceurl-equivalent-before-ios-4/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 08:06:06 +0000</pubDate>
		<dc:creator>DaVinC</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[iOS 3.2]]></category>
		<category><![CDATA[NSBundle]]></category>
		<category><![CDATA[resourcePath]]></category>
		<category><![CDATA[resourceURL]]></category>

		<guid isPermaLink="false">http://davinccoder.wordpress.com/?p=239</guid>
		<description><![CDATA[[[NSBundle mainBundle] resourceURL] is same as [NSURL fileURLWithPath:[[NSBundle mainBundle] resourcePath]] I need to use it a lot while making local html pages to show in UIWebView. Just to remember. :-) Filed under: Development Tagged: iOS 3.2, NSBundle, resourcePath, resourceURL<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=davinccoder.wordpress.com&amp;blog=12946441&amp;post=239&amp;subd=davinccoder&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="objc" style="font-family:monospace;color:#006;border:1px solid #d0d0d0;background-color:#f0f0f0;"><span style="color:#002200;">[</span><span style="color:#002200;">[</span><a style="color:#000060;" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSBundle_Class/"><span style="color:#400080;">NSBundle</span></a> mainBundle<span style="color:#002200;">]</span> resourceURL<span style="color:#002200;">]</span></div>
<p>is same as</p>
<div class="objc" style="font-family:monospace;color:#006;border:1px solid #d0d0d0;background-color:#f0f0f0;"><span style="color:#002200;">[</span><a style="color:#000060;" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/"><span style="color:#400080;">NSURL</span></a> fileURLWithPath<span style="color:#002200;">:</span><span style="color:#002200;">[</span><span style="color:#002200;">[</span><a style="color:#000060;" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSBundle_Class/"><span style="color:#400080;">NSBundle</span></a> mainBundle<span style="color:#002200;">]</span> resourcePath<span style="color:#002200;">]</span><span style="color:#002200;">]</span></div>
<p>I need to use it a lot while making local html pages to show in UIWebView. Just to remember. :-)</p>
<br />Filed under: <a href='http://davinccoder.wordpress.com/category/development/'>Development</a> Tagged: <a href='http://davinccoder.wordpress.com/tag/ios-3-2/'>iOS 3.2</a>, <a href='http://davinccoder.wordpress.com/tag/nsbundle/'>NSBundle</a>, <a href='http://davinccoder.wordpress.com/tag/resourcepath/'>resourcePath</a>, <a href='http://davinccoder.wordpress.com/tag/resourceurl/'>resourceURL</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/davinccoder.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/davinccoder.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/davinccoder.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/davinccoder.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/davinccoder.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/davinccoder.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/davinccoder.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/davinccoder.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/davinccoder.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/davinccoder.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/davinccoder.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/davinccoder.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/davinccoder.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/davinccoder.wordpress.com/239/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=davinccoder.wordpress.com&amp;blog=12946441&amp;post=239&amp;subd=davinccoder&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://davinccoder.wordpress.com/2011/08/09/resourceurl-equivalent-before-ios-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dbdebfdea3fb580bf9402c202f1fbcc9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DaVinC</media:title>
		</media:content>
	</item>
		<item>
		<title>Call iOS method for HTML button click</title>
		<link>http://davinccoder.wordpress.com/2011/06/28/call-ios-method-for-html-button-click/</link>
		<comments>http://davinccoder.wordpress.com/2011/06/28/call-ios-method-for-html-button-click/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 10:01:47 +0000</pubDate>
		<dc:creator>DaVinC</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ideas]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://davinccoder.wordpress.com/?p=232</guid>
		<description><![CDATA[We can use custom urls for this purpose, Lets say we want to add a button1 into HTML page and we want to call &#8220;-didTapButton1&#8243; when user taps on button1. We should have following code into HTML page that we are loading into UIWebView, &#60;a href=&#8221;didTap://button1&#8243;&#62;&#60;img src=&#8221;button1.jpg&#8221; /&#62;&#60;/a&#62; Now next what we need to do [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=davinccoder.wordpress.com&amp;blog=12946441&amp;post=232&amp;subd=davinccoder&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We can use custom urls for this purpose, Lets say we want to add a button1 into HTML page and we want to call &#8220;-didTapButton1&#8243; when user taps on button1.</p>
<p>We should have following code into HTML page that we are loading into UIWebView,</p>
<div class="html4strict" style="font-family:monospace;color:#006;border:1px solid #d0d0d0;background-color:#f0f0f0;">&lt;a href=&#8221;didTap://button1&#8243;&gt;&lt;img src=&#8221;button1.jpg&#8221; /&gt;&lt;/a&gt;</div>
<p>Now next what we need to do is add methods from UIWebViewDelegate (To call this method the method owner needs to be the delegate for the UIWebView used),</p>
<div class="objc" style="font-family:monospace;color:#006;border:1px solid #d0d0d0;background-color:#f0f0f0;"><span style="color:#002200;">-</span> <span style="color:#002200;">(</span><span style="color:#a61390;">BOOL</span><span style="color:#002200;">)</span>webView<span style="color:#002200;">:</span><span style="color:#002200;">(</span>UIWebView<span style="color:#002200;">*</span><span style="color:#002200;">)</span>aWebView shouldStartLoadWithRequest<span style="color:#002200;">:</span><span style="color:#002200;">(</span><a style="color:#000060;" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURLRequest_Class/"><span style="color:#400080;">NSURLRequest</span></a><span style="color:#002200;">*</span><span style="color:#002200;">)</span>request navigationType<span style="color:#002200;">:</span><span style="color:#002200;">(</span>UIWebViewNavigationType<span style="color:#002200;">)</span>navigationType<br />
<span style="color:#002200;">{</span><br />
<span style="color:#400080;">    <a style="color:#000060;" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/">NSString</a></span> <span style="color:#002200;">*</span>absoluteUrl <span style="color:#002200;">=</span> <span style="color:#002200;">[</span><span style="color:#002200;">[</span>request URL<span style="color:#002200;">]</span> absoluteString<span style="color:#002200;">]</span>;<br />
<span style="color:#a61390;">    if</span> <span style="color:#002200;">(</span><span style="color:#002200;">[</span>absoluteUrl isEqualToString<span style="color:#002200;">:</span><span style="color:#bf1d1a;">@</span><span style="color:#bf1d1a;">"didTap://button1"</span><span style="color:#002200;">]</span><span style="color:#002200;">)</span> <span style="color:#002200;">{</span><br />
<span style="color:#002200;">        [</span>self didTapButton1<span style="color:#002200;">]</span>;<br />
<span style="color:#a61390;">        return</span> <span style="color:#a61390;">NO</span>;<br />
<span style="color:#002200;">    }</span><br />
<span style="color:#a61390;">    return</span> <span style="color:#a61390;">YES</span>;<br />
<span style="color:#002200;">}</span></div>
<p>And it is done!!!</p>
<br />Filed under: <a href='http://davinccoder.wordpress.com/category/development/'>Development</a>, <a href='http://davinccoder.wordpress.com/category/ideas/'>Ideas</a> Tagged: <a href='http://davinccoder.wordpress.com/tag/button/'>button</a>, <a href='http://davinccoder.wordpress.com/tag/coding/'>coding</a>, <a href='http://davinccoder.wordpress.com/tag/html/'>HTML</a>, <a href='http://davinccoder.wordpress.com/tag/ios/'>iOS</a>, <a href='http://davinccoder.wordpress.com/tag/iphone/'>iphone</a>, <a href='http://davinccoder.wordpress.com/tag/objective-c/'>Objective-C</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/davinccoder.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/davinccoder.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/davinccoder.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/davinccoder.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/davinccoder.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/davinccoder.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/davinccoder.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/davinccoder.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/davinccoder.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/davinccoder.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/davinccoder.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/davinccoder.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/davinccoder.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/davinccoder.wordpress.com/232/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=davinccoder.wordpress.com&amp;blog=12946441&amp;post=232&amp;subd=davinccoder&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://davinccoder.wordpress.com/2011/06/28/call-ios-method-for-html-button-click/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dbdebfdea3fb580bf9402c202f1fbcc9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DaVinC</media:title>
		</media:content>
	</item>
	</channel>
</rss>
