Re: com.apple.FinderInfo question
Re: com.apple.FinderInfo question
- Subject: Re: com.apple.FinderInfo question
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Mon, 27 Feb 2017 08:17:18 +0000
On 25 Feb 2017, at 23:36, Gordo Cath <email@hidden> wrote:
> Is it an applications responsibility to create & write data to this attribute?
That depends on what you mean by “responsibility”. This extended attribute is used to hold legacy HFS Plus metadata (things like the file type, creator and Finder flags). The OS does not, in general, use any of this metadata. However, the APIs to manage that metadata are still in the system and some apps use it for various reasons.
As to what you, as an app developer, should do, that depends on your specific situation. For example:
* If you’re just creating files, you don’t need to set the legacy HFS Plus metadata unless, well, you need to set it. If your app is working fine without setting any legacy HFS Plus metadata, that’s a /good/ thing (-:
* If you’re copying arbitrary files, you need to preserve this and other extended attributes. Most high-level copying APIs take care of this for you.
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden