| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi again all, I am not sure whether this is a bug, design feature, or some brain dead thing I am doing, but if I do an early exit from an IOIterator loop, then I stop getting subsequent plugin notifications. So, consider the following (in a callback from IOServiceAddMatchingNotification): while(usbDevice = IOIteratorNext(iterator)){ blah; blah; return; (during first iteration ... ie, IOIteratorNext does not hit the end) } So I get the first call back ok, but the next time, no callback occurs. I have to let the while condition actually fail (ie, set a flag to skip code in subsequent iterations) to make sure that IOIteratorNext hits the end. You can probably duplicate this quite easily by taking the example code from the dev. site, and just bunging in a return at the end of the loop. Anyway, thought someone might have a comment on it. Thanks, Robert. |
_______________________________________________ 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
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.