Post

Replies

Boosts

Views

Activity

Reply to How does font caching / resources for each app work?
Clearing the font cache using atsutil has been a thing for decades. So there is clearly some sort of font cache. It seems to be a universal behaviour that any app will load the fonts it needs from the disk, and then keep them in memory. TextEdit does it, Affinity Designer does, Word does it. If apps are doing it wrong, they all are. If I change the font file on disk, that new version will be used by any app that launches. Apps already running will continue to use their old copy in memory. I could conceivably alter my font on disk before I launch every app I have, and every app would have a different version of that font. This isn't a problem that needs fixing as such: I'm just curious how it's supposed to work. If Apple is comfy with every app loading their own copy of all the font resources that they might need, rather than pointing to a single instance, then there we are. Thanks for engaging with me.
Topic: App & System Services SubTopic: General Tags:
1d
Reply to My app seems to cause Time Machine errors
This has started happening again, with a different file, but also a large (1.78 Gb) PDF that my app opens for reading. Activity Monitor does not show the file in use by my app at the time when TM reports that it could not backup the file. Quitting my app now doesn't change the result. lsof reports nothing. The file is also locked. I have tried unlocking it, and that doesn't change anything. The file was also quarantined, so I removed that, too, also to no avail. I found a shell command to look at TM logs, and it came up with this: 2026-09-13 14:03:33 fs_snapshot_list failed: Operation not supported 2026-09-13 14:02:51 Copy failed because of a problem on destination, error: -54 2026-09-13 14:02:51 Backing up from source: '/Volumes/com.apple.TimeMachine.localsnapshots/Backups.backupdb/Ben's Mini/2026-09-13-135751/Data/Users/Ben/Documents/Music Sources/Tomkins/Tomkins Musica Deo Sacra Hi-qual.pdf', stats: l:1.78 GB p:1.78 GB c:1 2026-09-13 14:02:51 To destination: '/Volumes/TB RAID/2026-09-13-135752.inprogress/Data/Users/Ben/Documents/Music Sources/Tomkins', stats: - 2026-09-13 14:02:51 Target Volume Capacity: 4004000002048, Target Volume Free Space: 3244979351552 2026-09-13 14:02:51 Got non-OSStatus error Error Domain=com.apple.backupd.ErrorDomain Code=11 "(null)" UserInfo={MessageParameters=( 2026-09-13 14:02:51 Failed copy from volume "Data"
Topic: App & System Services SubTopic: Core OS Tags:
2d
Reply to My app seems to cause Time Machine errors
If there are unsaved changes, then the app should ask to save; and that's not happening. It doesn't seem like I'm doing anything particularly wrong, or omitting something that I ought to be doing; and it only affects a small number of files, and only occasionally. I'll keep an eye on in and see if I can investigate next time it happens. Thanks
Topic: App & System Services SubTopic: Core OS Tags:
Feb ’26
Reply to My app seems to cause Time Machine errors
Might the document's size be an issue? They tend to be over 100 Mb. It's certainly not ALL the documents that I open: only a few. It's worth saying that I've deliberately switched off the auto-save functionality (autosavesInPlace = false). Can I ask what you mean by "checking the documentEdited property"..? If I close a document with unsaved changes, it flags an alert saying that there are unsaved changes; do you want to save them. If there aren't, then the document closes gracefully. I'll see if I can trigger it again and investigate a bit. Thanks
Topic: App & System Services SubTopic: Core OS Tags:
Feb ’26
Reply to My app seems to cause Time Machine errors
I've been using TM since Leopard, and I have tens of documents regularly open in a variety of applications, and I've never seen this error until I started using my own app. The app's role is an Editor, as it can modify and save files. Nonetheless, TextEdit, Pages, BBEdit, and countless other apps that I use don't have this problem.
Topic: App & System Services SubTopic: Core OS Tags:
Feb ’26
Reply to My app seems to cause Time Machine errors
I'm just using openDocument, without overriding it. Yes, the files are on the internal boot volume (APFS). The error was flagged in the UI. TM reported that the backup hadn't completed, and in System Settings it reported the name of the file. It has done this to various files: the only connection is they are all PDFs that are or have been open in my app. Closing the app and running TM fixes the error. As usual, I can't find any relevant logs in Console.
Topic: App & System Services SubTopic: Core OS Tags:
Feb ’26
Reply to My app seems to cause Time Machine errors
This is the only code I have to open the PDF: override func read(from data: Data, ofType typeName: String) throws { self.thePDFDocument = PDFDocument.init(data: data) if self.thePDFDocument == nil { throw NSError(domain: NSOSStatusErrorDomain, code: unimpErr, userInfo: nil) } } I set the PDFDocument to nil when I close it.
Topic: App & System Services SubTopic: Core OS Tags:
Feb ’26
Reply to How does font caching / resources for each app work?
Clearing the font cache using atsutil has been a thing for decades. So there is clearly some sort of font cache. It seems to be a universal behaviour that any app will load the fonts it needs from the disk, and then keep them in memory. TextEdit does it, Affinity Designer does, Word does it. If apps are doing it wrong, they all are. If I change the font file on disk, that new version will be used by any app that launches. Apps already running will continue to use their old copy in memory. I could conceivably alter my font on disk before I launch every app I have, and every app would have a different version of that font. This isn't a problem that needs fixing as such: I'm just curious how it's supposed to work. If Apple is comfy with every app loading their own copy of all the font resources that they might need, rather than pointing to a single instance, then there we are. Thanks for engaging with me.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
1d
Reply to My app seems to cause Time Machine errors
This has started happening again, with a different file, but also a large (1.78 Gb) PDF that my app opens for reading. Activity Monitor does not show the file in use by my app at the time when TM reports that it could not backup the file. Quitting my app now doesn't change the result. lsof reports nothing. The file is also locked. I have tried unlocking it, and that doesn't change anything. The file was also quarantined, so I removed that, too, also to no avail. I found a shell command to look at TM logs, and it came up with this: 2026-09-13 14:03:33 fs_snapshot_list failed: Operation not supported 2026-09-13 14:02:51 Copy failed because of a problem on destination, error: -54 2026-09-13 14:02:51 Backing up from source: '/Volumes/com.apple.TimeMachine.localsnapshots/Backups.backupdb/Ben's Mini/2026-09-13-135751/Data/Users/Ben/Documents/Music Sources/Tomkins/Tomkins Musica Deo Sacra Hi-qual.pdf', stats: l:1.78 GB p:1.78 GB c:1 2026-09-13 14:02:51 To destination: '/Volumes/TB RAID/2026-09-13-135752.inprogress/Data/Users/Ben/Documents/Music Sources/Tomkins', stats: - 2026-09-13 14:02:51 Target Volume Capacity: 4004000002048, Target Volume Free Space: 3244979351552 2026-09-13 14:02:51 Got non-OSStatus error Error Domain=com.apple.backupd.ErrorDomain Code=11 "(null)" UserInfo={MessageParameters=( 2026-09-13 14:02:51 Failed copy from volume "Data"
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
2d
Reply to How does font caching / resources for each app work?
Sorry, just bumping this, in case anyone knows anything.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
1w
Reply to My app seems to cause Time Machine errors
If there are unsaved changes, then the app should ask to save; and that's not happening. It doesn't seem like I'm doing anything particularly wrong, or omitting something that I ought to be doing; and it only affects a small number of files, and only occasionally. I'll keep an eye on in and see if I can investigate next time it happens. Thanks
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’26
Reply to My app seems to cause Time Machine errors
Oh - one other possible factor: the files are Locked in the Finder, to prevent edits. They've been on a disk for over a year, unchanged, as far as I know.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’26
Reply to My app seems to cause Time Machine errors
Might the document's size be an issue? They tend to be over 100 Mb. It's certainly not ALL the documents that I open: only a few. It's worth saying that I've deliberately switched off the auto-save functionality (autosavesInPlace = false). Can I ask what you mean by "checking the documentEdited property"..? If I close a document with unsaved changes, it flags an alert saying that there are unsaved changes; do you want to save them. If there aren't, then the document closes gracefully. I'll see if I can trigger it again and investigate a bit. Thanks
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’26
Reply to My app seems to cause Time Machine errors
I've been using TM since Leopard, and I have tens of documents regularly open in a variety of applications, and I've never seen this error until I started using my own app. The app's role is an Editor, as it can modify and save files. Nonetheless, TextEdit, Pages, BBEdit, and countless other apps that I use don't have this problem.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’26
Reply to My app seems to cause Time Machine errors
I'm just using openDocument, without overriding it. Yes, the files are on the internal boot volume (APFS). The error was flagged in the UI. TM reported that the backup hadn't completed, and in System Settings it reported the name of the file. It has done this to various files: the only connection is they are all PDFs that are or have been open in my app. Closing the app and running TM fixes the error. As usual, I can't find any relevant logs in Console.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’26
Reply to My app seems to cause Time Machine errors
This is the only code I have to open the PDF: override func read(from data: Data, ofType typeName: String) throws { self.thePDFDocument = PDFDocument.init(data: data) if self.thePDFDocument == nil { throw NSError(domain: NSOSStatusErrorDomain, code: unimpErr, userInfo: nil) } } I set the PDFDocument to nil when I close it.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’26
Reply to Signed app can't be verified
Thanks for the link -- I would never have found that post without being led to it. Many forums have 'sticky' posts or things that new members must read; or a category for Help.
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’26
Reply to How does font caching / resources for each app work?
Is this still a mystery?
Topic: App & System Services SubTopic: General 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
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 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?
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