Re: Copy Bundle Resources - a Question
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