<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Navopedia!</title>
	
	<link>http://blog.navisidhu.com</link>
	<description>My tiny space on the web!</description>
	<lastBuildDate>Thu, 04 Mar 2010 06:39:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/TheNavopedia" /><feedburner:info uri="thenavopedia" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Simple Cocoa Drawing!</title>
		<link>http://feedproxy.google.com/~r/TheNavopedia/~3/h2n-bHqwXgs/</link>
		<comments>http://blog.navisidhu.com/172-simple-cocoa-drawing/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 06:24:23 +0000</pubDate>
		<dc:creator>Navi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[arrow head]]></category>
		<category><![CDATA[arrow points]]></category>
		<category><![CDATA[import interface]]></category>
		<category><![CDATA[NSColor]]></category>
		<category><![CDATA[NSPoint]]></category>
		<category><![CDATA[origin]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[setup default]]></category>
		<category><![CDATA[shadow]]></category>

		<guid isPermaLink="false">http://blog.navisidhu.com/?p=172</guid>
		<description><![CDATA[Today I was tinkering with Cocoa, and drew a simple rectangle then added a small arrow head to it.

And here&#8217;s the code :

#import &#60;cocoa /Cocoa.h&#62;
@interface SimpleCustomView : NSView &#123;
&#125;
@end
&#60;/cocoa&#62;


#import &#34;SimpleCustomView.h&#34;
&#160;
@implementation SimpleCustomView
&#160;
/* Method to create a shadow for our drawing */
-&#40;NSShadow *&#41;ourShadow &#123;
	NSShadow *shadow = &#91;&#91;NSShadow alloc&#93; init&#93;;
	&#91;shadow setShadowColor: &#91;NSColor colorWithCalibratedWhite:0.660 alpha:1.000&#93;&#93;;
	&#91;shadow setShadowBlurRadius: 3&#93;;
	&#91;shadow setShadowOffset: NSMakeSize&#40; [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was tinkering with Cocoa, and drew a simple rectangle then added a small arrow head to it.</p>
<p><div id="attachment_171" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.navisidhu.com/wp-content/uploads/2009/11/drawing.png"><img src="http://blog.navisidhu.com/wp-content/uploads/2009/11/drawing-300x208.png" alt="Cocoa Simple Drawing!" title="Drawing" width="300" height="208" class="size-medium wp-image-171" /></a><p class="wp-caption-text">Cocoa Simple Drawing!</p></div><br />
<span id="more-172"></span><br />
And here&#8217;s the code :</p>

<div class="wp_codebox"><table><tr id="p1723"><td class="code" id="p172code3"><pre class="objc" style="font-family:monospace;"><span style="color: #6e371a;">#import &lt;cocoa /Cocoa.h&gt;</span>
<span style="color: #a61390;">@interface</span> SimpleCustomView <span style="color: #002200;">:</span> <a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/"><span style="color: #400080;">NSView</span></a> <span style="color: #002200;">&#123;</span>
<span style="color: #002200;">&#125;</span>
<span style="color: #a61390;">@end</span>
&lt;<span style="color: #002200;">/</span>cocoa&gt;</pre></td></tr></table></div>


<div class="wp_codebox"><table><tr id="p1724"><td class="code" id="p172code4"><pre class="objc" style="font-family:monospace;"><span style="color: #6e371a;">#import &quot;SimpleCustomView.h&quot;</span>
&nbsp;
<span style="color: #a61390;">@implementation</span> SimpleCustomView
&nbsp;
<span style="color: #11740a; font-style: italic;">/* Method to create a shadow for our drawing */</span>
<span style="color: #002200;">-</span><span style="color: #002200;">&#40;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSShadow_Class/"><span style="color: #400080;">NSShadow</span></a> <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>ourShadow <span style="color: #002200;">&#123;</span>
	<a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSShadow_Class/"><span style="color: #400080;">NSShadow</span></a> <span style="color: #002200;">*</span>shadow <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSShadow_Class/"><span style="color: #400080;">NSShadow</span></a> alloc<span style="color: #002200;">&#93;</span> init<span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>shadow setShadowColor<span style="color: #002200;">:</span> <span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/"><span style="color: #400080;">NSColor</span></a> colorWithCalibratedWhite<span style="color: #002200;">:</span><span style="color: #2400d9;">0.660</span> alpha<span style="color: #002200;">:</span><span style="color: #2400d9;">1.000</span><span style="color: #002200;">&#93;</span><span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>shadow setShadowBlurRadius<span style="color: #002200;">:</span> <span style="color: #2400d9;">3</span><span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>shadow setShadowOffset<span style="color: #002200;">:</span> NSMakeSize<span style="color: #002200;">&#40;</span> <span style="color: #2400d9;">0</span>, <span style="color: #2400d9;">0</span><span style="color: #002200;">&#41;</span><span style="color: #002200;">&#93;</span>;	
	<span style="color: #a61390;">return</span> <span style="color: #002200;">&#91;</span>shadow autorelease<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #11740a; font-style: italic;">/* All drawing of NSView happens in this method */</span>
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span> drawRect<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><span style="color: #a61390;">NSRect</span><span style="color: #002200;">&#41;</span>dirtyRect <span style="color: #002200;">&#123;</span>
	<span style="color: #11740a; font-style: italic;">/* Get our position and height */</span>
	<span style="color: #a61390;">NSRect</span> cords <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>self bounds<span style="color: #002200;">&#93;</span>;
&nbsp;
	<span style="color: #11740a; font-style: italic;">/* Setup colors we will be using */</span>
	<a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/"><span style="color: #400080;">NSColor</span></a> <span style="color: #002200;">*</span>borderColor <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/"><span style="color: #400080;">NSColor</span></a> colorWithCalibratedWhite<span style="color: #002200;">:</span>.00 alpha<span style="color: #002200;">:</span><span style="color: #2400d9;">1.0</span><span style="color: #002200;">&#93;</span> retain<span style="color: #002200;">&#93;</span>;
	<a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/"><span style="color: #400080;">NSColor</span></a> <span style="color: #002200;">*</span>startingColor <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/"><span style="color: #400080;">NSColor</span></a> colorWithCalibratedRed<span style="color: #002200;">:</span><span style="color: #2400d9;">0.960</span> green<span style="color: #002200;">:</span><span style="color: #2400d9;">0.961</span> blue<span style="color: #002200;">:</span><span style="color: #2400d9;">0.960</span> alpha<span style="color: #002200;">:</span><span style="color: #2400d9;">1.000</span><span style="color: #002200;">&#93;</span> retain<span style="color: #002200;">&#93;</span>;
	<a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/"><span style="color: #400080;">NSColor</span></a> <span style="color: #002200;">*</span>endColor <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/"><span style="color: #400080;">NSColor</span></a> colorWithCalibratedRed<span style="color: #002200;">:</span><span style="color: #2400d9;">0.892</span> green<span style="color: #002200;">:</span><span style="color: #2400d9;">0.893</span> blue<span style="color: #002200;">:</span><span style="color: #2400d9;">0.892</span> alpha<span style="color: #002200;">:</span><span style="color: #2400d9;">1.000</span><span style="color: #002200;">&#93;</span> retain<span style="color: #002200;">&#93;</span>;	
	<a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSGradient_Class/"><span style="color: #400080;">NSGradient</span></a> <span style="color: #002200;">*</span>gradient <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSGradient_Class/"><span style="color: #400080;">NSGradient</span></a> alloc<span style="color: #002200;">&#93;</span> initWithStartingColor<span style="color: #002200;">:</span>startingColor endingColor<span style="color: #002200;">:</span>endColor<span style="color: #002200;">&#93;</span>;
&nbsp;
	<span style="color: #11740a; font-style: italic;">/* Setup the normal rectable points */</span>
	<span style="color: #a61390;">NSPoint</span> bottomLeft <span style="color: #002200;">=</span> NSMakePoint<span style="color: #002200;">&#40;</span>cords.origin.x <span style="color: #002200;">+</span> <span style="color: #2400d9;">20</span>, cords.origin.y <span style="color: #002200;">+</span> <span style="color: #2400d9;">5</span><span style="color: #002200;">&#41;</span>;
	<span style="color: #a61390;">NSPoint</span> topLeft <span style="color: #002200;">=</span> NSMakePoint<span style="color: #002200;">&#40;</span>cords.origin.x <span style="color: #002200;">+</span> <span style="color: #2400d9;">20</span>, cords.size.height <span style="color: #002200;">-</span> <span style="color: #2400d9;">5</span><span style="color: #002200;">&#41;</span>;
	<span style="color: #a61390;">NSPoint</span> topRight <span style="color: #002200;">=</span> NSMakePoint<span style="color: #002200;">&#40;</span>cords.size.width <span style="color: #002200;">-</span> <span style="color: #2400d9;">5</span>, cords.size.height <span style="color: #002200;">-</span> <span style="color: #2400d9;">5</span><span style="color: #002200;">&#41;</span>;
	<span style="color: #a61390;">NSPoint</span> bottomRight <span style="color: #002200;">=</span> NSMakePoint<span style="color: #002200;">&#40;</span>cords.size.width <span style="color: #002200;">-</span> <span style="color: #2400d9;">5</span>, cords.origin.y <span style="color: #002200;">+</span> <span style="color: #2400d9;">5</span><span style="color: #002200;">&#41;</span>;
&nbsp;
	<span style="color: #11740a; font-style: italic;">/* Setup the arrow points */</span>
	<span style="color: #a61390;">NSPoint</span> arrowBottom <span style="color: #002200;">=</span> NSMakePoint<span style="color: #002200;">&#40;</span>cords.origin.x <span style="color: #002200;">+</span> <span style="color: #2400d9;">20</span>, cords.size.height<span style="color: #002200;">/</span><span style="color: #2400d9;">2</span> <span style="color: #002200;">-</span> <span style="color: #2400d9;">10</span><span style="color: #002200;">&#41;</span>;
	<span style="color: #a61390;">NSPoint</span> arrowTip <span style="color: #002200;">=</span> NSMakePoint<span style="color: #002200;">&#40;</span>cords.origin.x <span style="color: #002200;">+</span> <span style="color: #2400d9;">5</span>, cords.size.height<span style="color: #002200;">/</span><span style="color: #2400d9;">2</span><span style="color: #002200;">&#41;</span>;
	<span style="color: #a61390;">NSPoint</span> arrowTop <span style="color: #002200;">=</span> NSMakePoint<span style="color: #002200;">&#40;</span>cords.origin.x <span style="color: #002200;">+</span> <span style="color: #2400d9;">20</span>, cords.size.height<span style="color: #002200;">/</span><span style="color: #2400d9;">2</span> <span style="color: #002200;">+</span> <span style="color: #2400d9;">10</span><span style="color: #002200;">&#41;</span>;
&nbsp;
	<span style="color: #11740a; font-style: italic;">/* Setup default NSBezierPath properties */</span>
	<span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSBezierPath_Class/"><span style="color: #400080;">NSBezierPath</span></a> setDefaultLineJoinStyle<span style="color: #002200;">:</span>NSRoundLineJoinStyle<span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSBezierPath_Class/"><span style="color: #400080;">NSBezierPath</span></a> setDefaultLineCapStyle<span style="color: #002200;">:</span>NSRoundLineCapStyle<span style="color: #002200;">&#93;</span>;
&nbsp;
	<span style="color: #11740a; font-style: italic;">/* Create a new path and draw the rectangle */</span>
	<a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSBezierPath_Class/"><span style="color: #400080;">NSBezierPath</span></a> <span style="color: #002200;">*</span>path <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSBezierPath_Class/"><span style="color: #400080;">NSBezierPath</span></a> alloc<span style="color: #002200;">&#93;</span> init<span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>path setLineWidth<span style="color: #002200;">:</span> 1.0f<span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>path setMiterLimit<span style="color: #002200;">:</span><span style="color: #2400d9;">0</span><span style="color: #002200;">&#93;</span>;
&nbsp;
	<span style="color: #11740a; font-style: italic;">/* Start drawing */</span>
	<span style="color: #002200;">&#91;</span>path moveToPoint<span style="color: #002200;">:</span>bottomLeft<span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>path lineToPoint<span style="color: #002200;">:</span>arrowBottom<span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>path lineToPoint<span style="color: #002200;">:</span>arrowTip<span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>path lineToPoint<span style="color: #002200;">:</span>arrowTop<span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>path lineToPoint<span style="color: #002200;">:</span>topLeft<span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>path lineToPoint<span style="color: #002200;">:</span>topRight<span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>path lineToPoint<span style="color: #002200;">:</span>bottomRight<span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>path closePath<span style="color: #002200;">&#93;</span>;
&nbsp;
	<span style="color: #11740a; font-style: italic;">/* Setup the drop shadow for our drawing */</span>	
	<span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>self ourShadow<span style="color: #002200;">&#93;</span> set<span style="color: #002200;">&#93;</span>;
&nbsp;
	<span style="color: #11740a; font-style: italic;">/* Setup the border color */</span>
	<span style="color: #002200;">&#91;</span>borderColor set<span style="color: #002200;">&#93;</span>;
&nbsp;
	<span style="color: #11740a; font-style: italic;">/* Draw the border */</span>
	<span style="color: #002200;">&#91;</span>path stroke<span style="color: #002200;">&#93;</span>;
&nbsp;
	<span style="color: #11740a; font-style: italic;">/* Fill the area with our gradient */</span>
	<span style="color: #002200;">&#91;</span>gradient drawInBezierPath<span style="color: #002200;">:</span>path angle<span style="color: #002200;">:-</span><span style="color: #2400d9;">90</span><span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #a61390;">@end</span></pre></td></tr></table></div>

<hr />
<p><small>© 2009 <a href="http://blog.navisidhu.com">Navopedia!</a> •
<a href="http://blog.navisidhu.com/172-simple-cocoa-drawing/">Permalink</a> •
<a href="http://blog.navisidhu.com/172-simple-cocoa-drawing/#comments">No comment</a></small></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=h2n-bHqwXgs:gFY2_7B33ew:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=h2n-bHqwXgs:gFY2_7B33ew:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?i=h2n-bHqwXgs:gFY2_7B33ew:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=h2n-bHqwXgs:gFY2_7B33ew:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?i=h2n-bHqwXgs:gFY2_7B33ew:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=h2n-bHqwXgs:gFY2_7B33ew:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TheNavopedia/~4/h2n-bHqwXgs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.navisidhu.com/172-simple-cocoa-drawing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.navisidhu.com/172-simple-cocoa-drawing/</feedburner:origLink></item>
		<item>
		<title>LockIt v0.1 Released!</title>
		<link>http://feedproxy.google.com/~r/TheNavopedia/~3/dKfXGA-XzEU/</link>
		<comments>http://blog.navisidhu.com/164-lockit-v0-1-released/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 09:59:22 +0000</pubDate>
		<dc:creator>Navi</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[bells and whistles]]></category>
		<category><![CDATA[cocoa application]]></category>
		<category><![CDATA[keyboard shortcuts]]></category>
		<category><![CDATA[lockit]]></category>
		<category><![CDATA[loo]]></category>
		<category><![CDATA[mac screen]]></category>
		<category><![CDATA[Today]]></category>

		<guid isPermaLink="false">http://blog.navisidhu.com/?p=164</guid>
		<description><![CDATA[Today, I am releasing my first &#8220;useful&#8221; Cocoa application. Its called &#8220;LockIt&#8221;
It locks your mac screen whenever you need to step away from it for whatever reason. I designed it so that my brother doesn&#8217;t tinker with my Mac when I&#8217;m in the middle of writing code but need to have a drink or go [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I am releasing my first &#8220;useful&#8221; Cocoa application. Its called &#8220;<a href="/lockit">LockIt</a>&#8221;</p>
<p>It locks your mac screen whenever you need to step away from it for whatever reason. I designed it so that my brother doesn&#8217;t tinker with my Mac when I&#8217;m in the middle of writing code but need to have a drink or go to the loo.</p>
<p>I know you can get KeyChainAccess to do similar thing, but I wanted something different. Also in the works is support for adding keyboard shortcuts.</p>
<p>It is just a simple application that hasn&#8217;t got any bells and whistles. So any ideas or suggestions are welcome.</p>
<hr />
<p><small>© 2009 <a href="http://blog.navisidhu.com">Navopedia!</a> •
<a href="http://blog.navisidhu.com/164-lockit-v0-1-released/">Permalink</a> •
<a href="http://blog.navisidhu.com/164-lockit-v0-1-released/#comments">No comment</a></small></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=dKfXGA-XzEU:JeZcviqf7qo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=dKfXGA-XzEU:JeZcviqf7qo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?i=dKfXGA-XzEU:JeZcviqf7qo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=dKfXGA-XzEU:JeZcviqf7qo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?i=dKfXGA-XzEU:JeZcviqf7qo:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=dKfXGA-XzEU:JeZcviqf7qo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TheNavopedia/~4/dKfXGA-XzEU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.navisidhu.com/164-lockit-v0-1-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.navisidhu.com/164-lockit-v0-1-released/</feedburner:origLink></item>
		<item>
		<title>Hide files in Finder</title>
		<link>http://feedproxy.google.com/~r/TheNavopedia/~3/H60TYIYOApM/</link>
		<comments>http://blog.navisidhu.com/141-hide-files-in-finder/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 01:32:36 +0000</pubDate>
		<dc:creator>Navi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[filename]]></category>
		<category><![CDATA[Finder]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[use]]></category>

		<guid isPermaLink="false">http://blog.navisidhu.com/?p=141</guid>
		<description><![CDATA[If you need to hide some files in Finder in OS X use the following command:
sudo setfile -a V {filename}
Be sure to substitute {filename} with the file that you would like to hide.

© 2009 Navopedia! •
Permalink •
No comment]]></description>
			<content:encoded><![CDATA[<p>If you need to hide some files in Finder in OS X use the following command:</p>
<p><code>sudo setfile -a V {filename}</code></p>
<p>Be sure to substitute {filename} with the file that you would like to hide.</p>
<hr />
<p><small>© 2009 <a href="http://blog.navisidhu.com">Navopedia!</a> •
<a href="http://blog.navisidhu.com/141-hide-files-in-finder/">Permalink</a> •
<a href="http://blog.navisidhu.com/141-hide-files-in-finder/#comments">No comment</a></small></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=H60TYIYOApM:kQC84Qg9Ac4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=H60TYIYOApM:kQC84Qg9Ac4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?i=H60TYIYOApM:kQC84Qg9Ac4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=H60TYIYOApM:kQC84Qg9Ac4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?i=H60TYIYOApM:kQC84Qg9Ac4:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=H60TYIYOApM:kQC84Qg9Ac4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TheNavopedia/~4/H60TYIYOApM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.navisidhu.com/141-hide-files-in-finder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.navisidhu.com/141-hide-files-in-finder/</feedburner:origLink></item>
		<item>
		<title>Taking Screenshots in Mac</title>
		<link>http://feedproxy.google.com/~r/TheNavopedia/~3/XIXBXw9078Q/</link>
		<comments>http://blog.navisidhu.com/119-taking-screenshots-in-mac/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 23:42:25 +0000</pubDate>
		<dc:creator>Navi</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://blog.navisidhu.com/?p=119</guid>
		<description><![CDATA[Although you can use a build in OS X utility called &#8220;Grab&#8221; to take screenshots, but I&#8217;ve found that it doesn&#8217;t take the screenshots with the drop down shadow. So here are some simple shortcuts for taking screenshots in Mac OS X.


Command-Shift-3: Take a screenshot of the screen, and save it as a file on [...]]]></description>
			<content:encoded><![CDATA[<p>Although you can use a build in OS X utility called &#8220;Grab&#8221; to take screenshots, but I&#8217;ve found that it doesn&#8217;t take the screenshots with the drop down shadow. So here are some simple shortcuts for taking screenshots in Mac OS X.<br />
<span id="more-119"></span></p>
<ul>
<li>Command-Shift-3: Take a screenshot of the screen, and save it as a file on the desktop</li>
<li>Command-Shift-4, then select an area: Take a screenshot of an area and save it as a file on the desktop</li>
<li>Command-Shift-4, then space, then click a window: Take a screenshot of a window and save it as a file on the desktop</li>
<li>Command-Control-Shift-3: Take a screenshot of the screen, and save it to the clipboard</li>
<li>Command-Control-Shift-4, then select an area: Take a screenshot of an area and save it to the clipboard</li>
<li>Command-Control-Shift-4, then space, then click a window: Take a screenshot of a window and save it to the clipboard</li>
</ul>
<p>You can choose which format to save the screenshots by issuing the following commands in Terminal</p>
<pre>defaults write com.apple.screencapture type <em>{image_format}</em>
killall SystemUIServer</pre>
<p>Replace the {image_format} with one of the following :</p>
<ul>
<li>jpg</li>
<li>tiff</li>
<li>pdf</li>
<li>png</li>
<li>bmp</li>
<li>pict</li>
</ul>
<hr />
<p><small>© 2009 <a href="http://blog.navisidhu.com">Navopedia!</a> •
<a href="http://blog.navisidhu.com/119-taking-screenshots-in-mac/">Permalink</a> •
<a href="http://blog.navisidhu.com/119-taking-screenshots-in-mac/#comments">No comment</a></small></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=XIXBXw9078Q:vH_FBWz_2j8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=XIXBXw9078Q:vH_FBWz_2j8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?i=XIXBXw9078Q:vH_FBWz_2j8:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=XIXBXw9078Q:vH_FBWz_2j8:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?i=XIXBXw9078Q:vH_FBWz_2j8:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=XIXBXw9078Q:vH_FBWz_2j8:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TheNavopedia/~4/XIXBXw9078Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.navisidhu.com/119-taking-screenshots-in-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.navisidhu.com/119-taking-screenshots-in-mac/</feedburner:origLink></item>
		<item>
		<title>Cocoa Bottom Bar</title>
		<link>http://feedproxy.google.com/~r/TheNavopedia/~3/KCyxt6KeE5Y/</link>
		<comments>http://blog.navisidhu.com/108-cocoa-bottom-bar/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 23:03:37 +0000</pubDate>
		<dc:creator>Navi</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[bottom bar]]></category>
		<category><![CDATA[interface builder]]></category>
		<category><![CDATA[window]]></category>

		<guid isPermaLink="false">http://blog.navisidhu.com/?p=108</guid>
		<description><![CDATA[After searching the net endlessly for a way to add bottom bar to my Cocoa app, found that it is actually really simple to add bottom bars to a window.
For those who don&#8217;t know what a bottom bar is have a look at the screenshot.

All you have to do is goto Interface Builder and select [...]]]></description>
			<content:encoded><![CDATA[<p>After searching the net endlessly for a way to add bottom bar to my Cocoa app, found that it is actually really simple to add bottom bars to a window.</p>
<p>For those who don&#8217;t know what a bottom bar is have a look at the screenshot.<br />
<div id="attachment_111" class="wp-caption aligncenter" style="width: 310px"><a id="single_image" href="http://blog.navisidhu.com/wp-content/uploads/2009/11/Window.PNG"><img src="http://blog.navisidhu.com/wp-content/uploads/2009/11/Window-300x172.PNG" alt="Finder window with a bottom bar." title="Finder Window" width="300" height="172" class="size-medium wp-image-111" /></a><p class="wp-caption-text">Finder window with a bottom bar.</p></div><br />
<span id="more-108"></span><br />
All you have to do is goto Interface Builder and select the window that you want the bottom bar to be added and go to Inspector and select the size tab (as in screenshot) and at the bottom, in &#8220;Content Border&#8221; select &#8220;Small Bottom Border&#8221; or type the size of the border that you want.</p>
<p>Or using the following code you can do it as well</p>
<p><code>[someWindow setContentBorderThickness:24.0 forEdge:NSMinYEdge];</code></p>
<div id="attachment_109" class="wp-caption aligncenter" style="width: 265px"><a href="http://blog.navisidhu.com/wp-content/uploads/2009/11/inspector.PNG"><img src="http://blog.navisidhu.com/wp-content/uploads/2009/11/inspector-255x300.PNG" alt="Inspector window in Interface Builder." title="Inspector" width="255" height="300" class="size-medium wp-image-109" /></a><p class="wp-caption-text">Inspector window in Interface Builder.</p></div>
<p>And the final result will look something like this. After that you can add controls to your awesome bottom bar.<br />
<div id="attachment_110" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.navisidhu.com/wp-content/uploads/2009/11/result.PNG"><img src="http://blog.navisidhu.com/wp-content/uploads/2009/11/result-300x199.PNG" alt="A window with an awesome bottom bar." title="End Result" width="300" height="199" class="size-medium wp-image-110" /></a><p class="wp-caption-text">A window with an awesome bottom bar.</p></div></p>
<hr />
<p><small>© 2009 <a href="http://blog.navisidhu.com">Navopedia!</a> •
<a href="http://blog.navisidhu.com/108-cocoa-bottom-bar/">Permalink</a> •
<a href="http://blog.navisidhu.com/108-cocoa-bottom-bar/#comments">No comment</a></small></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=KCyxt6KeE5Y:6QJxhIuK7OY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=KCyxt6KeE5Y:6QJxhIuK7OY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?i=KCyxt6KeE5Y:6QJxhIuK7OY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=KCyxt6KeE5Y:6QJxhIuK7OY:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?i=KCyxt6KeE5Y:6QJxhIuK7OY:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=KCyxt6KeE5Y:6QJxhIuK7OY:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TheNavopedia/~4/KCyxt6KeE5Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.navisidhu.com/108-cocoa-bottom-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.navisidhu.com/108-cocoa-bottom-bar/</feedburner:origLink></item>
		<item>
		<title>XCode Tip : Documentation</title>
		<link>http://feedproxy.google.com/~r/TheNavopedia/~3/qA5Q8-xSLUA/</link>
		<comments>http://blog.navisidhu.com/88-xcode-tip-documentation/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 11:16:22 +0000</pubDate>
		<dc:creator>Navi</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://blog.navisidhu.com/?p=88</guid>
		<description><![CDATA[When starting using XCode, I would recommend downloading the necessary documentation right away so that when you need to quickly search for something, its right there and takes a lot less time to load.

Open XCode and goto Preferences. Go to the Documentaion tab and click Get on the documentation dockets you need.
One more thing, keep [...]]]></description>
			<content:encoded><![CDATA[<p>When starting using XCode, I would recommend downloading the necessary documentation right away so that when you need to quickly search for something, its right there and takes a lot less time to load.</p>
<p><span id="more-88"></span><br />
Open <em>XCode</em> and goto <em>Preferences</em>. Go to the Documentaion tab and click <em>Get</em> on the documentation dockets you need.</p>
<p><strong>One more thing, keep an eye on your data usage as some documentation sets are close to 1GB in size.<br />
</strong></p>
<div id="attachment_97" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.navisidhu.com/wp-content/uploads/2009/10/XCodeDocumentation.png"><img src="http://blog.navisidhu.com/wp-content/uploads/2009/10/XCodeDocumentation-300x210.png" alt="XCode Documentation Prefrences" title="XCodeDocumentation" width="300" height="210" class="size-medium wp-image-97" /></a><p class="wp-caption-text">XCode Documentation Prefrences</p></div>
<hr />
<p><small>© 2009 <a href="http://blog.navisidhu.com">Navopedia!</a> •
<a href="http://blog.navisidhu.com/88-xcode-tip-documentation/">Permalink</a> •
<a href="http://blog.navisidhu.com/88-xcode-tip-documentation/#comments">No comment</a></small></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=qA5Q8-xSLUA:Cael599u0nw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=qA5Q8-xSLUA:Cael599u0nw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?i=qA5Q8-xSLUA:Cael599u0nw:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=qA5Q8-xSLUA:Cael599u0nw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?i=qA5Q8-xSLUA:Cael599u0nw:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=qA5Q8-xSLUA:Cael599u0nw:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TheNavopedia/~4/qA5Q8-xSLUA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.navisidhu.com/88-xcode-tip-documentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.navisidhu.com/88-xcode-tip-documentation/</feedburner:origLink></item>
		<item>
		<title>Simple Cocoa Gradient View</title>
		<link>http://feedproxy.google.com/~r/TheNavopedia/~3/ML3xufywrN0/</link>
		<comments>http://blog.navisidhu.com/57-simple-cocoa-gradient-view/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 21:28:36 +0000</pubDate>
		<dc:creator>Navi</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Gradient]]></category>
		<category><![CDATA[View]]></category>

		<guid isPermaLink="false">http://blog.navisidhu.com/?p=57</guid>
		<description><![CDATA[In this tutorial we will be doing simple  view programming by creating a very simple gradient view.
Sample code is attached below and if you want to download the complete XCode project, its attached below as well.
Optionally you could also add the angle property to it and synthesize it, to make the GradientView more customizable.


#import [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial we will be doing simple  view programming by creating a very simple gradient view.</p>
<p>Sample code is attached below and if you want to download the complete XCode project, its attached below as well.</p>
<p>Optionally you could also add the angle property to it and synthesize it, to make the GradientView more customizable.</p>
<p><span id="more-57"></span></p>

<div class="wp_codebox"><table><tr id="p577"><td class="code" id="p57code7"><pre class="objc" style="font-family:monospace;"><span style="color: #6e371a;">#import &lt;cocoa /Cocoa.h&gt;</span>
&nbsp;
<span style="color: #a61390;">@interface</span> GradientView <span style="color: #002200;">:</span> <a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/"><span style="color: #400080;">NSView</span></a> <span style="color: #002200;">&#123;</span>
	<a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/"><span style="color: #400080;">NSColor</span></a> <span style="color: #002200;">*</span>startColor;
	<a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/"><span style="color: #400080;">NSColor</span></a> <span style="color: #002200;">*</span>endColor;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #a61390;">@property</span> <span style="color: #002200;">&#40;</span>nonatomic,retain<span style="color: #002200;">&#41;</span> <a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/"><span style="color: #400080;">NSColor</span></a> <span style="color: #002200;">*</span>startColor;
<span style="color: #a61390;">@property</span> <span style="color: #002200;">&#40;</span>nonatomic,retain<span style="color: #002200;">&#41;</span> <a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/"><span style="color: #400080;">NSColor</span></a> <span style="color: #002200;">*</span>endColor;
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">id</span><span style="color: #002200;">&#41;</span> initWithStartColor<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/"><span style="color: #400080;">NSColor</span></a> <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>startCol endColor<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/"><span style="color: #400080;">NSColor</span></a> <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>endCol;
&nbsp;
@end&lt;<span style="color: #002200;">/</span>cocoa&gt;</pre></td></tr></table></div>


<div class="wp_codebox"><table><tr id="p578"><td class="code" id="p57code8"><pre class="objc" style="font-family:monospace;"><span style="color: #6e371a;">#import &quot;GradientView.h&quot;</span>
&nbsp;
<span style="color: #a61390;">@implementation</span> GradientView
&nbsp;
<span style="color: #a61390;">@synthesize</span> startColor;
<span style="color: #a61390;">@synthesize</span> endColor;
&nbsp;
<span style="color: #11740a; font-style: italic;">/*
  Initilize the gradient view with colors
 */</span>
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">id</span><span style="color: #002200;">&#41;</span> initWithStartColor<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/"><span style="color: #400080;">NSColor</span></a> <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>startCol endColor<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/"><span style="color: #400080;">NSColor</span></a> <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>endCol <span style="color: #002200;">&#123;</span>
    self <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>super init<span style="color: #002200;">&#93;</span>;
	<span style="color: #a61390;">if</span> <span style="color: #002200;">&#40;</span>self<span style="color: #002200;">&#41;</span> <span style="color: #002200;">&#123;</span>
		self.startColor <span style="color: #002200;">=</span> startCol;
		self.endColor <span style="color: #002200;">=</span> endCol;
    <span style="color: #002200;">&#125;</span>
    <span style="color: #a61390;">return</span> self;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #11740a; font-style: italic;">/*
  Draw the view with gradient
*/</span>
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>drawRect<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><span style="color: #a61390;">NSRect</span><span style="color: #002200;">&#41;</span>dirtyRect <span style="color: #002200;">&#123;</span>
	<a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSGradient_Class/"><span style="color: #400080;">NSGradient</span></a> <span style="color: #002200;">*</span>gradient <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSGradient_Class/"><span style="color: #400080;">NSGradient</span></a> alloc<span style="color: #002200;">&#93;</span> initWithStartingColor<span style="color: #002200;">:</span>startColor endingColor<span style="color: #002200;">:</span>endColor<span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>gradient drawInRect<span style="color: #002200;">:</span><span style="color: #002200;">&#91;</span>self bounds<span style="color: #002200;">&#93;</span> angle<span style="color: #002200;">:</span><span style="color: #2400d9;">270</span><span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #11740a; font-style: italic;">/*
  Dealloc resources
*/</span>
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span> dealloc <span style="color: #002200;">&#123;</span>
	<span style="color: #002200;">&#91;</span>startColor release<span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>endColor release<span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>super dealloc<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #a61390;">@end</span></pre></td></tr></table></div>

<hr />
<p><small>© 2009 <a href="http://blog.navisidhu.com">Navopedia!</a> •
<a href="http://blog.navisidhu.com/57-simple-cocoa-gradient-view/">Permalink</a> •
<a href="http://blog.navisidhu.com/57-simple-cocoa-gradient-view/#comments">No comment</a></small></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=ML3xufywrN0:W7s8DV3wk2g:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=ML3xufywrN0:W7s8DV3wk2g:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?i=ML3xufywrN0:W7s8DV3wk2g:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=ML3xufywrN0:W7s8DV3wk2g:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?i=ML3xufywrN0:W7s8DV3wk2g:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=ML3xufywrN0:W7s8DV3wk2g:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TheNavopedia/~4/ML3xufywrN0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.navisidhu.com/57-simple-cocoa-gradient-view/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.navisidhu.com/57-simple-cocoa-gradient-view/</feedburner:origLink></item>
		<item>
		<title>How to : NTFS write support in Snow Leopard</title>
		<link>http://feedproxy.google.com/~r/TheNavopedia/~3/gumwWsUrlts/</link>
		<comments>http://blog.navisidhu.com/53-ntfs-write-snow-leopard/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 06:28:11 +0000</pubDate>
		<dc:creator>Navi</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[chmod 755]]></category>
		<category><![CDATA[ntfs]]></category>
		<category><![CDATA[ntfs drives]]></category>
		<category><![CDATA[open terminal]]></category>
		<category><![CDATA[root wheel]]></category>
		<category><![CDATA[snow leopard]]></category>
		<category><![CDATA[sudo chmod]]></category>
		<category><![CDATA[write]]></category>

		<guid isPermaLink="false">http://blog.navisidhu.com/2009/10/how-to-enable-ntfs-write-support-in-snow-leopard/</guid>
		<description><![CDATA[No need for NTFS-3g or MacFuse to make your NTFS drives working under Snow Leopard.
Just follow these steps and have the NTFS write support on all the time.


Open Terminal and type the following command. What this command does it renames the default mount command for NTFS partitions.
sudo mv /sbin/mount_ntfs /sbin/mount_ntfs_rw

Then we create a new file [...]]]></description>
			<content:encoded><![CDATA[<p>No need for NTFS-3g or MacFuse to make your NTFS drives working under Snow Leopard.</p>
<p>Just follow these steps and have the NTFS write support on all the time.</p>
<p><span id="more-53"></span></p>
<ol>
<li>Open Terminal and type the following command. What this command does it renames the default mount command for NTFS partitions.<br />
<blockquote><p><code>sudo mv /sbin/mount_ntfs /sbin/mount_ntfs_rw</code></p></blockquote>
</li>
<li>Then we create a new file using <code>nano</code><br />
<blockquote><p><code>sudo nano /sbin/mount_ntfs</code></p></blockquote>
</li>
<li>Type the following lines into it:<br />
<blockquote><p><code>#!/bin/sh<br />
/sbin/mount_ntfs_rw -o rw "$@"</code></p></blockquote>
</li>
<li>Save the file by pressing &#8220;Control + X&#8221;, then &#8220;Y&#8221; and &#8220;Enter&#8221; for saving and exiting <code>nano</code>.</li>
<li>Then you should be back to Terminal. Type the following commands.<br />
<blockquote><p><code>sudo chown root:wheel /sbin/mount_ntfs<br />
sudo chmod 755 /sbin/mount_ntfs</code></p></blockquote>
</li>
</ol>
<p>Thats it! Next time you reboot, you should have native NTFS write support.</p>
<hr />
<p><small>© 2009 <a href="http://blog.navisidhu.com">Navopedia!</a> •
<a href="http://blog.navisidhu.com/53-ntfs-write-snow-leopard/">Permalink</a> •
<a href="http://blog.navisidhu.com/53-ntfs-write-snow-leopard/#comments">No comment</a></small></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=gumwWsUrlts:0XLLwKFaY30:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=gumwWsUrlts:0XLLwKFaY30:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?i=gumwWsUrlts:0XLLwKFaY30:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=gumwWsUrlts:0XLLwKFaY30:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?i=gumwWsUrlts:0XLLwKFaY30:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=gumwWsUrlts:0XLLwKFaY30:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TheNavopedia/~4/gumwWsUrlts" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.navisidhu.com/53-ntfs-write-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.navisidhu.com/53-ntfs-write-snow-leopard/</feedburner:origLink></item>
		<item>
		<title>Let the coding begin!</title>
		<link>http://feedproxy.google.com/~r/TheNavopedia/~3/ReyIBKZgVKk/</link>
		<comments>http://blog.navisidhu.com/51-let-the-coding-begin/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 11:12:49 +0000</pubDate>
		<dc:creator>Navi</dc:creator>
				<category><![CDATA[Cocoa]]></category>

		<guid isPermaLink="false">http://blog.navisidhu.com/2009/10/let-the-coding-begin/</guid>
		<description><![CDATA[I had ordered Aaron Hillegas&#8217; book about learning Cocoa programming. It arrived this morning and after reading a couple of chapters I can say that I&#8217;m hooked!
Its really well written and is filled with helpful code to get started. Covers most of the tidbits that the newbie like me keeps wondering, &#8220;Hey how did they [...]]]></description>
			<content:encoded><![CDATA[<p>I had ordered Aaron Hillegas&#8217; book about learning Cocoa programming. It arrived this morning and after reading a couple of chapters I can say that I&#8217;m hooked!</p>
<p>Its really well written and is filled with helpful code to get started. Covers most of the tidbits that the newbie like me keeps wondering, &#8220;Hey how did they do that?&#8221;</p>
<p>I would recommend it to everyone who is starting to program in Cocoa.</p>
<hr />
<p><small>© 2009 <a href="http://blog.navisidhu.com">Navopedia!</a> •
<a href="http://blog.navisidhu.com/51-let-the-coding-begin/">Permalink</a> •
<a href="http://blog.navisidhu.com/51-let-the-coding-begin/#comments">No comment</a></small></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=ReyIBKZgVKk:61FZOY63YdA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=ReyIBKZgVKk:61FZOY63YdA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?i=ReyIBKZgVKk:61FZOY63YdA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=ReyIBKZgVKk:61FZOY63YdA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?i=ReyIBKZgVKk:61FZOY63YdA:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=ReyIBKZgVKk:61FZOY63YdA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TheNavopedia/~4/ReyIBKZgVKk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.navisidhu.com/51-let-the-coding-begin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.navisidhu.com/51-let-the-coding-begin/</feedburner:origLink></item>
		<item>
		<title>Hello from iPod!</title>
		<link>http://feedproxy.google.com/~r/TheNavopedia/~3/128nqwk2CDI/</link>
		<comments>http://blog.navisidhu.com/49-hello-from-ipod/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 08:38:37 +0000</pubDate>
		<dc:creator>Navi</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://blog.navisidhu.com/2009/08/hello-from-ipod/</guid>
		<description><![CDATA[The first post from the iPod touch.

© 2009 Navopedia! •
Permalink •
No comment]]></description>
			<content:encoded><![CDATA[<p>The first post from the iPod touch.</p>
<hr />
<p><small>© 2009 <a href="http://blog.navisidhu.com">Navopedia!</a> •
<a href="http://blog.navisidhu.com/49-hello-from-ipod/">Permalink</a> •
<a href="http://blog.navisidhu.com/49-hello-from-ipod/#comments">No comment</a></small></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=128nqwk2CDI:FVm6tjk_kdA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=128nqwk2CDI:FVm6tjk_kdA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?i=128nqwk2CDI:FVm6tjk_kdA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=128nqwk2CDI:FVm6tjk_kdA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?i=128nqwk2CDI:FVm6tjk_kdA:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/TheNavopedia?a=128nqwk2CDI:FVm6tjk_kdA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/TheNavopedia?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TheNavopedia/~4/128nqwk2CDI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.navisidhu.com/49-hello-from-ipod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.navisidhu.com/49-hello-from-ipod/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 0.672 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-03-04 19:39:39 -->
