Re: Renaming issues
Re: Renaming issues
- Subject: Re: Renaming issues
- From: "Sean McBride" <email@hidden>
- Date: Tue, 31 May 2005 10:31:56 -0400
- Organization: Rogue Research
On 2005-05-31 15:26, Massimiliano Origgi said:
>I'm having issues in renaming files programmatically.
>The problem is that they lose the Finder comment after being renamed.
>I'm currently using the NSFileManager to perform the operation, which
>seems the only Cocoa based solution available.
Doing "mv oldname newname" also has this problem, as well as others, like
loosing the icon position, etc. Maybe that's how NSFileManager is doing
it... lame. Do file a bug, destroying user data is bad.
>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'.
--
____________________________________________________________
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