• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [Q] copy operation and authorization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: [Q] copy operation and authorization
      • From: Dave Keck <email@hidden>
References: 
 >[Q] copy operation and authorization (From: JongAm Park <email@hidden>)
 >Re: [Q] copy operation and authorization (From: Kyle Sluder <email@hidden>)
 >Re: [Q] copy operation and authorization (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: How to update table while in a method
  • Next by Date: Re: CGImageRef printing issue
  • Previous by thread: Re: [Q] copy operation and authorization
  • Next by thread: Re: [Q] copy operation and authorization
  • Index(es):
    • Date
    • Thread