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

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


  • Follow-Ups:
    • Re: AppleRemote Cocoa Class ( delegate issue )
      • From: Dorian Johnson <email@hidden>
References: 
 >AppleRemote Cocoa Class ( delegate issue ) (From: David Farmer <email@hidden>)
 >Re: AppleRemote Cocoa Class ( delegate issue ) (From: Dorian Johnson <email@hidden>)

  • Prev by Date: Re: Binding CoreData Relationship to an NSTableColumn w/ NSPopupButtonCell [Solved?]
  • Next by Date: Re: AppleRemote Cocoa Class ( delegate issue )
  • Previous by thread: Re: AppleRemote Cocoa Class ( delegate issue )
  • Next by thread: Re: AppleRemote Cocoa Class ( delegate issue )
  • Index(es):
    • Date
    • Thread