<?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>MacApper &#187; Sebastien Arbogast</title>
	<atom:link href="http://macapper.com/author/sebastien-arbogast/feed/" rel="self" type="application/rss+xml" />
	<link>http://macapper.com</link>
	<description>Mac Apps, Reviews, Previews, Interviews, and Giveaways.</description>
	<lastBuildDate>Mon, 06 Feb 2012 12:07:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Pixadex:  5562 Icons and Counting</title>
		<link>http://macapper.com/2007/11/06/pixadex-5562-icons-and-counting/</link>
		<comments>http://macapper.com/2007/11/06/pixadex-5562-icons-and-counting/#comments</comments>
		<pubDate>Tue, 06 Nov 2007 12:00:02 +0000</pubDate>
		<dc:creator>Sebastien Arbogast</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Organization]]></category>

		<guid isPermaLink="false">http://macapper.com/2007/11/06/pixadex-5562-icons-and-counting/</guid>
		<description><![CDATA[<p><img src='http://macapper.com/wp-content/uploads/2007/11/pixadex-icon1.png' alt='Pixadex Icon' class="image_float_right"/>There&#8217;s something really cool about the Mac OSX look-and-feel: big neat icons. And not only is it perfect for the dock, it&#8217;s also great to embellish Keynote presentations, articles, or even the posts on this blog.</p>
<p><a href="http://macapper.com/2007/11/06/pixadex-5562-icons-and-counting/" class="more-link">Read more on Pixadex:  5562 Icons and Counting&#8230;</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img src='http://macapper.com/wp-content/uploads/2007/11/pixadex-icon1.png' alt='Pixadex Icon' class="image_float_right"/>There&#8217;s something really cool about the Mac OSX look-and-feel: big neat icons. And not only is it perfect for the dock, it&#8217;s also great to embellish Keynote presentations, articles, or even the posts on this blog.</p>
<p>As a software developer, I often need cool icons for toolbar buttons and consequently have a really large collection of 128&#215;128 icons. The downside is that it is really a pain to manage all of these files in an orderly fashion.  And what about converting them from one format to another, or having a global view of all of them? It used to be a pain until I discovered Pixadex, by <a href="http://iconfactory.com">The Icon Factory</a>. Pixadex is one of those cheap little apps that can make your life so much easier. </p>
<p><strong>iPhoto&#8217;ish</strong></p>
<p>As the developers say it, &#8220;Pixadex is to icons, what Apple&#8217;s iPhoto is to images&#8221;. As a matter of fact, if you already use iPhoto to manage your family pictures, you won&#8217;t feel disorientated. Pixadex lets you manage your icon library exactly like you do in iPhoto. Well, in iPhoto &#8217;06 actually, because of course, events don&#8217;t make any sense for icons. Basically, you can organize your icons into libraries, view them as a grid or a list and you can even add keywords to them, making searching quick and easy.</p>
<p><img src='http://macapper.com/wp-content/uploads/2007/11/pixadex-icons.png' alt='Delicious Icons' class="image_centered"/></p>
<p><img src='http://macapper.com/wp-content/uploads/2007/11/pixadex-properties.png' alt='Pixadex icon properties pane' class="image_float_right"/><strong>Killer Features</strong></p>
<p>By double-clicking on an icon, you can add keywords and comments. And thanks to the integration with <a href="http://www.panic.com/candybar/">CandyBar</a>, you can easily assign any icon to an application or to any system icon. Obviously, you will need CandyBar is installed on your system. What you can do natively though, is to assign any icon as your iChat avatar, or export in Mac Icon, ICNS, Windows ICO, TIFF or PNG format.</p>
<p>As for the possible inputs for your library, you can easily import Mac Icons, IconFactory iContainer files, folders of icons, images and iconDropper packs. So obviously, since it was created by the guys from IconFactory, it&#8217;s particularly well integrated with this service and the different formats it has to offer, yet providing enough flexibility to import icons from all the services you know.</p>
<p>One thing that I really loved about it is that it was able to clean up all the duplicates that I had created by importing several variants of the same icon library.</p>
<p><strong>Things I Miss</strong></p>
<p>At this point, I really love this application but there are two things I really miss. The first one is a small integrated utility, ala <a href="http://macapper.com/2007/05/05/picturesque-review-makeup-for-your-images/">Picturesque</a>, that would make it possible to create variants of icons just by adding a couple of effects on the fly. The second feature I would like to see in a future version is a better integration with the rest of the system &#8211; it would be awesome if we could just access the Pixadex library directly from Keynote for example.</p>
<p>So if you&#8217;re desperately looking for a better way to manage your collections of icons instead of just dealing with them as if they were mere images, I would say Pixadex is definitely worth its $18.95 licence. And if you&#8217;re not convinced, you can always <a href="http://iconfactory.com/software/pixadex">download a free trial here</a> and see for yourself.</p>
]]></content:encoded>
			<wfw:commentRss>http://macapper.com/2007/11/06/pixadex-5562-icons-and-counting/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>A Cup of Java for the Mac</title>
		<link>http://macapper.com/2007/10/01/a-cup-of-java-for-the-mac/</link>
		<comments>http://macapper.com/2007/10/01/a-cup-of-java-for-the-mac/#comments</comments>
		<pubDate>Mon, 01 Oct 2007 13:00:08 +0000</pubDate>
		<dc:creator>Sebastien Arbogast</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Featured]]></category>

		<guid isPermaLink="false">http://macapper.com/2007/10/01/a-cup-of-java-for-the-mac/</guid>
		<description><![CDATA[<p><img src='http://macapper.com/wp-content/uploads/2007/10/java.png' alt='Java!' class="image_float_left"/>As a passionate software developer, I am what people sometimes call a computer geek. And yet there is something very special about my geekiness: I hate coffee. I have to confess that I have never drunk a single cup of coffee and yet &#8211; I love Java!</p>
<p><a href="http://macapper.com/2007/10/01/a-cup-of-java-for-the-mac/" class="more-link">Read more on A Cup of Java for the Mac&#8230;</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img src='http://macapper.com/wp-content/uploads/2007/10/java.png' alt='Java!' class="image_float_left"/>As a passionate software developer, I am what people sometimes call a computer geek. And yet there is something very special about my geekiness: I hate coffee. I have to confess that I have never drunk a single cup of coffee and yet &#8211; I love Java!</p>
<p>Ok, right, that&#8217;s a bad word trick that has been used thousands and thousands of times. Of course the Java I&#8217;m talking about is not something to drink, it&#8217;s something to write: I&#8217;m talking about the programming language.</p>
<p>One day, I was interviewed for a job and my potential employer asked me a very tricky question: how could you explain Java programming to your grandma? Well, that&#8217;s not what I&#8217;m going to do here, I am not going to take you through Java programming from scratch. I&#8217;ll just assume that you already are a Java programmer on Windows or Unix, and you are afraid to switch to the Mac because of Java. Welcome to the wonderful world of Java development on the Mac. Please fasten your seatbelt&#8230;</p>
<p><strong>Environment variables</strong><br />
One of the first issues you usually encounter is how to setup that damn JAVA_HOME environment variable. On Windows it&#8217;s relatively simple: click, click, click and click. On Mac OS X, it can be a little trickier. Let&#8217;s try to see what <a href="http://developer.apple.com/qa/qa2001/qa1067.html">Apple has to say about setting environment variables</a>. In a few words, the solution is to create or edit the file /Users/<your_login>/.MacOSX/environment.plist which is actually an XML file.</p>
<p>For that, either you install developer tools from your Mac O SX installation disc and more specifically the Property List Editor, or you just use your favourite text editor. For the sake of convenience, here is my environment.plist file with a few useful environment variables for various Java-related tools:</p>
<p><em>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />
&lt;!DOCTYPE plist PUBLIC &quot;-//Apple Computer//DTD PLIST 1.0//EN&quot;<br />
&quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;</p>
<p>&lt;plist version=&quot;1.0&quot;&gt;<br />
&lt;dict&gt;<br />
&nbsp;&nbsp;&lt;key&gt;FLEX_HOME&lt;/key&gt;<br />
&nbsp;&nbsp;&lt;string&gt;/Applications/flex_sdk_2_hf1&lt;/string&gt;<br />
&nbsp;&nbsp;&lt;key&gt;JAVA_HOME&lt;/key&gt;<br />
&nbsp;&nbsp;&lt;string&gt;/System/Library/Frameworks/JavaVM.framework/Home&lt;/string&gt;<br />
&nbsp;&nbsp;&lt;key&gt;JBOSS_HOME&lt;/key&gt;<br />
&nbsp;&nbsp;&lt;string&gt;/Applications/jboss-4.0.5.GA&lt;/string&gt;<br />
&nbsp;&nbsp;&lt;key&gt;M2_HOME&lt;/key&gt;<br />
&nbsp;&nbsp;&lt;string&gt;/Applications/maven-2.0.7&lt;/string&gt;<br />
&nbsp;&nbsp;&lt;key&gt;M2_REPO&lt;/key&gt;<br />
&nbsp;&nbsp;&lt;string&gt;/Users/sarbogast/.m2/repository&lt;/string&gt;<br />
&nbsp;&nbsp;&lt;key&gt;MAVEN_OPTS&lt;/key&gt;<br />
&nbsp;&nbsp;&lt;string&gt;-XX:MaxPermSize=128m -Xmx512m&lt;/string&gt;<br />
&lt;/dict&gt;<br />
&lt;/plist&gt;</em></p>
<p>Save this file, log out and back in and that should be it.</p>
<p>Now in my experience, this only works when you want to add an environment variable. But what about extending existing ones, like $PATH for example. Some say it depends on your shell. Well that&#8217;s true: if you have modified your default shell to something like tcsh or something else, you will probably have to dive into your shell configuration file (.tcshrc for example). But if you&#8217;re just using the default shell, all you have to do is to edit /Users/<your_login>/.profile. Here is what is in mine:</p>
<p><em>test -r /sw/bin/init.sh &#038;&#038; . /sw/bin/init.sh</em></p>
<p>*Ed:  Had to break the line below to fit in the page.</p>
<p><em>PATH=&#8221;/Applications/flex_sdk_2_hf1/bin:/Applications/maven-2.0.7/bin:<br />
/usr/local/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}&#8221;<br />
export PATH</em></p>
<p>As you can see, thanks to the &#8220;:${PATH}&#8221; at the end of the line, we&#8217;ve extended the default PATH variable and I&#8217;ve added useful things like the Maven bin directory. Don&#8217;t forget to log out and back in, and run commands like &#8220;echo $PATH&#8221; to check that your environment variable is correctly set.</p>
<p><strong>Getting API and sources</strong><br />
Assuming that you have downloaded and installed the Mac OS X Java 5 distribution <a href="http://www.apple.com/support/downloads/javaformacosx104release5.html">here</a>, something might upset you a little bit: where are the JDK sources? Where is Javadoc? Both of these are very important when you&#8217;re developing using advanced IDE&#8217;s like Eclipse or so. Of course you often need to see the Javadoc of the class or method you&#8217;re trying to use.</p>
<p>But even more importantly is when you automatically generate some implementation of a standard interface from the JDK; something like TableCellRenderer for example. Well, your IDE names all the method parameters based on their name in the source. And if it can&#8217;t find the source, then they are named based on their type. That&#8217;s ugly, huh?</p>
<p>Well, at least I&#8217;ve been struggling with this for a while until I found a <a href="http://tech.puredanger.com/2007/09/21/java-source-mac/">very interesting article</a> in my RSS feeds. Basically, here is the procedure:</p>
<ul>
<li>Create yourself an <a href="http://developer.apple.com/">Apple Developer Connection</a> account if you don&#8217;t have one</li>
<li>Log in to <a href="https://connect.apple.com/">ADC website</a></li>
<li>Then click the &#8220;Downloads&#8221; link</li>
<li>Then click &#8220;Java&#8221; on the right menu</li>
<li>And finally download &#8220;J2SE 5.0 Release 5 Developer Documentation&#8221;</li>
<li>Once you&#8217;re done with setup, everything can be found and linked to in /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home</li>
</ul>
<p>Isn&#8217;t it amazing?</p>
<p><strong>Java editors</strong><br />
OK, now let&#8217;s talk about your development environment. Of course, as usual there are several schools here and I will just give you a few leads.</p>
<p>First things first: forget about XCode. Before getting my Mac, I thought &#8220;wow that&#8217;s cool, Mac OS X is actually packed up with a full IDE like Eclipse, and if it is as neat as their other apps, it might be interesting&#8230;&#8221; Bad guess! XCode might be really adapted for Cocoa and Objective-C development, but for Java, it&#8217;s really weird. That&#8217;s why I looked for other options.</p>
<p>The first thing that can be very useful is a simple text editor with syntax coloring and that kind of stuff. Very interesting when you just want to view an isolated file or for very small projects. Of course you could buy something like <a href="http://macromates.com/">Textmate</a>, which is very popular. But before getting $39 out of your pocket, you might want to consider downloading Smultron for free. And if you&#8217;re not satisfied with <a href="http://smultron.sourceforge.net/">Smultron</a> default icons, there&#8217;s even a <a href="http://www.shinze.com/index.php/post/2006/10/19/Smultron-icons-11">neater set here</a>.</p>
<p>For those Unix fans who can&#8217;t work outside of Emacs (and I&#8217;ve been a great Emacs fan myself when I was a student), there is this special distribution just for you. Now just to avoid a World War III between Emacs and VIM fans, I&#8217;ll just point to this very interesting article about <a href="http://articles.techrepublic.com.com/5100-22-5054618.html">Configuring VI for Java Development</a>.</p>
<p>Of course, I won&#8217;t go into more details about <a href="http://www.eclipse.org/downloads/">Eclipse</a>, which is of course available for the Mac. But since you have switched to a platform that provides so much more usability and ergonomy, maybe now would be the right time for you to try something better as a Java IDE. Something like&#8230; <a href="http://www.jetbrains.com/idea/">IntelliJ Idea</a>. OK, it&#8217;s not free, it&#8217;s something like 250 bucks for a personal license, but believe me, if you work on big projects, it&#8217;s really worth it. As Jetbrains guys told us last year at JavaPolis, &#8220;it&#8217;s the only Java IDE that is actually worth paying for!&#8221;. And it works great on the Mac, so&#8230;</p>
<p>Last but not least, I want to talk to you about something else. It&#8217;s not a text editor or an IDE, but a companion that can be very precious in you Java tasks: iTerm. Of course, Mac OS X comes with its very own Terminal application, but iTerm offers a whole lot of additional features like tabs, bookmarks and so on.</p>
<p><strong>Special keys</strong><br />
When I wrote my first Java classes on my brand new Mac (inside IntelliJ Idea of course), I first had big trouble writing something like:</p>
<p><em>if(foo == null || foo.bar() == 0)<br />
  //do that<br />
}</em></p>
<p>Why? Because of the keyboard! OK, I don&#8217;t know what kind of keyboard layout you have, maybe it&#8217;s simpler on yours, but on my French Belgian keyboard, I couldn&#8217;t find characters like &#8220;|&#8221;. So I had to do a little bit of research and just in case you don&#8217;t find them either, here are a few tips:</p>
<p><strong>| &#8211; alt+shift+L<br />
{ &#8211; alt+5<br />
} &#8211; alt+)<br />
[ - alt+shift+5<br />
] &#8211; alt+shift+)</strong></p>
<p><strong>What about native apps?</strong><br />
A few weeks ago, I was looking for a bandwidth counter to help me monitor my download/upload quota with my DSL provider. And I finally found a menu bar widget to do just that. But unfortunately it was not supported anymore and it didn&#8217;t work with the new infrastructure of my provider. So I contacted the author, just in case I could get the source code and try to upgrade it in some way. He kindly sent me the source code and I was very surprised to see that it was Java.</p>
<p>That&#8217;s when I discovered that there was a Java API on Cocoa libraries. Well, at least <a href="http://developer.apple.com/documentation/Cocoa/Conceptual/JavaTutorial/chapter01/chapter_1_section_1.html">there used to be one</a>! Apparently, Apple has made a choice: they won&#8217;t support these API&#8217;s anymore, and if you want to develop native apps for the Mac, you will have to learn a whole new language: <a href="http://developer.apple.com/documentation/Cocoa/Conceptual/ObjCTutorial/index.html#//apple_ref/doc/uid/TP40000863">Objective-C</a>. I don&#8217;t know about you, but I&#8217;m not sure that Objective-C is gonna be profitable in the IT industry anytime soon, so I&#8217;m gonna stick with Java for a while, at least until I have some time left to learn a whole new language.</p>
<p>Fortunately, there is an alternative.</p>
<p><strong>Look And Feel</strong><br />
There is something very special about Java on the Mac. Sun provides Java implementations for Windows, Linux and Solaris, but not for the Mac. It means that it&#8217;s Apple responsibility to provide its own implementation of the JDK. It&#8217;s very disturbing because it means that the Mac OS X JDK is always going to be behind Windows in terms of schedule. For example, there is no final implementation of JDK 6 for the Mac yet. But on the other hand, it means that Apple developers can really focus on adapting Java, and more specifically Java UI libraries to the Mac OS X look and feel.</p>
<p>For example, I was working on an MDI application and I was very surprised to see that when I minimized my internal frames, they actually minimized into some sort of dock at the bottom of the JDesktopPane. That&#8217;s something very specific in the Mac implementation. And then I found <a href="http://www.devdaily.com/apple/mac/java-mac-native-look/">this article</a> which details even more ways to customize your Java application for the Mac and make it look almost like a native application. Ain&#8217;t that cool?</p>
<p><strong>Java 6 is coming through!</strong><br />
Now what about JDK 6? The truth is there is a &#8220;hidden&#8221; developer preview implementation of JDK 6 on the Mac but I can&#8217;t find it anymore. It seems that Apple is preparing a final release bundled with Mac OS X 10.5 Leopard due in October 2007. And this new release could feature a Swing look-and-feel adapted for the rumored new &#8220;Illuminous&#8221; style. Just a few weeks and we&#8217;ll see&#8230;</p>
<p><strong>Anything else?</strong><br />
If you have other tips and tricks about developing Java applications on the Mac, feel free to leave comments and let&#8217;s make this post a reference for all Java developers on the Mac.</p>
]]></content:encoded>
			<wfw:commentRss>http://macapper.com/2007/10/01/a-cup-of-java-for-the-mac/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

