This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Mon Jun 29 10:01:18 -0700 2009 | |
| |
AppleRemote-Info.plist | Mon Jun 29 10:01:18 -0700 2009 | |
| |
AppleRemote.bridgesupport | Mon Jun 29 10:01:18 -0700 2009 | |
| |
AppleRemote.h | Mon Jun 29 10:01:18 -0700 2009 | |
| |
AppleRemote.m | Mon Jun 29 10:01:18 -0700 2009 | |
| |
AppleRemote.tiff | Mon Jun 29 10:01:18 -0700 2009 | |
| |
English.lproj/ | Mon Jun 29 10:01:18 -0700 2009 | |
| |
GlobalKeyboardDevice.h | Mon Jun 29 10:01:18 -0700 2009 | |
| |
GlobalKeyboardDevice.m | Mon Jun 29 10:01:18 -0700 2009 | |
| |
HIDRemoteControlDevice.h | Mon Jun 29 10:01:18 -0700 2009 | |
| |
HIDRemoteControlDevice.m | Mon Jun 29 10:01:18 -0700 2009 | |
| |
Info.plist | Mon Jun 29 10:01:18 -0700 2009 | |
| |
Japanese.lproj/ | Mon Jun 29 10:01:18 -0700 2009 | |
| |
KeyspanFrontRowControl.h | Mon Jun 29 10:01:18 -0700 2009 | |
| |
KeyspanFrontRowControl.m | Mon Jun 29 10:01:18 -0700 2009 | |
| |
MainController.h | Mon Jun 29 10:01:18 -0700 2009 | |
| |
MainController.m | Mon Jun 29 10:01:18 -0700 2009 | |
| |
MultiClickRemoteBehavior.h | Mon Jun 29 10:01:18 -0700 2009 | |
| |
MultiClickRemoteBehavior.m | Mon Jun 29 10:01:18 -0700 2009 | |
| |
RemoteControl.h | Mon Jun 29 10:01:18 -0700 2009 | |
| |
RemoteControl.m | Mon Jun 29 10:01:18 -0700 2009 | |
| |
RemoteControlClasses.graffle | Mon Jun 29 10:01:18 -0700 2009 | |
| |
RemoteControlContainer.h | Mon Jun 29 10:01:18 -0700 2009 | |
| |
RemoteControlContainer.m | Mon Jun 29 10:01:18 -0700 2009 | |
| |
RemoteControlWrapper.xcodeproj/ | Tue Jun 30 19:21:24 -0700 2009 | |
| |
RemoteControlWrapper_Prefix.pch | Mon Jun 29 10:01:18 -0700 2009 | |
| |
RemoteControls-Info.plist | Mon Jun 29 10:01:18 -0700 2009 | |
| |
RemoteFeedbackView.h | Mon Jun 29 10:01:18 -0700 2009 | |
| |
RemoteFeedbackView.m | Mon Jun 29 10:01:18 -0700 2009 | |
| |
license.txt | Mon Jun 29 10:01:18 -0700 2009 | |
| |
main.m | Mon Jun 29 10:01:18 -0700 2009 | |
| |
readme.txt | Tue Jun 30 19:21:24 -0700 2009 |
readme.txt
Remote Control Wrapper ---------------------- You can get the original version of this code from http://martinkahr.com/source-code/ Remote Control Wrapper is an Objective-C wrapper for the Apple remote control. It was modified to be Obj-C 2 compatible and compile as a framework to be used with MacRuby. Note that to use this framework with MacRuby you need to use a BridgeSupport file (generated for you in the repo). A compiled version of the framework is available in the download section. Here is a quick implementation example using MacRuby and HotCocoa: require 'hotcocoa' framework File.join(File.dirname(__FILE__), 'vendor', 'AppleRemote.framework') class Application include HotCocoa def start application :name => "AppRemote" do |app| app.delegate = self window :frame => [100, 100, 500, 500], :title => "Appremote" do |win| win << label(:text => "Application Remote", :layout => {:start => false}) win.will_close { exit } end @remoteControl = AppleRemote.alloc.initWithDelegate(self) @remoteControl.startListening(self) end end # Callback triggered when the remote is being used. # # === Parameters # button<Fixnum>:: button id # pressed<Boolean>:: is the button pressed or released # remote<AppleRemote>:: def sendRemoteButtonEvent(button, pressedDown:pressed, remoteControl:remote) p "button pressed #{button} #{pressed ? 'clicked' : 'released'}" end end







