Post

Replies

Boosts

Views

Activity

Reply to Memory leak: NSIdleTimer, sleep?
Thanks for the reply: the good people of Stack Exchange fixed it (but then told me to delete the question as not being as good fit for the site....) In short: the way Timer.scheduledTimer is used has changed***. Someone supplied me with a different formula for using it, and that seems to have fixed it. I removed the sleep, and it seems to not be a problem without it. Anyway, the leak is fixed. *** What do you want to change things for? Things are bad enough as they are!
Oct ’23
Reply to Understanding Optionals and Types (again)
"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!!!
May ’22
Reply to PDF Service no longer working in Big Sur
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.
Feb ’21