Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Cocoa: Rename files

Cocoa: Rename files
Thread Tools
Fresh-Faced Recruit
Join Date: Mar 2001
Location: Göteborg, Sweden
Status: Offline
Reply With Quote
Mar 25, 2001, 07:35 AM
 
I was going to write a bit of code to rename files but couldn't find out how. In the help-files it says that NSFileManager could handle it, but I only find methods for create, delete... but no renaming. How do I do or where can I find informaioton about it.

/fredrik
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Mar 25, 2001, 08:06 AM
 
You'd probably just want to move it to a new location with a different name within the same directory. There's a method for that (movePath:toPath:handler

[This message has been edited by Angus_D (edited 03-25-2001).]
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:47 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2