Posts Tagged ‘cocoa’

Weekend project: ShairPort menulet

Sunday, April 17th, 2011

Update: New version built around a native Cocoa port of ShairPort, MacShairport:

Recently an open source emulator for AirPort Express / AirTunes was released by James Laird. I’ve been waiting for something like this for a long while to enable remote music playback on my media center from my laptop and iPhone. However, I lack the hardware skills to extract the necessary firmware from the AirPort Express ROM chip. Thanks to James for doing the work and putting out his perl script / c utility. It’s pretty simple to build and run, and the source includes a nice OS X launcher script, but I’m looking for a little GUI widget to easily control it lest someone ‘inadvertently’ decides to send audio to my computer.

I’ve been lately transitioning my iPhone-specific Cocoa knowledge to the desktop; this was a nice opportunity to wrap up the ShairPort scripts in an OS X menu bar widget. The source is available on Github, and you can get the bundled app below. This was made for my specific system, so YMMV.

ShairPortMenu: [download]

iPhone pinwheel: 4in4 day two

Tuesday, January 13th, 2009

the iphone is missing one of my most beloved relics of os x…the pinwheel, aka beachball of doom/death. i wanted to experiment with using the core graphics framework to draw to the screen and create animation and this was an interesting experience.

the animation is too slow currently…i feel that i’m doing things in a really inefficient way at the moment. i had also tried using UIImageViews and animating them, but i couldn’t figure out a way to get the spinning layer to composite using the overlay blend mode…which you can easily do with core graphics contexts.

i’ll try again later, but i really need to get away from the computer and onto my bike to train (which is a matter of about five feet now that it’s dark and icy out). i’ll post a video if i can get the animation on the phone to happen more quickly.