Last weekend I had some fun playing around with the remote of my MacMini which is connected to a flat screen TV. I came up with ideas about apps that should use the remote (Browser, Dock, …).
Before starting such a project I wanted to check out how to use the apple remote in a cocoa app. After some browsing in the web it was clear that there is no official API released by Apple yet. The best resource I found was on the Cocoa Dev Wiki where some guys wrote about what they already found out. Based on this work I started to develop an Objective-C class which would handle asynchronous events from the apple remote control.
Today I had the time to do some sample app for the class and to release it to the public. Check it out on the Source Code page.
For details about how this works read the Cocoa Dev Wiki page about this topic. It contains a lot of links to useful documentation (IO Kit, Samples, …).
As I’ve written on the source code page keep in mind that there are no “Guidelines” about how to use the apple remote in third party apps.
Have fun and keep things simple (especially for the end user)!