<?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>semanticpool &#187; Mac/iPhone/Touch Development</title>
	<atom:link href="http://www.semanticpool.de/category/mac-iphone-ipod-touch-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.semanticpool.de</link>
	<description>finest thoughts since 2003</description>
	<lastBuildDate>Mon, 14 Jun 2010 15:08:04 +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>Google Android challenges Apple iPhone</title>
		<link>http://www.semanticpool.de/google-android-challenges-apple-iphone/</link>
		<comments>http://www.semanticpool.de/google-android-challenges-apple-iphone/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 08:11:15 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Mac/iPhone/Touch Development]]></category>

		<guid isPermaLink="false">http://www.semanticpool.de/?p=601</guid>
		<description><![CDATA[Google is targeting the iPhone&#8217;s lack of real keyboards; inability to run simultaneous apps; inability to allow open development; and lack of interchangeable batteries.
via Google Android challenges Apple iPhone &#124; 26 Oct 2009 &#124; ComputerWeekly.com.
]]></description>
			<content:encoded><![CDATA[<blockquote><p>Google is targeting the iPhone&#8217;s lack of real keyboards; inability to run simultaneous apps; inability to allow open development; and lack of interchangeable batteries.</p></blockquote>
<p>via <a href="http://www.computerweekly.com/Articles/2009/10/26/238290/google-android-challenges-apple-iphone.htm">Google Android challenges Apple iPhone | 26 Oct 2009 | ComputerWeekly.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.semanticpool.de/google-android-challenges-apple-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone Developer Program</title>
		<link>http://www.semanticpool.de/iphone-developer-program/</link>
		<comments>http://www.semanticpool.de/iphone-developer-program/#comments</comments>
		<pubDate>Mon, 10 Mar 2008 06:35:23 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Mac/iPhone/Touch Development]]></category>

		<guid isPermaLink="false">http://www.semanticpool.de/iphone-developer-program/</guid>
		<description><![CDATA[The iPhone Developer Program provides a complete and integrated process for developing, debugging, and distributing your free, commercial, or in-house applications for iPhone and iPod touch. Complete with development resources, real-world testing on iPhone, and distribution on the App Store, you have everything you need to go from code to customer.
see developer.apple.com/iphone/program
]]></description>
			<content:encoded><![CDATA[<blockquote><p>The iPhone Developer Program provides a complete and integrated process for developing, debugging, and distributing your free, commercial, or in-house applications for iPhone and iPod touch. Complete with development resources, real-world testing on iPhone, and distribution on the App Store, you have everything you need to go from code to customer.</p></blockquote>
<p>see <a href="http://developer.apple.com/iphone/program/">developer.apple.com/iphone/program</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.semanticpool.de/iphone-developer-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Developing Rails Applications on Mac OS X Leopard</title>
		<link>http://www.semanticpool.de/developing-rails-applications-on-mac-os-x-leopard/</link>
		<comments>http://www.semanticpool.de/developing-rails-applications-on-mac-os-x-leopard/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 16:59:55 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Mac/iPhone/Touch Development]]></category>
		<category><![CDATA[Ruby/RoR]]></category>

		<guid isPermaLink="false">http://www.semanticpool.de/developing-rails-applications-on-mac-os-x-leopard/</guid>
		<description><![CDATA[This article gives you a full tour of Ruby on Rails 2.0 on Leopard—starting with building a web application using the latest Rails features with Xcode 3.0, and finishing with deploying the application to a production server running Leopard Server. Along the way we&#8217;ll explore unique features and benefits that Leopard brings to the party. [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>This article gives you a full tour of Ruby on Rails 2.0 on Leopard—starting with building a web application using the latest Rails features with Xcode 3.0, and finishing with deploying the application to a production server running Leopard Server. Along the way we&#8217;ll explore unique features and benefits that Leopard brings to the party. In the end you&#8217;ll be better equipped to consider the advantages of powering your web application with Rails on Leopard.</p>
<p>(seen @ <a href="http://developer.apple.com/tools/developonrailsleopard.html">Developing Rails Applications on Mac OS X Leopard</a>)</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.semanticpool.de/developing-rails-applications-on-mac-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Leopard for developers</title>
		<link>http://www.semanticpool.de/leopard-for-developers/</link>
		<comments>http://www.semanticpool.de/leopard-for-developers/#comments</comments>
		<pubDate>Thu, 08 Feb 2007 11:04:12 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Mac/iPhone/Touch Development]]></category>

		<guid isPermaLink="false">http://www.semanticpool.de/leopard-for-developers/</guid>
		<description><![CDATA[Interesting Podcast episode from &#8220;Late Night Cocoa&#8221; about Leopard &#8212; the new version of Mac OS X &#8212; and the advantages for developers.
]]></description>
			<content:encoded><![CDATA[<p>Interesting <a href="http://latenightcocoa.com/?q=node/25">Podcast episode</a> from &#8220;Late Night Cocoa&#8221; about <em>Leopard</em> &#8212; the new version of Mac OS X &#8212; and the advantages for developers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.semanticpool.de/leopard-for-developers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Share your library with Microsoft</title>
		<link>http://www.semanticpool.de/share-your-library-with-microsoft/</link>
		<comments>http://www.semanticpool.de/share-your-library-with-microsoft/#comments</comments>
		<pubDate>Mon, 17 Jul 2006 06:42:38 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Mac/iPhone/Touch Development]]></category>

		<guid isPermaLink="false">http://www.semanticpool.de/share-your-library-with-microsoft/</guid>
		<description><![CDATA[Daniel Jalkut wrote in his Red Sweater Blog that Microsoft will possibly use information from the iTunes-Library for their new iPod competitor.
The idea is that as a lure to switch to their service, Microsoft will offer to give you for free Windows Media versions of some number of songs from your existing iTunes library.
To get [...]]]></description>
			<content:encoded><![CDATA[<p>Daniel Jalkut <a href="http://www.red-sweater.com/blog/157/you-own-it">wrote in his Red Sweater Blog</a> that Microsoft will possibly use information from the iTunes-Library for their new iPod competitor.</p>
<blockquote><p>The idea is that as a lure to switch to their service, Microsoft will offer to give you for free Windows Media versions of some number of songs from your existing iTunes library.</p></blockquote>
<p>To get a list of the tracks you purchased, Jalkut built a little AppleScript which demonstrates the simplicity to get such informations:</p>
<pre>tell application "iTunes"

every track of library playlist 1 whose kind is "Protected AAC audio file"

end tell</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.semanticpool.de/share-your-library-with-microsoft/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wil Shipley&#8217;s &#8220;Pimp My Code&#8221;</title>
		<link>http://www.semanticpool.de/wil-shipleys-pimp-my-code/</link>
		<comments>http://www.semanticpool.de/wil-shipleys-pimp-my-code/#comments</comments>
		<pubDate>Sat, 08 Jul 2006 12:07:24 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Mac/iPhone/Touch Development]]></category>

		<guid isPermaLink="false">http://www.semanticpool.de/wil-shipleys-pimp-my-code/</guid>
		<description><![CDATA[Who still doesn&#8217;t know Wil Shipley&#8217;s &#8220;Pimp My Code&#8221; postings in his blog should take a look at them. Very informative for Cocoa developers. Start with Part I.
]]></description>
			<content:encoded><![CDATA[<p>Who still doesn&#8217;t know <a href="http://wilshipley.com/blog/">Wil Shipley</a>&#8217;s &#8220;Pimp My Code&#8221; postings in his blog should take a look at them. Very informative for Cocoa developers. Start with <a href="http://wilshipley.com/blog/2005/07/code-insults-mark-i.html">Part I</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.semanticpool.de/wil-shipleys-pimp-my-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding an iTunes-control to the NSStatusBar</title>
		<link>http://www.semanticpool.de/adding-an-itunes-control-to-the-nsstatusbar/</link>
		<comments>http://www.semanticpool.de/adding-an-itunes-control-to-the-nsstatusbar/#comments</comments>
		<pubDate>Sun, 25 Jun 2006 09:56:30 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Mac/iPhone/Touch Development]]></category>

		<guid isPermaLink="false">http://www.semanticpool.de/adding-an-itunes-control-to-the-nsstatusbar/</guid>
		<description><![CDATA[I played a little bit with Cocoa and as a little testing-project i wanted to integrate a drop-down menu to the NSStatusBar for controlling the iTunes-application. Its not finished yet and i dont know if i&#8217;ll work on it in the next time. But it works for the three functions &#8220;play/pause&#8221;, &#8220;previous song&#8221; and &#8220;next [...]]]></description>
			<content:encoded><![CDATA[<p>I played a little bit with Cocoa and as a little testing-project i wanted to integrate a drop-down menu to the NSStatusBar for controlling the iTunes-application. Its not finished yet and i dont know if i&#8217;ll work on it in the next time. But it works for the three functions &#8220;play/pause&#8221;, &#8220;previous song&#8221; and &#8220;next song&#8221;. And this after only some minutes of work. :)</p>
<p>So, thats what i did:</p>
<p>First step: Create the NSMenu for the statusbar using the Interface Builder</p>
<p>After that: Make the connections for the Menu Items</p>
<p>Thirdly: Create the Header File</p>
<pre>
@interface TunesControl : NSObject
{
	IBOutlet NSMenu *tunesMenu;
}
- (IBAction)nextSong:(id)sender;
- (IBAction)previousSong:(id)sender;
- (IBAction)playPause:(id)sender;
@end
</pre>
<p>Finally the Implementation File: I use NSAppleScript to control iTunes. And i created the menu in the NSStatusBar using an icon as NSStatusItem and the NSMenu from the Interface Builder.</p>
<pre>
@implementation TunesControl
- (IBAction)nextSong:(id)sender {
	NSAppleScript *script = [[NSAppleScript alloc]
	initWithSource:@"tell application \"iTunes\"nnext tracknend tell"];
	[script executeAndReturnError:nil];
}

- (IBAction)previousSong:(id)sender {
	NSAppleScript *script = [[NSAppleScript alloc]
	initWithSource:@"tell application \"iTunes\"nprevious tracknend tell"];
	[script executeAndReturnError:nil];
}

- (IBAction)playPause:(id)sender {
	NSAppleScript *script = [[NSAppleScript alloc]
	initWithSource:@"tell application \"iTunes\"nplaypausenend tell"];
	[script executeAndReturnError:nil];
}

- (void)awakeFromNib {
	NSStatusBar *statusBar = [NSStatusBar systemStatusBar];
	NSStatusItem *statusItem = [statusBar statusItemWithLength:NSVariableStatusItemLength];
	NSImage *itemImage = [[NSImage alloc]
	initWithContentsOfFile: [[NSBundle mainBundle] pathForResource:@"icon" ofType:@"png"]];
	[statusItem retain];

	[statusItem setImage: itemImage];
	[statusItem setHighlightMode:YES];
	[statusItem setMenu:tunesMenu];
}
@end
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.semanticpool.de/adding-an-itunes-control-to-the-nsstatusbar/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

