Re: [Q] copy operation and authorization
Re: [Q] copy operation and authorization
- Subject: Re: [Q] copy operation and authorization
- From: Jens Miltner <email@hidden>
- Date: Fri, 13 Nov 2009 09:51:06 +0100
Am 13.11.2009 um 07:53 schrieb Jerry Krinock:
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.
But in that base, the user won't know why Finder needs the
authorization, right?
As a user, I would become very suspicious if Finder suddenly requires
me to authorize some copy operation just because I launched an app,
or, even worse, because I took some action within an app...
</jum>
_______________________________________________
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