• 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: Copy Bundle Resources - a Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy Bundle Resources - a Question


  • Subject: Re: Copy Bundle Resources - a Question
  • From: James Walker <email@hidden>
  • Date: Mon, 29 Jun 2009 17:25:39 -0700

Chris Espinosa wrote:

On Jun 29, 2009, at 1:52 PM, Mark Wagner wrote:

And I was hopeful....

But no - the Finder comments are still MIA...

This kind of inconsistency just makes me feel yucky somewhere inside...
Why does it have to be this way?
Copy a file... just copy the file...

Finder comments have always been fragile. If they haven't gotten it right in the past 25 years, what makes you think they'll do so now?

Finder comments are an application-specific data structure. That's why they're called "Finder" comments, not "File System" comments.


The Finder only stores an index number to the comments in the file system. The comment text itself is maintained in Finder-private store. The Finder copies Finder comments when it copies files and directories, but no other method of copying files (cp, ftp, svn, etc.) will copy Finder comments.

You should not rely on Finder comments as a persistent file metadata mechanism. Consider using Extended Attributes instead, using setxattr and getxattr. Most low-level components in Mac OS X propagate extended attributes across file systems and archive mechanisms.

At least in Leopard, Finder commands (AKA Spotlight comments) ARE stored as an extended attribute, with the key "com.apple.metadata:kMDItemFinderComment";. I verified that cp and ditto preserve this data, so it surprised me that Xcode does not, even when you turn on the "preserve HFS data" flag.


--
  James W. Walker, Innoventive Software LLC
  <http://www.frameforge3d.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Copy Bundle Resources - a Question (From: Steve Cronin <email@hidden>)
 >Re: Copy Bundle Resources - a Question (From: "James W. Walker" <email@hidden>)
 >Re: Copy Bundle Resources - a Question (From: Steve Cronin <email@hidden>)
 >Re: Copy Bundle Resources - a Question (From: Mark Wagner <email@hidden>)
 >Re: Copy Bundle Resources - a Question (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: Copy Bundle Resources - a Question
  • Next by Date: Stupid #pragma mark directive
  • Previous by thread: Re: Copy Bundle Resources - a Question
  • Next by thread: Re: Copy Bundle Resources - a Question
  • Index(es):
    • Date
    • Thread