Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Copy Bundle Resources - a Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy Bundle Resources - a Question




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.

Chris
_______________________________________________
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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.