Post

Replies

Boosts

Views

Activity

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:
3h
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:
1d
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