Re: Renaming issues
Re: Renaming issues
- Subject: Re: Renaming issues
- From: "Sean McBride" <email@hidden>
- Date: Wed, 1 Jun 2005 10:30:28 -0400
- Organization: Rogue Research
On 2005-06-01 10:12, Massimiliano Origgi said:
>Or, at least, it should be documented...
I can just see the documentation now... "Note: NSFileManager destroys
your customer's data when renaming files, please don't use this API".
>>> I've looked around so far, but I haven't found a real answer to this
>>> issue, I was even considering scripting the Finder, but it would be
>>> ugly and slow.
>>> Does anyone have an 'official' solution to this problem?
>>
>> How about FSRenameUnicode()? Which I found by searching the headers
>> for
>> 'rename'.
>
>Yep, noticed that, but I haven't tested it yet, I had the feeling it
>was just too low level to solve the issue.
Its just one function call, it won't be hard. You'll just need to
convert your path to an FSRef, which you can do via CFURL/NSURL I
believe. If you can't figure out how, post back and we'll help you.
>Probably a working solution would be to script Finder, get the data
>that get lost, rename and restore them.
No offense, but that's crazy. :) It will be harder, slower, won't work
without the Finder, etc.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden