Re: Apple Remote and exclusivity

2008-06-04 Thread Jean-Daniel Dupas


Le 4 juin 08 à 01:00, Scott Anguish a écrit :



On Jun 3, 2008, at 5:02 AM, Hamish Allan wrote:

I don't even know what the Cocoa interface to the Apple Remote is,  
let

alone having used it, let alone being able to troubleshoot it, and I
don't imagine everyone here is an expert either...





You can find some tips about it here:  
http://osxbook.com/book/bonus/chapter10/iremoted/

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Apple Remote and exclusivity

2008-06-03 Thread Hamish Allan
On Tue, Jun 3, 2008 at 12:36 AM, Elan Feingold [EMAIL PROTECTED] wrote:

 From the lack of responses I'm guessing I posted this to the wrong list :-)

Four hours you gave everyone in all the different timezones of the
world to respond before giving up!

I don't even know what the Cocoa interface to the Apple Remote is, let
alone having used it, let alone being able to troubleshoot it, and I
don't imagine everyone here is an expert either...

Hamish
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Apple Remote and exclusivity

2008-06-03 Thread Graham Cox

This might (or might not) help, FWIW:

http://www.cocoadev.com/index.pl?UsingTheAppleRemoteControl




G.


On 3 Jun 2008, at 7:02 pm, Hamish Allan wrote:

On Tue, Jun 3, 2008 at 12:36 AM, Elan Feingold  
[EMAIL PROTECTED] wrote:


From the lack of responses I'm guessing I posted this to the wrong  
list :-)


Four hours you gave everyone in all the different timezones of the
world to respond before giving up!

I don't even know what the Cocoa interface to the Apple Remote is, let
alone having used it, let alone being able to troubleshoot it, and I
don't imagine everyone here is an expert either...

Hamish
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/graham.cox%40bigpond.com

This email sent to [EMAIL PROTECTED]


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Apple Remote and exclusivity

2008-06-03 Thread Ilan Volow
There's been some changes to device seizing in Leopard. I've had some  
code of my own (albeit keyboard/barcode scanner stuff) that's been  
affected by it.


http://developer.apple.com/technotes/tn2007/tn2187.html

I'd think that the Apple remote wouldn't be affected (unless it's  
being interpreted as some kind of really tiny infra-red keyboard), but  
it's something to keep in mind.


-- Ilan

On Jun 2, 2008, at 3:44 PM, Elan Feingold wrote:


Hi,

The app I'm working on makes use of the Apple Remote; specifically,  
it runs a helper app (daemon) so that the app can be started with a  
press of the Apple Remote Menu button, and then passes key presses  
it receives to the app via UDP messages.


I'm seeing two issues:

1) Even though I open the device with kIOHIDOptionsTypeSeizeDevice,  
I'm seeing times where it seems to lose exclusivity. I can't pin it  
to any specific event (i.e. wake from sleep, etc.), but it  
definitely seems to lose it after a period of time (hours, days).  
After that hitting the Menu button brings up both the application  
*and* Front Row, which is not exactly optimal :-)


I read somewhere that if an application loses focus and then regains  
it, it should reopen the device to assure exclusivity. I'm not sure  
how this would work with a daemon that doesn't ever have focus in  
the application sense.


2) I'm seeing cases where key-presses on the Apple Remote are lost.  
It might be correlated with the actual application using a bit more  
CPU. I'm not sure if the process doing the Apple Remote reception  
needs to be run at a higher priority?


Any help you could offer would be much appreciated!

Thanks,

-elan
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/listboy%40clarux.com

This email sent to [EMAIL PROTECTED]


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Apple Remote and exclusivity

2008-06-03 Thread Scott Anguish


On Jun 3, 2008, at 5:02 AM, Hamish Allan wrote:


I don't even know what the Cocoa interface to the Apple Remote is, let
alone having used it, let alone being able to troubleshoot it, and I
don't imagine everyone here is an expert either...




I don't believe there is a public API for it.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Apple Remote and exclusivity

2008-06-02 Thread Elan Feingold
From the lack of responses I'm guessing I posted this to the wrong  
list :-) Can anyone suggest a better list to post to?


Many thanks,

-elan

On Mon, Jun 2, at 9:44 AM, Elan Feingold wrote:


Hi,

The app I'm working on makes use of the Apple Remote; specifically,  
it runs a helper app (daemon) so that the app can be started with a  
press of the Apple Remote Menu button, and then passes key presses  
it receives to the app via UDP messages.


I'm seeing two issues:

1) Even though I open the device with kIOHIDOptionsTypeSeizeDevice,  
I'm seeing times where it seems to lose exclusivity. I can't pin it  
to any specific event (i.e. wake from sleep, etc.), but it  
definitely seems to lose it after a period of time (hours, days).  
After that hitting the Menu button brings up both the application  
*and* Front Row, which is not exactly optimal :-)


I read somewhere that if an application loses focus and then regains  
it, it should reopen the device to assure exclusivity. I'm not sure  
how this would work with a daemon that doesn't ever have focus in  
the application sense.


2) I'm seeing cases where key-presses on the Apple Remote are lost.  
It might be correlated with the actual application using a bit more  
CPU. I'm not sure if the process doing the Apple Remote reception  
needs to be run at a higher priority?


Any help you could offer would be much appreciated!

Thanks,

-elan
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/elan%40bluemandrill.com

This email sent to [EMAIL PROTECTED]


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Apple Remote and exclusivity

2008-06-02 Thread I. Savant

On Jun 2, 2008, at 7:36 PM, Elan Feingold wrote:

From the lack of responses I'm guessing I posted this to the wrong  
list :-) Can anyone suggest a better list to post to?


  Patience. You posted this recently. If someone has an answer,  
they'll give it to you.


--
I.S.


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]