Re: [Q] copy operation and authorization
Re: [Q] copy operation and authorization
- Subject: Re: [Q] copy operation and authorization
- From: Jerry Krinock <email@hidden>
- Date: Thu, 12 Nov 2009 22:53:30 -0800
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 (email@hidden)
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:
This email sent to email@hidden