• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Apple Remote Control Wrapper sends same button ID for all buttons.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Apple Remote Control Wrapper sends same button ID for all buttons.


  • Subject: Apple Remote Control Wrapper sends same button ID for all buttons.
  • From: Harry Vangberg <email@hidden>
  • Date: Sun, 1 Nov 2009 23:54:40 +0100

Hello

I am trying to use the Apple Remote Control Wrapper by Martin Kahr. I made a
simple implementation per the website, which just logs mouse events:

        - (void) sendRemoteButtonEvent:(RemoteControlEventIdentifier)event
                           pressedDown:(BOOL)pressedDown
                         remoteControl:(RemoteControl *)remoteControl
        {
                NSLog(@"Button %d pressed down %d", event, pressedDown);
        }

and starts listening, in -applicationDidFinishLaunching:

        - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
        {
                remoteControl = [[AppleRemote alloc] initWithDelegate: self];
                [remoteControl startListening: self];
        }

But no matter which button I press on my remote control all I get is this:

2009-11-01 20:09:17.745 MediaShow[10005:150b] Button 8192 pressed down 1
2009-11-01 20:09:17.748 MediaShow[10005:150b] Button 8192 pressed down 0

Which makes it a tad difficult to differ between them. This is developing
against 10.6.

Thanks,
Harry
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • [Moderator] Re: Apple Remote Control Wrapper sends same button ID for all buttons.
      • From: Scott Anguish <email@hidden>
    • Re: Apple Remote Control Wrapper sends same button ID for all buttons.
      • From: "Sean McBride" <email@hidden>
    • Re: Apple Remote Control Wrapper sends same button ID for all buttons.
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: NSCollectionView and drag tolerance
  • Next by Date: Re: Handling projects with several XIBs
  • Previous by thread: Re: NSCollectionView and drag tolerance
  • Next by thread: Re: Apple Remote Control Wrapper sends same button ID for all buttons.
  • Index(es):
    • Date
    • Thread