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
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
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
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
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
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
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
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
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
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
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
11 matches
Mail list logo