Since no one else knows how to create an app that passes quarantine: the answer seems to be "No". Every app is suspicious, unless you pay Apple.
Post
Replies
Boosts
Views
Activity
There isn't really a 'bank' of examples. Places like the Big Nerd Code Ranch have Xcode tutorials for creating apps that display PDFs using PDFView. Most of the original Quartz coding books were written before PDFKit was introduced, so use CGPDFDocument instead of PDFDocument, etc.I've produced a suite of python scripts that use PDFKit to do pretty much everything that PDFKit can do. As well as being functional, they're designed to be exemplars of how PDFKit works. If you know Swift, and are working in Xcode, then it should be easy to translate to Swift. On github, find /benwiggy/PDFsuite
Have you reset your NVRAM? I believe the option to chime or not is stored there.
If a reset still keeps the chime, then you'll need to set it manually:
sudo nvram StartupMute=%01
Even python 2.7 is still there!
Quinn, thanks for your reply.
Yes, I'm just building this for myself, but ideally I'd like to produce something that others can follow the steps of.
Can you think of a better way of achieving the end result? As said, I tried AppleScript applications, but editing the Info.plist would always break the app. (No Entry sign.)
Just adding to this problem. I'm confused by Apple's documentation for PDFOutline. It says:
"The index of the outline object is relative to its siblings and from the perspective of the parent of the outline object. The root outline object, and any outline object without a parent, has an index value of 0."
So that suggests that Outline objects added to the root Outline should have a non-zero index. But, when I try to add the first child with an index of 1, I get an NSArray Beyond Bounds error.
I've sent Feedback, so an Apple technician should be responding and fixing this right away! Ahahaahahahaha.
My python scripts that run as PDF Services don't work in Big Sur anymore. Console is full of Sandbox deny messages for python Library files.
I'm guessing Apple has prevented PDF Services from executing python or other code. "For security reasons". Tsk.
I've found a fix until Apple decides to slacken off its evil grip over my computer. ;-)
In Automator, make an Application that runs your shell script. Raw scripts, Print plug-ins, workflows or other kinds no longer work as PDF Services.
This works for me with my python directly in the Automator "Run Shell Script" action. Whether it will let you pass control to a separate process, I don't know.
To add to this, not even shell scripts running as PDF Services, can save files.
"normally domain should not be nil (you risk a crash in filters)"
What should it be?
"you get the same result, because of the cast as!."
The same result as what?
"Result is optional, but cannot be nil, it is forced unwrapped"
If it cannot be nil, then why does it need to be optional? And why is it Any, and not 'actual' QuartzFilter?
And what about the two different types of property?
In your function, the result is a force unwrapped Any -- so why does it return an Optional?
I guess this is just a complaint about the way that Apple has chosen to do things, which doesn't really seem to have any benefit, but I suppose I'll have to live with it.
More exclamation marks!!!
OK, I need to change the Scheme, under Product menu, to get the app to build again. I was having a nightmare with build settings, but that seems to have calmed down.
Ah: Number 1 is pretty straightforward, using the viewWillDisappear method, to add a stop command.
Still can't find anything about the 2nd question.
File a report, and restore the previous release / build.
You could check all the relevant security settings have been granted to all relevant processes.
That font is installed on every Apple OS, so you can reference it without bundling it in your app. Just assume that it will be available.