• 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: Renaming issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Renaming issues


  • Subject: Re: Renaming issues
  • From: Massimiliano Origgi <email@hidden>
  • Date: Wed, 1 Jun 2005 10:12:17 +0200

Il giorno 31/mag/05, alle 16:31, Sean McBride ha scritto:

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.

Or, at least, it should be documented...


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.
Probably a working solution would be to script Finder, get the data that get lost, rename and restore them.


Massimiliano Origgi
	http://www.intuiware.com
		Coming Soon...

_______________________________________________
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


  • Follow-Ups:
    • Re: Renaming issues
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: Re: Working with QTTime
  • Next by Date: Re: Problem filing modified Sketch objects (Newbie)
  • Previous by thread: Re: Working with QTTime
  • Next by thread: Re: Renaming issues
  • Index(es):
    • Date
    • Thread