• 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: 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


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

  • Prev by Date: Re: Array of dictionaries containing NSColor in NSUserDefaults
  • Next by Date: How to update table while in a method
  • Previous by thread: Re: [Q] copy operation and authorization
  • Next by thread: Re: [Q] copy operation and authorization
  • Index(es):
    • Date
    • Thread