• 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
AppleRemote Cocoa Class ( delegate issue )
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AppleRemote Cocoa Class ( delegate issue )


  • Subject: AppleRemote Cocoa Class ( delegate issue )
  • From: David Farmer <email@hidden>
  • Date: Tue, 26 Jun 2007 19:50:56 -0500

Howdy,

I am trying to use this class available from http:// www.martinkahr.com/source-code inside of a plugin.

Everything works, it does start listening but.. ( didn't know that was coming did ya!? )


Since I am trying to use it within a plugin I do not have the luxury of creating an instance of the AppleRemote object in IB.
If I comment out the setDelegate the startListening function does its work correctly to override the system remote use.


Therefore I assumed the following code would work:
c_AppleRemote = [[AppleRemote alloc] init]; // AppleRemote *c_AppleRemote;
c_Delegate = [[Delegate alloc] init]; // Delegate *c_Delegate; // has the methods appleRemote, appleRemoteButton
[[c_AppleRemote sharedRemote] setDelegate: c_Delegate]; // this method always crashes, says it is not recognized
[c_AppleRemote cI_startListening];



I have never really used delegates before ( simple mind here ). So Occam's Razor does apply!


thanks!
dave
_______________________________________________

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:
    • Re: AppleRemote Cocoa Class ( delegate issue )
      • From: Dorian Johnson <email@hidden>
  • Prev by Date: Re: [OT] Don't draw every 10th sample(!) (Was Re: Best drawing technology for audio waveforms, envelopes, etc.?)
  • Next by Date: Re: List of keyboard layouts
  • Previous by thread: [Meeting] Toronto Area Cocoa and WebObjects Developer Group - July 10, 2007
  • Next by thread: Re: AppleRemote Cocoa Class ( delegate issue )
  • Index(es):
    • Date
    • Thread