Post

Replies

Boosts

Views

Activity

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!!!
Topic: Programming Languages SubTopic: Swift Tags:
May ’22
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!!!
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’22
Reply to Wrangling Targets in Xcode - "Select app to run"
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.
Replies
Boosts
Views
Activity
Jul ’22
Reply to QuickLook on macOS: various questions
Ah: Number 1 is pretty straightforward, using the viewWillDisappear method, to add a stop command. Still can't find anything about the 2nd question.
Replies
Boosts
Views
Activity
Jul ’22
Reply to Latest Mac OS beta has broken Applescript totally
File a report, and restore the previous release / build. You could check all the relevant security settings have been granted to all relevant processes.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to Preinstalled font use
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.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to printtool process sandboxed to oblivion: PDF Services don't work
This is still broken in Ventura. If I remember correctly, the function did return in Monterey, briefly. But I still can't get any executables to run as PDF Services. I've tried compiling Swift scripts and 'signing' them in various ways; python3 scripts; Automator applications, etc, etc. They all work fine when called outside of the print service.
Replies
Boosts
Views
Activity
Dec ’22
Reply to Swift Package Manager: Validation / "no such file"
One other thing which might be relevant: under Target > General > Frameworks and Libraries, I have the Argument Parser listed, but the "Embed" status is empty. I can't find a way to alter that.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to Swift Package Manager: Validation / "no such file"
ArgumentParser is listed in the Sidebar under Package Dependencies, but it's not under Frameworks. Should it be? Also, assuming I get it working, am I going to embed all the example code and documentation in my CLI tool? I'm on Ventura 13.2 beta and Xcode 14.1, btw.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to Swift Package Manager: Validation / "no such file"
If I copy the Argument Parser Frameworks from the Build folders to /Library/Frameworks, then my executable CLI tool works without error. But obviously, I want to build one executable, without having separate components to install and maintain. How do you embed the Package in the executable?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to Swift Package Manager: Validation / "no such file"
OK, Apparently, you need to add a "Package.swift" file with some boilerplate, but the Package Manager doesn't do that when it adds a package to your project.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jan ’23
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!
Replies
Boosts
Views
Activity
Oct ’23
Reply to Document menu == Lightbulb icon on Tahoe?
In case it's not clear, I don't consider this an improvement. I want to have words, not icons, in my menus.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Jan ’26
Reply to PDFView doesn't respond to Thumbnail in horizontal orientation
The Feedback report is FB21728837. The project is here: https://github.com/benwiggy/ReView
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Jan ’26
Reply to Document menu == Lightbulb icon on Tahoe?
FB number is FB21732645 I'll add information about the action. Thanks.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Jan ’26
Reply to Creating New Document from Clipboard -- if valid
Thanks. The first problem seems to be finding something that is in the FirstResponder chain that can validate the menu item if there's an image. AppDelegate doesn't seem to work.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jan ’26