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: KUNCUserNotifications, just a configd crasher?



Hi Jim,

Am Dienstag, 03.12.02 um 22:52 Uhr schrieb email@hidden:

OK, but you asked for it.... ;-)

You should never use the KUNC notification stuff. There is almost
always a better way to get information out of your KEXT. And if not,
maybe it shouldn't have been [just] a KEXT in the first place.

Why do I say this? Because there are too many situations where the
"push" model doesn't work for KEXTs. There's the "early in boot"

snip...

In my driver I use KUNC notifications to inform the user that his USB device he just plugged in is ready for service, because downloading firmware and initializing the device takes up to 20 seconds. And KUNCExecute to load user independent prefs. I think this is a perfect use of the KUNC stuff and I hope, it will continue to work like this in future versions of Mac OS X (although it's still not perfect. Sometimes the localization doesn't work...).

But:
It was hard in the first place to get any information about the KUNC staff!
If you implement an API - please document it - and please don't tell everybody to not use it!
All you said against the use of KUNC you should have mentioned in that (then missing) documentation long ago!
Of course one could install a daemon which polls the driver for any user relevant information, but I dislike polling and each little app has to be documented, supported, installed, uninstalled, localized etc. which adds to the cost of development.

Just my few Euros ;-)

Bernd
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.



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.