• 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: "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

References: 
 >Renaming issues (From: Massimiliano Origgi <email@hidden>)

  • Prev by Date: Re: NSComboBoxCell example
  • Next by Date: NSTextView: Can't it be disabled?
  • Previous by thread: Renaming issues
  • Next by thread: Replacing the default-hyphenator in the cocoa-textsystem
  • Index(es):
    • Date
    • Thread