• 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: How to rename a filename in uppercase
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to rename a filename in uppercase


  • Subject: Re: How to rename a filename in uppercase
  • From: John Stiles <email@hidden>
  • Date: Sun, 20 Jan 2008 12:54:20 -0800

Well, OK, you're right, but I just simplified this issue a bit rather than explain the details of current directories, and how Xcode and the Finder don't have the same directory when the app starts, and etc etc. It's more complicated than it should be, so it's easiest to just say "use full paths."


Adam R. Maxwell wrote:

On Jan 20, 2008, at 11:15 AM, John Stiles wrote:

These look like filenames, not full paths. You can't supply a partial path here.

Yes, you can supply partial paths. See -[NSFileManager currentDirectoryPath].


adam




Simone Tessaro wrote:
Hi,
i've a question. I'm trying to write some code that make a filename in
uppercase. i wrote a thing like that:
[defaultManager movePath:@"foo.txt" toPath:@"FOO.txt" handler:nil];

this code doesn't work because cocoa seems to be case-sensitive and
this method is useless for my pourpose. So, i need a method like the
unix mv, in fact if i use the command mv foo.txt FOO.txt , everything
is allright.
Someone have a smart idea to do this? Or i need to use two renaming?
Like this (a very bad idea):
[defaultManager movePath:@"foo.txt" toPath:@"temp.txt" handler:nil];
[defaultManager movePath:@"temp.txt" toPath:@"FOO.txt" handler:nil];

Thanks

Simo
_______________________________________________

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

_______________________________________________

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

_______________________________________________

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: 
 >How to rename a filename in uppercase (From: "Simone Tessaro" <email@hidden>)
 >Re: How to rename a filename in uppercase (From: John Stiles <email@hidden>)
 >Re: How to rename a filename in uppercase (From: "Adam R. Maxwell" <email@hidden>)

  • Prev by Date: Untrusted App
  • Next by Date: Re: Untrusted App
  • Previous by thread: Re: How to rename a filename in uppercase
  • Next by thread: Re: How to rename a filename in uppercase
  • Index(es):
    • Date
    • Thread