• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Modern API to read textClipping files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modern API to read textClipping files


  • Subject: Re: Modern API to read textClipping files
  • From: Uli Kusterer <email@hidden>
  • Date: Sat, 24 Sep 2016 05:08:24 +0200

On 23 Sep 2016, at 08:49, Allan Odgaard <email@hidden> 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@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


References: 
 >Modern API to read textClipping files (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: Stupid objective-c question
  • Next by Date: Re: How to update UI from a background thread
  • Previous by thread: Modern API to read textClipping files
  • Next by thread: iOS Application influencing a running web app?
  • Index(es):
    • Date
    • Thread