I needed to extract some text from a handful of PDF files, so of course instead of just manually copy/pasting the text, I decided to go the long and winding road and make another LiveCode Builder library (and a widget to boot).
So I created binding strings for Apple's PDFKit framework
Code: Select all
binds to "objc:PDFKit.framework>PDFDocument.+alloc"
Then I wanted to make some updates via my laptop which is still running macOS Mohave 10.14.6, the LCB code compiles but when any PDFKit stuff is called an error is shown (something like "can't binding to foreign library")...
I figured out the problem, it seems that in versions of macOS prior to 10.15.x PDFKit.framework was sort of a sub-framework and resided inside the bundle for Quartz.framework, in versions above 10.15.x PDFKit.framework is now seperate from the Quartz bundle, which is why my original binding string worked on 10.15.x but not 10.14.x! The binding string for macOS 10.14 should be as follows:
Code: Select all
binds to "objc:Quartz.framework>PDFDocument.+alloc"