AppleRemote Cocoa Class ( delegate issue )
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