Re: MDItemCopyAttribute and kMDItemFinderComment
Re: MDItemCopyAttribute and kMDItemFinderComment
- Subject: Re: MDItemCopyAttribute and kMDItemFinderComment
- From: Alastair Houghton <email@hidden>
- Date: Wed, 22 Apr 2009 10:06:11 +0100
On 22 Apr 2009, at 04:30, Jeremy W. Sherman wrote:
getxattr(2) will directly access the current on-disk attribute
value. Why
not just use it as Alastair suggested?
I suppose it is worth mentioning that getxattr() won't work as a way
of getting the Finder information if the drive you're using is
formatted with a filesystem that doesn't support attributes. But on
HFS+ I think it's a good bet that the attribute name won't change
(unless the format of the data changes dramatically, and in that case
you need more code anyway).
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden