On 23 Sep 2016, at 08:49, Allan Odgaard <[email protected]> wrote: > Is there any non-deprecated API to read textClipping files? > > FSOpenResFile() was deprecated in 10.8 but I haven’t found a way to replace > it. There is the com.apple.ResourceFork extended file attribute, but it seems > to be stored in some legacy format that I would rather not try to interpret.
AFAIK that's just the raw resource fork contents exposed in that extended attribute. I'm not aware of any API to read these files beyond the Resource Manager API. If you change your opinion on reading it yourself, I wrote some code a while ago that reads resource forks: https://github.com/uliwitness/ReClassicfication/blob/master/InterfaceLib/FakeResources.c (There are more files in that folder, check out the entire project at https://github.com/uliwitness/ReClassicfication/) Note that the code for writing out resource forks is still buggy, but the reading code works fine. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
