Re: Authenticate NSFileManager Operations

2010-05-05 Thread Shawn Erickson
On Wed, May 5, 2010 at 4:28 PM, Dave Keck wrote: >> Which makes me wonder why Apple doesn't make an API for doing it "the right >> way" easily? :-) > > I'd be disappointed if this didn't happen in 10.7. I'm hoping for a > kind of AEWP that handles all of the launchd shenanigans for you, and > onl

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Dave Keck
AuthorizationExecuteWithPrivileges ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 Su

Re: Authenticate NSFileManager Operations

2010-05-05 Thread koko
To what does AEWP decode? On May 5, 2010, at 5:33 PM, Dave Keck wrote: Which makes me wonder why Apple doesn't make an API for doing it "the right way" easily? :-) I'd be disappointed if this didn't happen in 10.7. I'm hoping for a kind of AEWP that handles all of the launchd shenanigans for

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Dave Keck
> Which makes me wonder why Apple doesn't make an API for doing it "the right > way" easily? :-) I'd be disappointed if this didn't happen in 10.7. I'm hoping for a kind of AEWP that handles all of the launchd shenanigans for you, and only exec()s if the codesigning bits check out. __

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Seth Willits
On May 5, 2010, at 1:01 PM, Kyle Sluder wrote: >> I'm just going to come out and say it, that I just could not understand what >> the heck that code was doing and why. I read everything twice. It's a >> bajillion lines of sample code, and since *we all know how much you can >> trust Apple sampl

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Jeff Kelley
Be sure NOT to redistribute the Adobe AIR framework unless you have prior written permission from Adobe. Jeff Kelley slaun...@umich.edu Campus Computing Sites Information and Technology Services University of Michigan On May 5, 2010, at 11:57 AM, k...@highrolls.net wrote: > I was using PackageM

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Kyle Sluder
On Wed, May 5, 2010 at 12:52 PM, Seth Willits wrote: > I'm just going to come out and say it, that I just could not understand what > the heck that code was doing and why. I read everything twice. It's a > bajillion lines of sample code, and since *we all know how much you can trust > Apple sam

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Seth Willits
On May 5, 2010, at 8:49 AM, Ken Thomases wrote: > Another technique is outlined in the BetterAuthorizationSample sample code: > > http://developer.apple.com/mac/library/samplecode/BetterAuthorizationSample/Introduction/Intro.html I'm just going to come out and say it, that I just could not unde

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Fritz Anderson
On 5 May 2010, at 10:57 AM, k...@highrolls.net wrote: > I was using PackageMaker and it installed the framework. In a second step to > install an adobe air application the installer failed and that is why I went > to roll my own. To put it _very_ charitably, PackageMaker has quite a few subtle

Re: Authenticate NSFileManager Operations

2010-05-05 Thread koko
I was using PackageMaker and it installed the framework. In a second step to install an adobe air application the installer failed and that is why I went to roll my own. -koko On May 5, 2010, at 9:51 AM, Mike Abdullah wrote: Are you writing an installer? If so, don't. Use the system-suppl

Re: Authenticate NSFileManager Operations

2010-05-05 Thread koko
Thanks for the direction Ken! -koko On May 5, 2010, at 9:51 AM, Ken Thomases wrote: On May 5, 2010, at 10:32 AM, k...@highrolls.net wrote: I am using - (BOOL)copyItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPatherror:(NSError **)error to copy a framework to /Library/Frameworks.

Re: Authenticate NSFileManager Operations

2010-05-05 Thread koko
Don't = No I must ! (lol) -koko On May 5, 2010, at 9:51 AM, Mike Abdullah wrote: Are you writing an installer? If so, don't. Use the system-supplied one. On 5 May 2010, at 16:32, k...@highrolls.net wrote: I am using - (BOOL)copyItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPathe

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Jerry Krinock
On 2010 May 05, at 08:32, k...@highrolls.net wrote: > How does one invoke authentication for NSFileManager operations? Mike Abdullah's answer is correct regarding installers. If you're not writing an installer, Easy way: Tell the Finder to do it with an Apple Event (thanks to Jean-Daniel Dup

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Mike Abdullah
Are you writing an installer? If so, don't. Use the system-supplied one. On 5 May 2010, at 16:32, k...@highrolls.net wrote: > I am using > > - (BOOL)copyItemAtPath:(NSString *)srcPath toPath:(NSString > *)dstPatherror:(NSError **)error > > to copy a framework to /Library/Frameworks. > > But f

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Ken Thomases
On May 5, 2010, at 10:32 AM, k...@highrolls.net wrote: > I am using > > - (BOOL)copyItemAtPath:(NSString *)srcPath toPath:(NSString > *)dstPatherror:(NSError **)error > > to copy a framework to /Library/Frameworks. > > But first I use > > - (BOOL)removeItemAtPath:(NSString *)path error:(NSErr

Authenticate NSFileManager Operations

2010-05-05 Thread koko
I am using - (BOOL)copyItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPatherror:(NSError **)error to copy a framework to /Library/Frameworks. But first I use - (BOOL)removeItemAtPath:(NSString *)path error:(NSError **)error On my system all is well. On a user system I get