• 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: authorization services
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: authorization services


  • Subject: Re: authorization services
  • From: "Rick C." <email@hidden>
  • Date: Mon, 24 Aug 2009 18:45:15 -0700 (PDT)

ok thank you both it's most helpful!

rick





________________________________
From: Jean-Daniel Dupas <email@hidden>
To: Rick C. <email@hidden>
Cc: cocoa dev <email@hidden>
Sent: Tuesday, August 25, 2009 1:35:45 AM
Subject: Re: authorization services


Le 24 août 2009 à 18:35, Kyle Sluder a écrit :

> On Mon, Aug 24, 2009 at 6:10 AM, Rick C.<email@hidden> wrote:
>> if i can follow up please about authorization services i just want to be sure i'm on the right track.  if i'm just trying to do a simple movePath but i don't have access is the only way to get access by using authorizationExecuteWithPrivileges?  i keep reading about how i should avoid it if possible.  i have followed authorizing in a simple self-restricted application according to the docs but i don't really see what i can do after i get authorization...maybe i'm missing something?  i guess i'm just looking for confirmation if i must use authorizationExecuteWithPrivileges or not, and if so can i control the timeout because the docs seem to say it needs authentication every time.  thanks again for the help and patience,
>
> Yes, AEWP is what you'll need.  You factor out your "move the file"
> code into a helper tool and execute that with AEWP.
>
> Much of the advice about avoiding AEWP is to steer people away from
> needlessly elevating their own privileges, and when they do need to do
> so ensuring that they take the time to read and understand the sample
> code.

You can also ask to the Finder to do it using AppleEvent. The Finder will ask the user its password if needed and will take care of the hard part for you.



_______________________________________________

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

References: 
 >Re: authorization services (From: Kyle Sluder <email@hidden>)
 >Re: authorization services (From: "Rick C." <email@hidden>)
 >Re: authorization services (From: Kyle Sluder <email@hidden>)
 >Re: authorization services (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Syntax Coloring?
  • Next by Date: Help needed with ConvertCocoa64 script
  • Previous by thread: Re: authorization services
  • Next by thread: scroll automatically if the text is too long
  • Index(es):
    • Date
    • Thread