<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Aint that special &#187; Programming</title>
	<atom:link href="http://duck-wing.com/wp/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://duck-wing.com/wp</link>
	<description>Another yummy waste of time</description>
	<lastBuildDate>Mon, 25 Feb 2008 21:36:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>We are living in the future</title>
		<link>http://duck-wing.com/wp/2007/08/26/we-are-living-in-the-future/</link>
		<comments>http://duck-wing.com/wp/2007/08/26/we-are-living-in-the-future/#comments</comments>
		<pubDate>Sun, 26 Aug 2007 14:29:22 +0000</pubDate>
		<dc:creator>Macgiver</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://duck-wing.com/wp/2007/08/26/we-are-living-in-the-future/</guid>
		<description><![CDATA[If I had any doubt that technology was not living up to my expectations, I&#8217;m a believer now. I just installed iPhone Remote on my Mac Pro and all I can say is WOW! My iPhone can control my Mac over the Edge network.


iPhone Remote is brought to us by the good people at Google [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:14pt;">If I had any doubt that technology was not living up to my expectations, I&#8217;m a believer now. I just installed </span><span style="font-size:14pt;"><a href="http://code.google.com/p/telekinesis/">iPhone Remote</a></span><span style="font-size:14pt;"> on my Mac Pro and all I can say is WOW! </span><span style="color:#ff7f00;font-size:14pt;"><strong>My iPhone can control my Mac over the Edge network.</strong></span><span style="font-size:14pt;"></p>
<p></span><img src="http://duck-wing.com/wp/wp-content/uploads/2007/08/iphoneremote.jpg" height="491" width="260" border="1" hspace="4" vspace="4" alt=" Svn Site Images Screenshot.Large" /><span style="font-size:14pt;"><br />
</span><span style="font-size:14pt;"><br />
</span><span style="font-size:14pt;"><a href="http://code.google.com/p/telekinesis/">iPhone Remote is brought to us by the good people at Google</a></span><span style="font-size:14pt;"> (code named Telekinesis). Maybe they got tired of waiting for the gPhone and decided to make the iPhone the device dreams are made of. The server software is a quick install. It&#8217;s a lot like a VNC server. It runs in the background and receives requests from some port that it is told to listen to. The server software then directs traffic to its own applications. Here is a quick run-down of what you can do remotely from your iPhone.</p>
<p>You can </span><span style="color:#ff7f00;font-size:14pt;">take a picture with your Mac</span><span style="font-size:14pt;">&#8217;s video camera and receive it right on your iPhone (only one frame, not a video stream). Any file on your Mac at home can be accessed from your iPhone. How about taking a </span><span style="color:#ff7f00;font-size:14pt;">screenshot of your Mac&#8217;s desktop</span><span style="font-size:14pt;">? Yup, you can do that. You want to do a </span><span style="color:#ff7f00;font-size:14pt;">Spotlight search</span><span style="font-size:14pt;"> for a file? No probelmo. I&#8217;ll illustrate a quick tour of the application below. The screen shots are taken from Safari running on my Mac Pro (since there is no way to take a decent picture of the iPhone interface). But you have to trust me, this looks great on the iPhone.</p>
<p>This first picture is of the iPhone Remote software running on my Mac. It&#8217;s very simple to use. Just open up the ports in your firewall and start the server. I like to have the &#8220;applications&#8221; open in a new window on the iPhone just for ease of use.</p>
<p></span><img src="http://duck-wing.com/wp/wp-content/uploads/2007/08/iphoneremotepref.jpg" height="179" width="357" border="1" hspace="4" vspace="4" alt="200708260012" /><span style="font-size:14pt;"></p>
<p>This is the main application view on the iPhone. Just tap one of the buttons. That background image is automatically pulled from the Mac running the iPhone Remote server. That&#8217;s my desktop.<br />
</span><img src="http://duck-wing.com/wp/wp-content/uploads/2007/08/iphoneremotemenu.jpg" height="276" width="211" border="1" hspace="4" vspace="4" alt="200708260008" /><span style="font-size:14pt;"></p>
<p></span>This is the list of applications on my Mac. Did you forget to fire-up your BitTorrent client this morning? No problem. Just turn it on from your iPhone.</p>
<p style="font-size:14pt;">
<p><img src="http://duck-wing.com/wp/wp-content/uploads/2007/08/iphoneremoteapps.jpg" height="569" width="279" border="1" hspace="4" vspace="4" alt="200708260017" /><span style="font-size:14pt;"></p>
<p>You can just as easily access your files. Click through directories and open up that PDF file right from your phone. I found a strange twist, that I don&#8217;t think was intended but could have very interesting consequences. When I clicked on a </span><span style="font-size:14pt;"><a href="http://www.codingmonkeys.de/subethaedit/">Subethaedit</a></span><span style="font-size:14pt;"> document that contained an HTML snippet, my Mac opened the document in Subethaedit (talk about remote control!) and my iPhone presented me with a rendered webpage, rather than the snippet of code. I don&#8217;t know which surprised me more, windows just poping open on my mac, or the iPhone rendering the HTML code. This opens up a very easy way to make your own web applications without having a web server. I&#8217;m not sure this method would support cgi though.<br />
</span><img src="http://duck-wing.com/wp/wp-content/uploads/2007/08/iphoneremotefiles.jpg" height="396" width="283" border="1" hspace="4" vspace="4" alt="200708260016" /><span style="font-size:14pt;"><br />
</span><span style="font-size:14pt;"></p>
<p>And if you don&#8217;t remember where that file is, just use the iPhone Remote&#8217;s Spotlight function. Here is a Spotlight search for the word &#8220;Perl&#8221;<br />
</span><img src="http://duck-wing.com/wp/wp-content/uploads/2007/08/iphoneremotespot.jpg" height="313" width="284" border="1" hspace="4" vspace="4" alt="200708260005" /><span style="font-size:14pt;"></p>
<p>A feature that has a lot of potential, is streaming media from your Mac at home to your iPhone. The server software can stream audio or video directly. You gotta have a remote to control that music, right? One is included.<br />
</span><a href="http://duck-wing.com/wp/wp-content/uploads/2007/08/200708260005-1.jpg" onclick="window.open('http://duck-wing.com/wp/wp-content/uploads/2007/08/200708260005-1.jpg','popup','width=313,height=345,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false"><img src="http://duck-wing.com/wp/wp-content/uploads/2007/08/200708260005-1-tm.jpg" height="100" width="90" border="1" hspace="4" vspace="4" alt="200708260005-1" /></a><span style="font-size:14pt;"></p>
<p></span><span style="font-size:14pt;">While the Edge service may never be fast enough to allow for true Remote Desktop, there is a work around. You can actually select and then trigger Applescripts from your iPhone. This has potential to allow you to </span><span style="font-size:14pt;"><a href="http://www.panic.com/transmit/">FTP upload</a></span><span style="font-size:14pt;"> to servers, start </span><span style="font-size:14pt;"><a href="http://www.econtechnologies.com/site/Pages/ChronoSync/chrono_overview.html">Backup software</a></span><span style="font-size:14pt;">, or even </span><span style="font-size:14pt;"><a href="http://lifehacker.com/software/security/remotely-delete-files-from-a-stolen-mac-156590.php">secure a stolen computer</a></span><span style="font-size:14pt;">.</p>
<p></span><img src="http://duck-wing.com/wp/wp-content/uploads/2007/08/iphoneremotescripts.jpg" height="106" width="287" border="1" hspace="4" vspace="4" alt="200708260006" /><span style="font-size:14pt;"></p>
<p>Finally, for all those Leet Mac users, there is actually a Terminal application. Finally, we can </span><span style="font-size:14pt;"><a href="http://uis.georgetown.edu/software/documentation/macosx1/macosx1.cron.html">run our cron jobs</a></span><span style="font-size:14pt;"> while we&#8217;re on the road.</p>
<p></span><img src="http://duck-wing.com/wp/wp-content/uploads/2007/08/iphoneterminal.jpg" height="178" width="319" border="1" hspace="4" vspace="4" alt="200708260007" /><span style="font-size:14pt;"></p>
<p>The service works through a </span><span style="font-size:14pt;"><a href="http://en.wikipedia.org/wiki/SHTTP">secure shttp connection</a></span><span style="font-size:14pt;">, so you don&#8217;t need to worry too much about the data being transmitted. It&#8217;s all encrypted. However, it&#8217;s a little scary to think that if some nefarious person gets your user name and password, they can have complete snooping privileges. I like a </span><span style="font-size:14pt;"><a href="http://code.google.com/p/telekinesis/wiki/MediaStreaming">suggestion I found on the Telekinesis Wiki</a></span><span style="font-size:14pt;"> which is to setup some Mail.app Applescript triggers. Send an email with the Subject &#8220;iPhone Remote On&#8221; and voila, your Mac starts up the server. Send another email to turn it off. It&#8217;s really just one more layer of security. You could even have the script look for a particular password in the body of the message before running.</p>
<p>iPhone Remote is a wonderful application. Apple may someday provide an SDK for the iPhone, but until then, a little creativity and elbow grease will carry the device a long way.<br />
</span><br />
<!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/Apple" rel="tag">Apple</a>, <a href="http://www.technorati.com/tag/iPhone" rel="tag">iPhone</a>, <a href="http://www.technorati.com/tag/Mac" rel="tag">Mac</a>, <a href="http://www.technorati.com/tag/Programming" rel="tag">Programming</a>, <a href="http://www.technorati.com/tag/Review" rel="tag">Review</a>, <a href="http://www.technorati.com/tag/Security" rel="tag">Security</a>, <a href="http://www.technorati.com/tag/Software" rel="tag">Software</a>, <a href="http://www.technorati.com/tag/Tip" rel="tag">Tip</a>, <a href="http://www.technorati.com/tag/Trick" rel="tag">Trick</a>, <a href="http://www.technorati.com/tag/Web" rel="tag">Web</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://duck-wing.com/wp/2007/08/26/we-are-living-in-the-future/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One script to rule them all</title>
		<link>http://duck-wing.com/wp/2007/07/29/one-script-to-rule-them-all/</link>
		<comments>http://duck-wing.com/wp/2007/07/29/one-script-to-rule-them-all/#comments</comments>
		<pubDate>Sun, 29 Jul 2007 19:36:16 +0000</pubDate>
		<dc:creator>Macgiver</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Automator]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://duck-wing.com/wp/2007/07/29/one-script-to-rule-them-all/</guid>
		<description><![CDATA[
I tend to listen to Podcasts (one of the best is MacBreak Weekly) while I work. But when my wife starts talking to me from the other room, I have to stop what I&#8217;m doing to navigate to iTunes just to click Pause. It finally reached a level of annoyance that made me fired up [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://duck-wing.com/wp/wp-content/uploads/2007/07/applscripte.jpg" height="106" width="248" border="1" hspace="4" vspace="4" alt=" Images Zinc Osx Feature Applescript" /></p>
<p>I tend to listen to Podcasts (one of the best is <a href="http://www.macbreak.com/?2350bd60">MacBreak Weekly</a>) while I work. But when my wife starts talking to me from the other room, I have to stop what I&#8217;m doing to navigate to <a href="http://www.apple.com/itunes/">iTunes</a> just to click Pause. It finally reached a level of annoyance that made me fired up Script Editor and throw together a little script to do it for me. This is just about as simple an Apple Script as you can get:</p>
<p style="text-indent:0pt;"><span style="font-family:Verdana;color:#0000ff;"><strong>tell</strong></span><span style="font-family:Verdana;"> </span><span style="font-family:Verdana;color:#0000ff;">application</span><span style="font-family:Verdana;"> &#8220;iTunes&#8221;<br />
</span></p>
<p style="text-indent:0pt;"><span style="font-family:Verdana;">	</span><span style="font-family:Verdana;color:#0000ff;">playpause</span><span style="font-family:Verdana;"><br />
</span></p>
<p style="text-indent:0pt;"><span style="font-family:Verdana;color:#0000ff;"><strong>end</strong></span><span style="font-family:Verdana;"> </span><span style="font-family:Verdana;color:#0000ff;"><strong>tell</p>
<p></strong></span></p>
<p>Now, just save it as an application and bind it to some key you&#8217;re not using. I used one of the buttons on my <a href="http://www.wacom.com/intuos/6x11.cfm">Wacom Tablet</a>. One key press and the podcast will either pause or play depending upon its current state.</p>
<p>It&#8217;s so great that Apple included a little hook for the Pause/Play function. This is yet another great feature of OSX. If something&#8217;s missing that you really want it to do, chances are that a short Apple Script or Automator Action can remedy the situation.</p>
<p>I think this little trick will hold me over until <a href="http://www.engadget.com/2007/07/27/is-this-the-new-imac-keyboard/">that new keyboard</a> sees the light of day.<br />
<!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/Apple" rel="tag">Apple</a>, <a href="http://www.technorati.com/tag/AppleScript" rel="tag">AppleScript</a>, <a href="http://www.technorati.com/tag/Mac" rel="tag">Mac</a>, <a href="http://www.technorati.com/tag/Programming" rel="tag">Programming</a>, <a href="http://www.technorati.com/tag/iTunes" rel="tag">iTunes</a>, <a href="http://www.technorati.com/tag/Tip" rel="tag">Tip</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://duck-wing.com/wp/2007/07/29/one-script-to-rule-them-all/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Digging for code</title>
		<link>http://duck-wing.com/wp/2006/10/08/digging-for-code/</link>
		<comments>http://duck-wing.com/wp/2006/10/08/digging-for-code/#comments</comments>
		<pubDate>Sun, 08 Oct 2006 14:18:27 +0000</pubDate>
		<dc:creator>Macgiver</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Objective C]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://duck-wing.com/wp/?p=63</guid>
		<description><![CDATA[



Recently, Google labs introduced their new &#8220;Code Search&#8221; tool. This got me to start looking for similar search engines on the web. One of the nice one&#8217;s I&#8217;ve used is &#8220;Programming is hard&#8221; which has some nice formating, but limited languages. While many of the examples are way over my head as a new coder, [...]]]></description>
			<content:encoded><![CDATA[<p>
<img src="http://macgiver.wordpress.com/files/2006/10/GoogleCode.jpg" height="78" width="161" border="1" hspace="4" vspace="4" alt="Temp" />
</p>
<p>
Recently, Google labs introduced their new &#8220;Code Search&#8221; tool. This got me to start looking for similar search engines on the web. One of the nice one&#8217;s I&#8217;ve used is <a href="http://programmingishard.com/">&#8220;Programming is hard&#8221;</a> which has some nice formating, but limited languages. While many of the examples are way over my head as a new coder, these snippets have a lot to teach. I&#8217;t is mind blowing just how efficient an experienced programmer can make a routine.
</p>
<p>
As I said though, there are few good sources for Objective C, Cocoa, or Applescript. ALthough Google <a href="http://www.google.com/codesearch?q=lang%3A+%22cocoa%22&amp;btnG=Search+Code">found over 200 examples</a> for Cocoa related code. Of course there are plenty of <a href="http://www.cs.indiana.edu/classes/c304/oop-intro.html">publicly available sources</a> for learning Objective C, but they are sparse with code examples.
</p>
<p><!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/Cocoa" rel="tag">Cocoa</a>, <a href="http://www.technorati.com/tag/Objective C" rel="tag">Objective C</a>, <a href="http://www.technorati.com/tag/Programming" rel="tag">Programming</a>, <a href="http://www.technorati.com/tag/Applescript" rel="tag">Applescript</a>, <a href="http://www.technorati.com/tag/Tip" rel="tag">Tip</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://duck-wing.com/wp/2006/10/08/digging-for-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thanks for that</title>
		<link>http://duck-wing.com/wp/2006/10/06/thanks-for-that/</link>
		<comments>http://duck-wing.com/wp/2006/10/06/thanks-for-that/#comments</comments>
		<pubDate>Fri, 06 Oct 2006 22:58:03 +0000</pubDate>
		<dc:creator>Macgiver</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://duck-wing.com/wp/?p=62</guid>
		<description><![CDATA[
I came across this Wordpress blog post today. The author breaks down some fundamental guidelines for coding. To summarize: You should take as much care formating code as you would with an essay. This is good advice. I&#8217;m still a beginner when it comes to heavy lifting with Objective C, but I have already learned [...]]]></description>
			<content:encoded><![CDATA[<p>
I came across <a href="http://techwiz2.wordpress.com/2006/10/06/coding-101-by-john-keklak/">this Wordpress blog post</a> today. The author breaks down some fundamental guidelines for coding. To summarize: You should take as much care formating code as you would with an essay. This is good advice. I&#8217;m still a beginner when it comes to heavy lifting with Objective C, but I have already learned this lesson the hard way. It is much easier to find mistakes when you have the proper punctuation. Just imagine writing an essay without carriage returns, indentation, page breaks or punctuation. It would be pretty tough finding where you forgot to put that closing quote.
</p>
<p><!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/Programming" rel="tag">Programming</a>, <a href="http://www.technorati.com/tag/Blogs" rel="tag">Blogs</a>, <a href="http://www.technorati.com/tag/Tip" rel="tag">Tip</a>, <a href="http://www.technorati.com/tag/Trick" rel="tag">Trick</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://duck-wing.com/wp/2006/10/06/thanks-for-that/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Objective C #3 &#8211; Structures</title>
		<link>http://duck-wing.com/wp/2006/09/27/objective-c-3-structures/</link>
		<comments>http://duck-wing.com/wp/2006/09/27/objective-c-3-structures/#comments</comments>
		<pubDate>Thu, 28 Sep 2006 01:20:09 +0000</pubDate>
		<dc:creator>Macgiver</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Objective C]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://duck-wing.com/wp/?p=55</guid>
		<description><![CDATA[



It&#8217;s been awhile since I posted about my journey into Objective C and Cocoa programming. It&#8217;s going a lot slower than I had hoped, but I up to page 260 in &#8220;Programming in Objective C&#8221; so at least I&#8217;m not a complete slacker. It doesn&#8217;t help that most of the really basic material is as [...]]]></description>
			<content:encoded><![CDATA[<p>
<img src="http://macgiver.wordpress.com/files/2006/09/objc.jpg" height="176" width="134" border="1" hspace="4" vspace="4" alt="ObjectiveC" />
</p>
<p>
It&#8217;s been awhile since I posted about my journey into <a href="http://en.wikipedia.org/wiki/Objective-C">Objective C</a> and Cocoa programming. It&#8217;s going a lot slower than I had hoped, but I up to page 260 in <a href="http://www.amazon.com/Programming-Objective-C-Stephen-Kochan/dp/0672325861/sr=1-1/qid=1159406057/ref=pd_bbs_1/104-9013676-2704723?ie=UTF8&amp;s=books">&#8220;Programming in Objective C&#8221;</a> so at least I&#8217;m not a complete slacker. It doesn&#8217;t help that most of the really basic material is as exciting as a wet shoelace. But today on my commute to work I read about Functions and Structures. This is pretty darn cool stuff. Functions are really just quick and easy methods, but Structures are where it really gets interesting. A structure is a way to group related variables together and then assign or recall values really quickly. Here is an example from the book:
</p>
<p>
<span style="color:#ff7f00;">struct date<br />
<br />{<br />
<br /></span>
</p>
<p style="text-indent:20pt;color:#ff7f00;">
int month;<br />
<br />int day;<br />
<br />int year;
</p>
<p>
<span style="color:#ff7f00;">}<br />
<br /></span><br />
<br />This bit of code intializes a set of variables named month, day and year which comprise the variable called date.
</p>
<p>
<span style="color:#ff7f00;">struct date today;</span><span style="color:#ffffff;"><br />
<br /></span><br />
<br />Now we have declared a new date named &#8220;today.&#8221; Here&#8217;s the cool part. It&#8217;s really easy to set the day and year of your date as follows:
</p>
<p>
<span style="color:#ff7f00;">today.day= 21<br />
<br />today.year = 2003<br />
<br /></span><br />
<br />That&#8217;s it. Now your date variable contains a day and year that can be recalled and reasigned as needed. The period simply says to access the sub variable &#8220;day&#8221;
</p>
<p>
You can even set the entire date like this
</p>
<p>
<span style="color:#ff7f00;">struct date today = { 7, 2, 2004 };</span>
</p>
<p>
I&#8217;ll try to add some more later this week. The other thing I found pretty interesting is the use of Definitions (#define).
</p>
<p><!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/Apple" rel="tag">Apple</a>, <a href="http://www.technorati.com/tag/Cocoa" rel="tag">Cocoa</a>, <a href="http://www.technorati.com/tag/Objective C" rel="tag">Objective C</a>, <a href="http://www.technorati.com/tag/Programming" rel="tag">Programming</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://duck-wing.com/wp/2006/09/27/objective-c-3-structures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick shot Automator</title>
		<link>http://duck-wing.com/wp/2006/09/23/quick-shot-automator/</link>
		<comments>http://duck-wing.com/wp/2006/09/23/quick-shot-automator/#comments</comments>
		<pubDate>Sun, 24 Sep 2006 03:05:43 +0000</pubDate>
		<dc:creator>Macgiver</dc:creator>
				<category><![CDATA[Automator]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://duck-wing.com/wp/?p=50</guid>
		<description><![CDATA[I use a lot of Applescript when I use my Mac. I&#8217;ve learned quite a bit about the language over the years. Needless to say that it makes me a little snobby about using Automator. For the most part, I hate automator because it is so limited. What it has is pretty much all you [...]]]></description>
			<content:encoded><![CDATA[<p>I use a lot of Applescript when I use my Mac. I&#8217;ve learned quite a bit about the language over the years. Needless to say that it makes me a little snobby about using Automator. For the most part, I hate automator because it is so limited. What it has is pretty much all you get to do. However, once in awhile I gain an added appreciation for its simplicity. Here is an Automator &#8220;script&#8221; that takes a screenshot and then places the screen shot in my blog photos library within iPhoto. I&#8217;m sure if I worked long enough I could have come up with an Applescript to do it, but Automator allowed me to do it in about 10 seconds of work. Here it is (and yes, I used this automator &#8220;script&#8221; to take the screenshot)</p>
<p><a href="http://macgiver.wordpress.com/files/2006/09/Automator-1.png"><img src="http://macgiver.wordpress.com/files/2006/09/Automator-1-tm.jpg" height="351" width="394" border="1" hspace="4" vspace="4" alt="Automator" /></a></p>
<p><!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/Apple" rel="tag">Apple</a>, <a href="http://www.technorati.com/tag/Mac" rel="tag">Mac</a>, <a href="http://www.technorati.com/tag/OSX" rel="tag">OSX</a>, <a href="http://www.technorati.com/tag/Programming" rel="tag">Programming</a>, <a href="http://www.technorati.com/tag/Automator" rel="tag">Automator</a>, <a href="http://www.technorati.com/tag/Software" rel="tag">Software</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://duck-wing.com/wp/2006/09/23/quick-shot-automator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Objective C #2 &#8211; Method Arguments</title>
		<link>http://duck-wing.com/wp/2006/08/25/objective-c-2-method-arguments/</link>
		<comments>http://duck-wing.com/wp/2006/08/25/objective-c-2-method-arguments/#comments</comments>
		<pubDate>Sat, 26 Aug 2006 00:08:34 +0000</pubDate>
		<dc:creator>Macgiver</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Objective C]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://duck-wing.com/wp/?p=21</guid>
		<description><![CDATA[I&#8217;m still working through &#8220;Programming in Objective-C&#8221; (Stephen Kochan). Since I commute on the train, I have plenty of time during the day to read. I&#8217;m about a third done. I hope to finish in a couple of weeks. So keep in mind this is all still really new to me. I&#8217;m not trying to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m still working through <a href="http://www.amazon.com/exec/obidos/redirect?tag=ws%26link_code=xm2%26camp=2025%26creative=165953%26path=http://www.amazon.com/gp/redirect.html%253fASIN=0672325861%2526tag=ws%2526lcode=xm2%2526cID=2025%2526ccmID=165953%2526location=/o/ASIN/0672325861%25253FSubscriptionId=02ZH6J1W0649DTNS6002">&#8220;Programming in Objective-C&#8221; (Stephen Kochan)</a>. Since I commute on the train, I have plenty of time during the day to read. I&#8217;m about a third done. I hope to finish in a couple of weeks. So keep in mind this is all still really new to me. I&#8217;m not trying to create a tutorial, but rather share my experience learning the language.<br />
This one is very closely related to the previous post. This is about methods that accept arguments. If you break down this line:</p>
<p><em>- (void) setNumber: (int) n<br />
</em><br />
We already know that the beginning declares that the method will not be returning any values (i.e. <em>void</em>). But the colon says that this method will be accepting an argument. The next bracket indicates that the method <em>setNumber</em> will read in an integer. The integer is named &#8220;<em>n</em>.&#8221; Just as a side note, the minus sign in front of <em>(void)</em> indicates that this is an instance method. The other option is the plus sign to indicate a class method.<br />
Here&#8217;s a more complex one:</p>
<p><em>- (void) bounceBack:  (Height *) b;</em></p>
<p>This one is a method that accepts something that is of the type class <em>Height</em> which had been previously declared. The asterisk is what tells us that <em>Height</em> is already a class. The learning curve is getting steeper now.</p>
<p><!-- technorati tags start -->
<p>Technorati Tags: <a href="http://www.technorati.com/tag/Apple" rel="tag">Apple</a>, <a href="http://www.technorati.com/tag/Mac" rel="tag">Mac</a>, <a href="http://www.technorati.com/tag/Objective C" rel="tag">Objective C</a>, <a href="http://www.technorati.com/tag/Programming" rel="tag">Programming</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://duck-wing.com/wp/2006/08/25/objective-c-2-method-arguments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
