<?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"
	>

<channel>
	<title>Cocoia Blog &#187; How-To</title>
	<atom:link href="http://blog.cocoia.com/category/how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cocoia.com</link>
	<description>The Cocoia Blog is the website of Sebastiaan de With, a Dutch Icon and Interface designer.</description>
	<pubDate>Thu, 14 Aug 2008 11:48:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>Make more from your Leopard movie collection.</title>
		<link>http://blog.cocoia.com/2008/01/06/make-more-from-your-leopard-movie-collection/</link>
		<comments>http://blog.cocoia.com/2008/01/06/make-more-from-your-leopard-movie-collection/#comments</comments>
		<pubDate>Sun, 06 Jan 2008 02:04:29 +0000</pubDate>
		<dc:creator>sebastiaan</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[Graphics]]></category>

		<category><![CDATA[How-To]]></category>

		<guid isPermaLink="false">http://blog.cocoia.com/2008/01/06/make-more-from-your-leopard-movie-collection/</guid>
		<description><![CDATA[Whether you have purchased movies online, made digital backups, or simply have movies stored on your Mac or on an external drive, it tends to turn into a rather dull folder tree with a list of movie titles. Quick look or Cover Flow won&#8217;t help me out - I put my movies in directories.




Ouch, this [...]]]></description>
			<content:encoded><![CDATA[<p>Whether you have purchased movies online, made digital backups, or simply have movies stored on your Mac or on an external drive, it tends to turn into a rather dull folder tree with a list of movie titles. Quick look or Cover Flow won&#8217;t help me out - I put my movies in directories.
</p>
<p></p>
<div align="center"><img src="http://blog.cocoia.com/wp-content/uploads/2008/01/dullmovies.jpg" alt="dullmovies.jpg" border="0" width="357" height="290" /></div>
<div align="center">
<p><i>Ouch, this isn&#8217;t exactly visual browsing.</i></p>
</div>
<p></p>
<p>Since I had this problem with my digitalized movie collection and I wanted to browse them casually, while at parties and with friends on my Macbook Pro, or simply at home on a dull afternoon, I figured something out to make everything a lot more appealing. Dive on in.</p>
<p><span id="more-312"></span></p>
<p></p>
<p>You need very little tools, and a bit of effort for this improvement in your movie-browsing user experience. First of all, get <a href="http://www.shinyfrog.net/it/software/img2icns/">img2icns</a> - it&#8217;s a neat freeware, open-source app that will turn images you drag onto its icon into an ICNS file, a folder icon (which is what we want) or something else, which isn&#8217;t needed in this how-to. Get it <a href="http://www.shinyfrog.net/downloads/img2icns.dmg">here</a>.</p>
<p></p>
<p>Now that you have the right tools, it&#8217;s time to get cracking. List your movies, and find DVD cover artwork or posters (whatever strikes your fancy - I prefer posters) for them. Drag them onto img2icns&#8217; icon (make sure &#8216;folder icon&#8217; is checked) and the icons will pop up on your desktop by default. You can copy-paste these icons over as you would any other icon. After some clicking, here&#8217;s my result;</p>
<p></p>
<div align="center"><a href="http://flickr.com/photos/cocoia/2169848241/"><img src="http://blog.cocoia.com/wp-content/uploads/2008/01/niceness.jpg" alt="niceness.jpg" border="0" width="500" height="319" /></a></div>
<div align="center">
<p><i>Nice! Click for larger on Flickr.</i></p>
</div>
<p></p>
<p>And that&#8217;s all there&#8217;s to it to beautify your collection. Try it in Cover Flow - img2icns supports icons up to 512&#215;512 pixels, so using large images will result in some very nice images!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cocoia.com/2008/01/06/make-more-from-your-leopard-movie-collection/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Graph your Airport Express / Extreme data throughput and more.</title>
		<link>http://blog.cocoia.com/2007/11/06/graph-your-airport-express-extreme-data-throughput-and-more/</link>
		<comments>http://blog.cocoia.com/2007/11/06/graph-your-airport-express-extreme-data-throughput-and-more/#comments</comments>
		<pubDate>Tue, 06 Nov 2007 18:44:04 +0000</pubDate>
		<dc:creator>sebastiaan</dc:creator>
		
		<category><![CDATA[Code]]></category>

		<category><![CDATA[Hacking]]></category>

		<category><![CDATA[How-To]]></category>

		<category><![CDATA[Personal Work]]></category>

		<guid isPermaLink="false">http://blog.cocoia.com/2007/11/06/graph-your-airport-express-extreme-data-throughput-and-more/</guid>
		<description><![CDATA[In an earlier post, I asked for your interest in a how-to on graphing several network statistics using MRTG, an open-source application that generates graphs using data pulled from SNMP. I used an Airport Extreme (802.11n, gigabit) for this, but it should work with Snow / Graphite Airport base stations and up (Express and Extreme). [...]]]></description>
			<content:encoded><![CDATA[<p>In an earlier post, I asked for your interest in a how-to on graphing several network statistics using MRTG, an open-source application that generates graphs using data pulled from SNMP. I used an Airport Extreme (802.11n, gigabit) for this, but it should work with Snow / Graphite Airport base stations and up (Express and Extreme). For other routers, your mileage may vary, and it may even not be possible, so I decided not to make a guide for anything else than Apple&#8217;s routers. If you want to have graphs in your desktop, updated in real time, as seen here, read on!</p>
<p></p>
<p><span id="more-244"></span></p>
<p>For this how-to, you need; </p>
<p>- an Apple Airport wireless base station.</p>
<p>- Airport Utility </p>
<p>- OS X 10.4 or higher (yes, Leopard is fine)</p>
<p>- your Mac&#8217;s installation discs if you don&#8217;t have the Developer tools installed yet.</p>
<p></p>
<p>Ready? Let&#8217;s go!</p>
<p><strong>Step One: </strong>First of all, authenticate with your wireless network and open your Airport Utility. You should see something like this;</p>
<p></p>
<div align="center"><img src="http://blog.cocoia.com/wp-content/uploads/2007/11/picture-2.png" alt="Picture 2.png" border="0" width="416" height="282" /></a></div>
<p></p>
<p>Note the name of the base station here; we will need it later. As you can see in the source list on the left, mine&#8217;s &#8220;Prokyon&#8221;. Click &#8220;Manual Setup&#8221;, and once the settings have been loaded, select &#8220;Advanced&#8221; from the toolbar. </p>
<div align="center"><img src="http://blog.cocoia.com/wp-content/uploads/2007/11/picture-3.png" alt="Picture 3.png" border="0" width="415" height="337" /></div>
<p>This is the selection of tabs you will find under &#8220;Advanced&#8221;. The first tab, &#8220;Logging &#038; SNMP&#8221;, is the tab we need. Check &#8216;allow SNMP&#8217; (it doesn&#8217;t have to be over WAN, as this will allow you to monitor statistics over the internet, exposing a possible security hole). That&#8217;s it for Airport Utility for now. Save the settings and quit the utility. </p>
<p><strong>Step Two:</strong> Now we&#8217;re going to set up MRTG. You can get an easy-to-use binary from <a href="http://www.mosxsw.com/port/mrtg/">here</a>; follow the basic instructions, namely;</p>
<p> Open a terminal,</p>
<p>cd (directory containing )mrtg-2.9.4-mosx.tgz</p>
<p>su</p>
<p>enter your root password</p>
<p>tar xzf mrtg-2.9.4-mosx.tgz</p>
<p>cd mrtg-2.9.4-mosx</p>
<p>./install.sh</p>
<p>exit 
</p>
<p>If all goes well, you now have &#8216;mrtg&#8217; installed. Test it by typing &#8216;mr&#8217; at the command line followed by pressing the &#8216;tab&#8217; key. It should, given you don&#8217;t have other utilities installed beginning with &#8216;mr&#8217;, autocomplete to &#8216;mrtg&#8217;.</p>
<p><strong>Step Three:</strong> Now, before we start setting up MRTG to use the SNMP services of your router, let&#8217;s test if it actually works. Open a terminal, and enter;</p>
<p></p>
<p><code>snmpwalk -v 2c -c public -M /usr/share/snmp/mibs:$HOME/share/mibs -m+AIRPORT-BASESTATION-3-MIB (Base station name).local 1.3.6.1.4.1.63.501</code><br />
</p>
<p>All on one line. In this case, replace &#8216;-c public&#8217; with either the community string you set in the Airport Utility (&#8217;-c thestringyouentered&#8217;) - if you left this blank in the Airport Utility, it either defaults to &#8216;public&#8217; or your base station password. Try both; it will either time out or spit out a huge amount of information. Also replace &#8216;Base station name&#8217; with your base station name, as I told you to note in the first step. Mine would be &#8216;Prokyon.local&#8217;. Done filling the blanks? Press enter, and let it roll.</p>
<p>If it times out, check if SNMP is enabled or restart your Airport (also remember to check if the community string you set with the -c flag is either &#8216;public&#8217; or your password). If it gives an error about missing something, download the Airport MIB from Apple and copy it to &#8220;/usr/share/snmp/mibs&#8221; (you can &#8216;Go to folder&#8217; with CMD+Shift+G in Finder to reach this directory), then try again.</p>
<p>You should get a whole lot of output in your terminal. Working? Great, let&#8217;s go to the next step.</p>
<p><strong>Step Four:</strong> Along with MRTG, we installed a utility called &#8216;cfgmaker&#8217;, that will generate MRTG configuration files for us. In the terminal, we will have to generate such a configuration. Don&#8217;t sweat, it&#8217;s very painless.</p>
<p><code>cfgmaker public@192.168.2.5 > ~/mrtg.cfg</code></p>
<p>Ensure that &#8216;public&#8217; is your community string. As described in the last step, this is most likely either your base station password (-not- the <strong>network</strong> password) or just &#8216;public&#8217;. 192.168.2.5 is my router&#8217;s IP address in this case; you should check what yours is, either by doing a &#8216;port scan&#8217; with the Network Utility on your Mac, or by checking with your network preferences in System Preferences. It&#8217;s possibly also listed in the trusty Airport Utility. Fill in your IP address (ensure the community string and the IP address are separated by just a &#8216;@&#8217;) and let it do its job. The file &#8216;mrtg.cfg&#8217; has been generated in your home directory.</p>
<p><strong>Step Five:</strong> Now we can let MRTG do it&#8217;s first run. For sharing on the local network, I placed my MRTG web-pages and graphs in &#8220;~/Sites/MRTG/&#8221; - note that &#8216;~&#8217; stands for /Users/myname/ here - as it is also very convenient. If you want to go on the safe side and do the same thing, make the directory in advance; MRTG -will not- do this for you. </p>
<p>Edit the newly generated mrtg.cfg with an editor like TextMate or nano (in the terminal). For the least hassle, I will describe using nano in your terminal to add the final changes to let MRTG know where to put its files.</p>
<p><code>nano ~/mrtg.cfg</code></p>
<p>Is what you need to type into your terminal. You&#8217;ll see something a bit like this;<br />
</p>
<div align="center"><img src="http://blog.cocoia.com/wp-content/uploads/2007/11/picture-4.png" alt="Picture 4.png" border="0" width="415" height="261" /></div>
<p></p>
<p>Move your cursor to the line &#8220;#   FOR UNIX&#8221; and delete the single leading hash mark (#) in the line beneath it. Enter the path of where you want to store the files here, as you can see, I chose /Users/superuser/Sites/mrtg/, as my account&#8217;s short name is &#8217;superuser&#8217;. To save the changes, press CTRL+X, and &#8220;Y&#8221;. </p>
<p><strong>Step Six:</strong> Now we will run the MRTG application. Since on Leopard, MRTG complained that I used a Unicode environment, I set the shell&#8217;s environment variable &#8216;LANG&#8217; to &#8216;C&#8217; before using it. The whole command to run MRTG then looks like this;</p>
<p><code> env LANG=C mrtg ~/mrtg.cfg </code></p>
<p>This is provided you followed my instructions and your .cfg file is located in ~/ (your user directory). If all goes well, MRTG should just do its thing and return your control over the prompt after a second or a few. If it outputs errors, check the steps to see if you didn&#8217;t do something a bit different. You can now check your directory (~/Sites/mrtg/ for me) to see your first graphs. </p>
<div align="center"><img src="http://blog.cocoia.com/wp-content/uploads/2007/11/picture-6.png" alt="Picture 6.png" border="0" width="415" height="275" /></div>
<p></p>
<p>This is my MRTG output directory, and as you can see, it generated files with (your router IP address).html as a name, with a number appended to indicate the interface. Several interfaces exist on the Airport Extreme; the most interesting ones are the WAN and ATH0 interfaces, respectively your internet connection port and the wireless interface. The graphs for these, provided you run MRTG periodically, show the data throughput graphed over time. Now, since it is a bit tiresome to run MRTG all day in your terminal, we need something to do that -for- us. </p>
<p><strong>Step Seven:</strong> Fortunately, there&#8217;s an excellent tool for adding such a &#8216;daemon&#8217; function to our system. Running Leopard, mind that there is an extra step here, which I will let Tiger users do as well for certainty. Download <a href="http://lingon.sourceforge.net/">&#8216;Lingon&#8217;</a>, Peter Borg&#8217;s excellent GUI for launchd, OS X&#8217;s initialisation system and more. Once the download has completed, run it, and open a terminal.</p>
<p>In the terminal, we&#8217;re going to make a shell script with the single line of instructions that loads up MRTG. Let&#8217;s use nano for convenience again, so enter;<br />
<code>nano mrtg.sh</code><br />
and enter the command you used to run MRTG (<code> env LANG=C mrtg ~/mrtg.cfg</code> in my case), but <strong>add the complete paths</strong> this time. My command would look like this;</p>
<p><code> env LANG=C /opt/local/bin/mrtg Users/superuser/mrtg.cfg </code><br />
<br />
 Exit and save again with Ctrl + X. Remember to make sure the paths are accurate and the command works (test run it in your terminal to see if you get any errors). Place the shell-script somewhere <strong>out of</strong> your user directory, like /Users/Shared/, and switch to Lingon. </p>
<p>In Lingon, press &#8216;New&#8217; and make an appropriate choice; you can use these settings as an example;</p>
<p>
<img src="http://blog.cocoia.com/wp-content/uploads/2007/11/picture-7.png" alt="Picture 7.png" border="0" width="415" height="284" /><br />
</p>
<p>At the bottom, you can see I let it run every three minutes. You can make it run as often as you want. Save settings, and depending on your choice of Agent, reboot or log out to make the changes happen. </p>
<p>Congratulations! If all went well, you should have an auto-updating set of graphs now. You can choose to do two things now; check these graphs occasionally, or present them on your desktop using GeekTool like I did. Geektool&#8217;s website is down right now, so download it from <a href="http://blog.cocoia.com/2007/11/04/my-personal-comm-station/"> last post</a> and install it to your System Preferences by double-clicking the preference pane in the disk image. </p>
<p></p>
<p><strong>Last Step:</strong> Once it&#8217;s installed, System Preferences opens and shows you the preference pane. Make sure you have just System Preferences shown so you can see your entire desktop (most importantly, the top left).  Add an item to the left list; and set something like this; </p>
<p>
<img src="http://blog.cocoia.com/wp-content/uploads/2007/11/picture-8.png" alt="Picture 8.png" border="0" width="415" height="407" /></p>
<p>The blue rectangle is the active overlay that will contain the image you choose. You can set a refresh interval (I use 10 seconds because it&#8217;s the default), resize the image, and place it wherever you like. Although GeekTool is old (well, it hasn&#8217;t seen a lot of updates), it&#8217;s well coded in that it won&#8217;t vanish when you use Exposé or even Spaces. </p>
<p>My result can be seen <a href="http://blog.cocoia.com/2007/11/04/my-personal-comm-station/">here</a>; if there&#8217;s demand for it, I will upload the PSD of my little &#8216;comm station&#8217; overlay so you can use it with whatever wallpaper you desire. Perhaps I will write a second part with how to put this into a widget form, and tracking the amount of users on your wireless network and graphing other miscellaneous statistics. Enjoyed this how-to? Comments / blog reactions / email is welcome!</p>
<p><strong><a href="http://digg.com/apple/Graph_your_Airport_Data_throughput_and_more_on_your_desktop">digg it!<a/></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cocoia.com/2007/11/06/graph-your-airport-express-extreme-data-throughput-and-more/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Making iPhone icons.</title>
		<link>http://blog.cocoia.com/2007/11/02/making-iphone-icons/</link>
		<comments>http://blog.cocoia.com/2007/11/02/making-iphone-icons/#comments</comments>
		<pubDate>Fri, 02 Nov 2007 19:04:34 +0000</pubDate>
		<dc:creator>sebastiaan</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[Graphics]]></category>

		<category><![CDATA[How-To]]></category>

		<category><![CDATA[Icon Design]]></category>

		<category><![CDATA[Personal Work]]></category>

		<guid isPermaLink="false">http://blog.cocoia.com/2007/11/02/making-iphone-icons/</guid>
		<description><![CDATA[ 

In my free time, I have been experimenting with the iPhone home screen icons. I was initially pleased by the icons, but found several to be lacking after having looked at them for prolongued periods of time. Since I don&#8217;t want to be greedy, I will share some techniques, know-how and tips with you to [...]]]></description>
			<content:encoded><![CDATA[<p align="center"> </p>
<p style="text-align: center"><img src="http://blog.cocoia.com/wp-content/uploads/2007/11/makingiphoneicons.png" height="254" width="309" border="0" alt="makingiphoneicons.png" /></p>
<p>In my free time, I have been experimenting with the iPhone home screen icons. I was initially pleased by the icons, but found several to be lacking after having looked at them for prolongued periods of time. Since I don&#8217;t want to be greedy, I will share some techniques, know-how and tips with you to help you get up to speed designing icons for your own iPhone. I will also look at my upcoming set of icons and discuss why I am changing so little to the look of the default icons.</p>
<p></p>
<p><span id="more-227"></span></p>
<p>First off, the basics. iPhone icons generally come in two sizes, one of which you see most; the home screen icons are 59&#215;59 pixels, whereas some icons can also be seen in 29&#215;29 list size; an example of the list sized icons can be seen in the iPhone settings. For all icons, it is wise to ensure proper clarity at this smaller size as well; several applications boast icons in a list view. On the home screen, it&#8217;s a good idea to restrict yourself to a fixed radius of the rounded corners; mixed corner styles get annoying pretty quickly. When designing my icon set, I took in mind the style of the device and the UI to ensure a coherence in the design.  My colleagues of <a href="http://mezzoblue.com/archives/2007/09/25/iphone_ico/">mezzoblue made some observations about this</a> and I recommend you do the same; flip through menus and applications and go back to the home screen. Some designs are more obvious when you have gotten around to using the applications behind them. Keep this method in mind when testing new icons. </p>
<p>  When you&#8217;re eager to look at the iPhone resources on your Mac or PC, you&#8217;ll have a hard time opening the files; Apple uses a custom PNG format for the bitmap resources of its applications. You can use the commandline utility <a href="http://www.cyberhq.nl/2007/07/05/iphone-png-fixer-upper.html">fixpng</a>, made by my fellow Dutchman Marco. Surprisingly, you won&#8217;t have to modify your own PNG graphics to use them - apparently, the iPhone can handle either without problems. The icons for each application on the home screen can be found in the bundles, which you can find on your iPhone&#8217;s /Applications folder. For changing the Weather app icon, for example, you have to place your icon.png in /Applications/Weather.app/, overwriting the existing icon.png. It&#8217;s worth noting that apart from not using ICNS files like in regular OS X, the iPhone also uses PNG format icon resources instead of the default of TIFF on OS X.  </p>
<p> I compiled a set of resources for the interested, with high-resolution versions of the default icons and Photoshop files of base shapes you may want to use. Feel free to use these shapes and their associated styles for your own iPhone icon or graphic. I do want to mention that the original icons are property of Apple Inc. and should be treated as such. </p>
<p> It&#8217;s worth bearing in mind that the iPhone&#8217;s pixels on the screen appear very close together to the point of blending; no wonder, given the iPhone boasts an additional 40 pixels or so per inch of screen. May this also serve as a reminder to proof your icons on the actual screen; some details can get lost, and things look invariably different on your iPhone.</p>
<p> Now, on to my icons; So far, I have completed 4 icons that I use as replacements of Apple&#8217;s defaults. I think at several points, that there is room for improvement and consistency with the aesthetic of OS X on the desktop, and the UI of the applications that the icons are supposed to represent. Here is a shot comparing the old icons to the new icons; note that there are some color mismatches between the old icons and the new ones that don&#8217;t exist in reality (the left side is oversaturated) and the Notes icon is still a bit rough. </p>
<p> 
<p align="center"> <a href="http://blog.cocoia.com/wp-content/uploads/2007/11/iconcomparison.jpg" target="_blank"><img src="http://blog.cocoia.com/wp-content/uploads/2007/11/iconcomparison-small.jpg" height="246" width="514" border="0" alt="iconcomparison-small.jpg" /></a></p>
<p align="center" style="text-align: center"><em>Old and new. Click for full size.</em></p>
<p style="text-align: left">
<p>As you can observe, I have changed the Settings, Weather, Notes and Calendar icon so far. I will discuss my changes for each.</p>
<p></p>
<p><strong>Settings</strong>; Settings had an odd problem; the dislocation of the iPhone settings icon and the Leopard System Preferences seems to be obvious; iPhone uses odd pointy gears with a strikingly oversimplified background. After about a week, I found this icon incredibly annoying and fixed up a better icon to replace it. Here&#8217;s a comparison of the Leopard System Preferences icon, the iPhone settings icon, and my new iPhone settings icon. </p>
<p></p>
<p style="text-align: left"> </p>
<p align="center">&nbsp;</p>
<p style="text-align: center"><img src="http://blog.cocoia.com/wp-content/uploads/2007/11/settingsicons.jpg" height="89" width="237" border="0" alt="settingsicons.jpg" /></p>
<p align="center" style="text-align: center"><em>Apple, you can do better than this.</em></p>
<p></p>
<p>I am not sure of your preference, but mine certainly lies with the Leopard icon. </p>
<p></p>
<p align="center" style="text-align: center"> </p>
<p> 
<p style="text-align: center"><img src="http://blog.cocoia.com/wp-content/uploads/2007/11/icon.png" style="text-align: center" height="60" width="59" border="0" alt="icon.png" /></p>
<p style="text-align: left" align="center"> <br />
</p>
<p><strong>Weather</strong> What I found interestingly annoying about the Weather icon was that it didn&#8217;t really relate to the UI of the application behind it. Louie Mantia also re-colored the icon to the &#8216;widget&#8217;s&#8217; interface colors, and I think that&#8217;s a good idea. I chose to add more detail to the icon, matching the composition of the neighboring Maps icon to balance out the shapes and represent the UI more accurately.</p>
<p> </p>
<p></p>
<p align="center"> </p>
<p style="text-align: center"><img src="http://blog.cocoia.com/wp-content/uploads/2007/11/icon1.png" height="60" width="59" border="0" alt="icon.png" /></p>
<p></p>
<p> <strong>Calendar</strong> and <strong>Notes</strong>; I found the icons for these quite flat, given the &#8216;multi-document&#8217; nature of the applications behind them. I have redrawn the calendar icon to temper the over-saturated colors of the default icon and add more subtle shading, like you can see on your desktop in the iCal icon.</p>
<p>
  
<p align="center"> </p>
<p style="text-align: center"><img src="http://blog.cocoia.com/wp-content/uploads/2007/11/icon2.png" height="60" width="59" border="0" alt="icon.png" /></p>
<p></p>
<p><strong>Clock</strong>; Now here&#8217;s a very curious icon; it seems the icon has been taken straight from the widget on OS X, not bearing in mind that the application doesn&#8217;t even feature clocks on a black background. I have always found the dashboard clocks quite ugly on black and I really like the appearance of the clocks in the iPhone application. It was a no-brainer to make the background of the clock match the application&#8217;s toned-down silver-ish background. </p>
<p>  Over the next few weeks, I intend to replace the SMS, Phone and iPod icons with something a bit more photorealistic, and changing the Maps, Photos and Camera icons to less generic imagery (I would like to see satellite imagery for Maps, and the Camera would be nice if it looked more like it actually is in real life). I have an ongoing effort for these icons, but I found it&#8217;s quite hard to get something at the same level of quality as the defaults and just blends in. Of course, your input is welcome, as are requests.</p>
<p>Feel free to download the <a href="http://blog.cocoia.com/wp-content/uploads/2007/11/iphone-photoshopfiles-cocoia.com.zip" title="iPhone-Photoshopfiles-Cocoia.com.zip">iPhone shapes and styles</a> here, and a complete set of <a href="http://blog.cocoia.com/wp-content/uploads/2007/11/iphone-icons-hires.zip" title="iPhone-Icons-HiRes.zip">hi-resolution JPEG&#8217;s of the default iPhone icons</a> here. I will release a set of freeware iPhone replacement icons in a week.</p>
<p>Feel free to <strong><a href="http://digg.com/design/Making_iPhone_icons_PSD_s_included_the_complete_guide">digg this</a></strong></p>
<p>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cocoia.com/2007/11/02/making-iphone-icons/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ditch the Glass Leopard dock with a few keystrokes.</title>
		<link>http://blog.cocoia.com/2007/10/24/ditch-the-glass-leopard-dock-with-a-few-keystrokes/</link>
		<comments>http://blog.cocoia.com/2007/10/24/ditch-the-glass-leopard-dock-with-a-few-keystrokes/#comments</comments>
		<pubDate>Wed, 24 Oct 2007 10:36:56 +0000</pubDate>
		<dc:creator>sebastiaan</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[How-To]]></category>

		<guid isPermaLink="false">http://blog.cocoia.com/2007/10/24/ditch-the-glass-leopard-dock-with-a-few-keystrokes/</guid>
		<description><![CDATA[Michel Jansen, fellow Dutch blogger, uncovered a system setting to use the new &#8220;on-the-side&#8221; Dock on the bottom too (which a lot of you asked for in my last post). 
Open Terminal.app and enter;
defaults write com.apple.dock no-glass -boolean YES; killall Dock
Before and after images at the source. Thanks Michel!
]]></description>
			<content:encoded><![CDATA[<p>Michel Jansen, fellow Dutch blogger, uncovered a system setting to use the new &#8220;on-the-side&#8221; Dock on the bottom too (which a lot of you asked for in my last post). </p>
<p>Open Terminal.app and enter;</p>
<p><code>defaults write com.apple.dock no-glass -boolean YES; killall Dock</code></p>
<p>Before and after images at the source. Thanks <a href="http://micheljansen.org/blog/entry/395?lan=english">Michel</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cocoia.com/2007/10/24/ditch-the-glass-leopard-dock-with-a-few-keystrokes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tutorial: Toolbar buttons.</title>
		<link>http://blog.cocoia.com/2007/06/27/tutorial-toolbar-buttons/</link>
		<comments>http://blog.cocoia.com/2007/06/27/tutorial-toolbar-buttons/#comments</comments>
		<pubDate>Wed, 27 Jun 2007 16:51:35 +0000</pubDate>
		<dc:creator>sebastiaan</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[Graphics]]></category>

		<category><![CDATA[How-To]]></category>

		<category><![CDATA[Icon Design]]></category>

		<category><![CDATA[Typography]]></category>

		<guid isPermaLink="false">http://blog.cocoia.com/?p=136</guid>
		<description><![CDATA[Okay, I thought it was time for a concise tutorial. We all know the Safari toolbar icons; they are, basically, buttons. To design these properly, you want some elements to be in order; a texture, basic shading, the beveling of the glyphs inside. In this tutorial, you aren&#8217;t only going to learn good design practices [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, I thought it was time for a concise tutorial. We all know the Safari toolbar icons; they are, basically, buttons. To design these properly, you want some elements to be in order; a texture, basic shading, the beveling of the glyphs inside. In this tutorial, you aren&#8217;t only going to learn good design practices - the good design practices that you will learn, will guarantee that the toolbar button you will make is ready for Leopard&#8217;s resolution-independent UI.</p>
<p>Here&#8217;s an example of toolbar buttons in Tiger:</p>
<p><img src="http://blog.cocoia.com/wp-content/uploads/2007/06/  /tigertoolbarbuttons.jpg" border="0" height="56" width="202" alt="tigertoolbarbuttons.jpg" align="" /></p>
<p>In Leopard, however, this style has been abandoned, in favor for a more dark, unified and bezeled look;</p>
<p><img src="http://blog.cocoia.com/wp-content/uploads/2007/06/  /leopardtoolbarbuttons.jpg" border="0" height="66" width="465" alt="leopardtoolbarbuttons.jpg" align="" /></p>
<p>Whichever one you like better doesn&#8217;t matter, but we&#8217;re going to make a Leopard button now. You can adorn your Finder with it later on, or do whatever you want. It&#8217;s a good idea, however, to start thinking what kind of a button you want to make. Let&#8217;s say we want to make a whole new button that, when pressed, opens iCal.</p>
<p>What this means is that you&#8217;ll want to find an appropriate glyph. iCal is an easy example; we already have a convention for an &#8216;iCal&#8217; or calendar glyph in OS X. No, really, check it out;</p>
<p><img src="http://blog.cocoia.com/wp-content/uploads/2007/06/  /iphotobuttons.jpg" border="0" height="37" width="97" alt="iphotobuttons.jpg" align="" /></p>
<p>As you may observe, these buttons resemble Leopard&#8217;s quite a bit. They also have that nice bezel. Let&#8217;s make a screenshot (take this one, if you want to follow along) or make a new glyph if there is no convention. &#8220;But wait, Sebastiaan!&#8221;, I hear you say, &#8220;why remake a button that&#8217;s already there?&#8221; </p>
<p>Well, here&#8217;s good design lesson number one; imitate to learn. You want to learn how to make buttons like this? A good idea is making an attempt to remake it. Lesson two: Design for the future. Be thoughtful in your designs. Before you kick up your favorite image editor, think what you want to make, but also how long you want to use it. Are there future requirements for the graphic you are making? For normal work, you might consider making things at a high resolution so you can print beautifully, but in this case, Leopard needs some high-res resources for buttons.</p>
<p>And you can even set your working size to be <b>infinite</b>. Yeah. That&#8217;s right, you can make your resources as big as you want them if you make them from scratch. With Photoshop? Yup.</p>
<p>Follow along. If at some point you stop getting it, just keep reading and at the end there&#8217;s a nice PSD to try it all out for yourself. Let&#8217;s start with our calendar glyph screengrab. It&#8217;s not too big&#8230;</p>
<p><img src="http://blog.cocoia.com/wp-content/uploads/2007/06/  /sizecalendar.jpg" border="0" height="151" width="378" alt="sizecalendar.jpg" align="" /></p>
<p>Let&#8217;s make it a bit bigger. Select &#8220;percent&#8221; from the image size dialog. <img src="http://blog.cocoia.com/wp-content/uploads/2007/06/  /Picture 6.jpg" border="0" height="96" width="264" alt="Picture 6.jpg" align="" /></p>
<p>Then proceed to resize to to 400% it&#8217;s original size. Select &#8220;Nearest Neighbor&#8221; from the resample dropdown. </p>
<p><img src="http://blog.cocoia.com/wp-content/uploads/2007/06/  /Picture 7.jpg" border="0" height="98" width="309" alt="Picture 7.jpg" align="" /></p>
<p>Okay, now that you&#8217;ve got it in the size it should be minimally for Leopard in bitmap, you can start making a vector out of it. Use the Pen Tool in Photoshop to trace its lines. Be sure to select Shape when making it and sample its color.</p>
<p><img src="http://blog.cocoia.com/wp-content/uploads/2007/06/  /vectorized.jpg" border="0" height="309" width="300" alt="vectorized.jpg" align="" /></p>
<p>After a bit of working the lines and tweaking the edges to be exactly 90 degrees, this is the result. Your mileage may vary, depending on your Pen Tool skills, but just keep tweaking with the white and black arrow tools to tweak the shapes. There are plenty of Pen Tool tutorials out there.</p>
<p>If we were to overlay this to it&#8217;s original background now, it looks like this;
<p/>
<img src="http://blog.cocoia.com/wp-content/uploads/2007/06/  /nobezel.jpg" border="0" height="203" width="233" alt="nobezel.jpg" align="" /></p>
<p>That&#8217;s not too funky; it doesn&#8217;t really work this way because it looks like a graphic slapped on a gradient. It&#8217;s just too flat, you know? Let&#8217;s add a bezel. Although this &#8216;pixeled&#8217; icon contains only sharp edges, you can apply the same method for round shapes, in vector, to make bezels that actually work (instead of working at the small size with 1 pixel &#8216;outer bevel&#8217; layer effects, that really get messy).</p>
<p><img src="http://blog.cocoia.com/wp-content/uploads/2007/06/  /bezel.jpg" border="0" height="105" width="152" alt="bezel.jpg" align="" /></p>
<p>As you can see, you can, without resorting to layer styles, make a white form behind your existing vector shapes. At this level, you can see it&#8217;s a white form. At our classic size, however&#8230;</p>
<p><img src="http://blog.cocoia.com/wp-content/uploads/2007/06/  /100percent.jpg" border="0" height="37" width="66" alt="100percent.jpg" align="" /></p>
<p>As for the background of the button, some people insist on fussy practices of sampling colors. In this case, take a 1 pixel wide selection to rapidly &#8216;prototype&#8217; the button background without having to create a whole gradient;</p>
<p><img src="http://blog.cocoia.com/wp-content/uploads/2007/06/  /1pxselection.jpg" border="0" height="462" width="264" alt="1pxselection.jpg" align="" /></p>
<p>Take this selection, copy it to a separate layer and scale it about 20 times wider. Once you are happy with your glyph, you can take the shape of the button, make a vector and apply the proper gradient on it.</p>
<p><img src="http://blog.cocoia.com/wp-content/uploads/2007/06/  /vector.jpg" border="0" height="201" width="224" alt="vector.jpg" align="" /></p>
<p>As you can see from the PSD, you can export this as a &#8216;regular&#8217; size (as the button was before, thus, 25% of our current image) and as 4x to comply with the Resolution Independent guidelines laid down in the now public session at WWDC &#8216;06. You can also, as the buttons we see here are easy to make in the new Interface Builder under Leopard, export them as PDF&#8217;s. Be sure to fit the path in an &#8216;image&#8217; of appropriate pixels, though, or your shape might be placed quite oddly in the NSButton.</p>
<p>Now that you know the basics of putting together these kind of buttons, go make an alternative set to Safari&#8217;s! Or perhaps some new toolbar buttons for Mail? Preview? Let&#8217;s see what you can come up with in some spare time!</p>
<p>If you enjoyed this tutorial, you can take some time to comment, share with delicious, or digg it. Kind words over <a href="sebastiaan(at-)cocoia.com">email</a> are also appreciated ;).</p>
<h3>
<p><a href="http://www.cocoia.com/calendar-vector.psd>Click here to download the PSD.</a></p>
</h3>
<p>Edit: Stop posting &#8220;First post!&#8221; comments. They won&#8217;t be approved.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cocoia.com/2007/06/27/tutorial-toolbar-buttons/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
