> Anyone know if such a class exists for Cocoa? Like
> NSAuthenticateAlertSheet (ok - i'm dreaming) or something similar.
> sure would be nice. i am writing an installer and need to
> authenticate at the beginning, much like the Apple software
> installers. trying to track anything similar down in the Docs but
> haven't found anything yet.
> otherwise anyone have any advice? throw up a sheet with some text
> fields? thx.
It's supposed to be done using the Security framework. That's where the
windows asking for administrator auth come from. Apple supplies a demo
called AuthSample that covers the process in detail. It's not Cocoa, or
even Objective C, though it can be wrapped up in a class if you like.
Tom "Tom" Harrington
Macaroni, Automated System Maintenance for Mac OS X.
Version 1.4: Best cleanup yet, gets files other tools miss.