• 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
Modifying system files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Modifying system files


  • Subject: Modifying system files
  • From: Aaron Wallis <email@hidden>
  • Date: Sat, 9 Jun 2007 19:04:26 +1000

Hi there,

I'm building an app similar to CandyBar which needs to modify system files to customize the OSX user interface.

I'm using NSFileManager to do the modifications (as per this code):

NSFileManager * tFileManager = [[[NSFileManager alloc] init] autorelease];
[tFileManager removeFileAtPath:tfilePath handler:self];
[tFileManager movePath:[NSString stringWithFormat:@"%@/temp.aif", [bundleResource resourcePath]] toPath:tfilePath handler:self];


when it attempts to remove the file, it throws a "Error Removing" error, and obviously, doesn't remove the file...
I know, with the likes of candy bar, it asks for authentication to make the changes before doing whatever it does, but I can't seem to find any documentation on how to request for the user to login or such...


Any ideas?

Cheers :D
- Az
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Modifying system files
      • From: Wain Glaister <email@hidden>
  • Prev by Date: Re: programmatically adding model objects to NSOultineView/NSTreeController
  • Next by Date: Re: Modifying system files
  • Previous by thread: Re: programmatically adding model objects to NSOultineView/NSTreeController
  • Next by thread: Re: Modifying system files
  • Index(es):
    • Date
    • Thread