Authorization and removing folders

2008-11-06 Thread Glover,David
Hi all, I need to remove a folder from within /Applications/OurCompany, so I'm using Authorization Services to get Admin rights, and then using removeFileAtPath to remove the folder. When I'm logged on as admin, this works perfectly fine. When I'm logged in as a standard user, I authentica

RE: Finding files before app loads

2008-10-28 Thread Glover,David
I am now using [NSFileManager defaultManager], and all is working well (noob!) :o) -Original Message- From: I. Savant [mailto:[EMAIL PROTECTED] Sent: 28 October 2008 15:49 To: Glover,David Cc: Cocoa Development Subject: Re: Finding files before app loads On Tue, Oct 28, 2008 at 11:44 AM

RE: Finding files before app loads

2008-10-28 Thread Glover,David
Sorry, I've found a problem creating an NSFileManager instance, but this is resolved and the file checks are now working :o) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] om] On Behalf Of Glover,David Sent: 28 October 2008 15:34 To: Cocoa Development Su

Finding files before app loads

2008-10-28 Thread Glover,David
Hi there, I need to locate certain files and set the state of some objects in my nib accordingly before the app is visible to the user. I'm using fileExistsAtPath to look for the files when the awakeFromNib method is invoked. The files are definitely present, but fileExistsAtPath always re

RE: Deleting Alias

2008-09-19 Thread Glover,David
happily delete an alias whether the original file is present or not AFAIK. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] om] On Behalf Of Glover,David Sent: 19 September 2008 11:36 To: Cocoa Development Subject: Deleting Alias Hi, I've tried using removeFileA

Deleting Alias

2008-09-19 Thread Glover,David
Hi, I've tried using removeFileAtPath to delete an alias in the users home folder, but this doesn't work - it deletes any other file, just not aliases. I can't seem to find another method that will do the job. Any help or advice to resolve this would be greatly appreciated. Kind Regard

RE: Removing folder from /Applications

2008-07-08 Thread Glover,David
y Sent: 08 July 2008 12:35 To: Cocoa Development Subject: Re: Removing folder from /Applications On 8.7.2008, at 12:52, Glover,David wrote: > Hi there, > > > > I've create a little app that is required to remove an obsolete folder > from /Applications. This works fine when the

Removing folder from /Applications

2008-07-08 Thread Glover,David
Hi there, I've create a little app that is required to remove an obsolete folder from /Applications. This works fine when the user is logged in as an Admin, but not when logged in as a Standard user, as they obviously require authorization. So, I added some code to request an Admin usern

Requesting Administrator Name and Password

2008-06-16 Thread Glover,David
Hi all, I've created a little app that removes some files from within /Applications. This works fine when logged in as an Administrator, but won't run when logged in as a standard user. I've been spending some time looking into requesting an Adminstrator name and password (hoping that it w

RE: Appending to file with writeToFile

2008-05-29 Thread Glover,David
Thank you for your advice - I used your suggestion plus using seekToEndOfFile beforehand worked a treat. Thanks again -Original Message- From: Ken Thomases [mailto:[EMAIL PROTECTED] Sent: 29 May 2008 16:08 To: Glover,David Cc: Cocoa-dev@lists.apple.com Subject: Re: Appending to file

Appending to file with writeToFile

2008-05-29 Thread Glover,David
Hi All, I'm using writeToFile to send strings to a log file at various points in my program, however it doesn't append the strings, it just overwrites the previous one. So the only thing in the log file is the very last string that was sent to it. I've searched around for a while and can't