FROM : Ilan Volow
DATE : Tue Jun 03 23:17:48 2008
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 (<email_removed>)
>
> 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/<email_removed>
>
> This email sent to <email_removed>
DATE : Tue Jun 03 23:17:48 2008
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 (<email_removed>)
>
> 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/<email_removed>
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Elan Feingold | Jun 2, 21:44 | |
| Elan Feingold | Jun 3, 01:36 | |
| I. Savant | Jun 3, 01:53 | |
| Hamish Allan | Jun 3, 11:02 | |
| Graham Cox | Jun 3, 13:52 | |
| Ilan Volow | Jun 3, 23:17 | |
| Scott Anguish | Jun 4, 01:00 | |
| Jean-Daniel Dupas | Jun 4, 09:40 |






Cocoa mail archive

