Re: AppleRemote Cocoa Class ( delegate issue )
Re: AppleRemote Cocoa Class ( delegate issue )
- Subject: Re: AppleRemote Cocoa Class ( delegate issue )
- From: David Farmer <email@hidden>
- Date: Tue, 26 Jun 2007 20:41:19 -0500
thanks for the reply!
not sure I understand singleton? if I do not allocate it to create
an instance what should I do? if I try to create a static
declaration it barks at me. ( sorry, might be a bit thick as well )
In Delegate.h I implemented both -(AppleRemote*)appleRemote; and -
(void)appleRemoteButton:(AppleRemoteEventIdentifier)buttonIdentifier
pressedDown:(BOOL)pressedDown; It is a newly created class based on
NSObject. Those are the only methods. From your explanation I
believe that this may all be related to incorrectly using the
AppleRemote class ( the singleton use that still eludes me ).
Thanks for your time!
dave
On Jun 26, 2007, at 8:02 PM, Dorian Johnson wrote:
The Apple Remote class is a singleton. Don't alloc/init it; use
[c_AppleRemote sharedRemote] for it.
The delegate must implement: (you didn't mention if yours had the
pressedDown field)
- (void)appleRemoteButton:(AppleRemoteEventIdentifier)buttonId
pressedDown:(BOOL)pressed
On Jun 26, 2007, at 7:50 PM, David Farmer wrote:
this method always crashes, says it is not recognized
Please give more detail... What's the stack trace look like (type
bt in the debugger console for a copy/pasteable copy)?
_______________________________________________
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