Getting/Setting FinderInfo attributes using native Cocoa API?
Getting/Setting FinderInfo attributes using native Cocoa API?
- Subject: Getting/Setting FinderInfo attributes using native Cocoa API?
- From: Stephane Sudre <email@hidden>
- Date: Thu, 13 Oct 2016 16:03:55 +0200
Question:
Is there a native Cocoa API that can replace the
FSGetCatalog/FSSetCatalog API when it comes to retrieving/setting the
FinderInfo (and FinderExtInfo) attributes of a file?
OS X 10.8 and later.
Problem:
The FS CoreCarbon APIs are deprecated but apparently, there's nothing
to replace them completely in Cocoa (Foundation).
The NSURL resources APIs does not support the FinderInfo attributes
(no obvious key in the broken documentation and using
"com.apple.FinderInfo" does not work).
Workaround:
This can be worked around by using the xattr.h APIs but if it could be
possible to avoid this, it would be better.
_______________________________________________
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