On 2009 Nov 12, at 14:24, Kyle Sluder wrote:

No.  Do not do this.  Follow the pattern of BetterAuthorizationSample:
http://developer.apple.com/mac/library/samplecode/BetterAuthorizationSample/listing4.html

Yes, what Kyle says is true.  AEWP is not recommended.

Now, thought, the *correct* way, integrating BetterAuthorizationSample into an app is a *lot* of work. However, there is a very slick shortcut for which I credit Jean-Daniel Dupas: If possible, send the Finder an AppleEvent instructing it to do the work for you. In this case, for example, you might be able to ask Finder to copy that file from /Library to the user's temporary directory. Now, if elevated privileges are needed, Finder should interface with Authorization Services to put up the authentication dialog, doing all of the heavy lifting.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to