Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Are elementCookies persistent?



Actually, the cookies are not persistent and have changed in past releases. It turns out that they were originally tied to the order in which the HID parser read the descriptor. Any changes to the descriptor parser would have changed the cookie assignments. Therefore, like Andrew mentioned, it is probably not a good idea to hardcode these values.

- Rob

On Jul 19, 2005, at 10:41 PM, Andrew Garber wrote:

Yes, the cookies are permanently set in the device's hardware. I
wouldn't suggest har-coding them though. Try using
IOHIDDeviceInterface122's copyMatchingElements instead of
IORegistryEntryCreateCFProperties. I think you'll find that it's more
efficient than trying to recurse through the properties tree yourself.

Here's some example code to illustrate its use:
http://developer.apple.com/documentation/DeviceDrivers/Conceptual/ HID/workingwith/chapter_4_section_4.html#//apple_ref/doc/uid/ TP40000970-TP30000105-BABGHGHH
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Usb mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden
References: 
 >Re: Are elementCookies persistent? (From: Andrew Garber <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.