I suspect that my mac app's savedstate data is over full. I've been doing a great many launches of my mac application which involves creating new files, then breaking back to Xcode. Now a stable compiled version and a later version launched from inside Xcode both crash. The Xcode crashes are preceded by NSDocumentController calls that include the suggestive phrase: "... makeDocumentForURL:withContentsOfURL:alternateContent...". As this occurs before control is given to my code, it must be part of document-based app's launch activity. The only thing I can see to do is to delete the app's savedstate data.
How do I delete this savedstate data? The instructions on the web are out-of-date.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
On launching my app from Xcode, my document-based app automatically apparently tries to load a cached document from a previous launch. That document appears to be corrupted as the app crashes in initWithCoder [which was called from readFromData:].
The solution appears to be to delete the cached documents. Where are they located and is there anything special about deleting them?
If I set a breakpoint in drag and drop within ...AcceptDrop... [in a NSOutlineView], both the app and Xcode hang. The only way I know to handle this is to force the app to quit then open Xcode. This shows the breakpoint, but the app can not continue.
Is there a better way to handle this?
When a user is editing a NSTextView and commits some kinds of operations (e.g. Quiting an app), the NSTextView's textStorage does not contain the current contents of the NSTextView. How do I get the current contents?
There are a number of answers to this question on the web. The latest that I have found is for early 2020, and it no longer seems appropriate. What is the current method?
In the past QLThumbnailImageCreate would return an NSImage from a url pointing to a webarchive. It's not doing so now. Is this a bug, or do I not understand something?
I am trying to add a new screenshot in either the png or jpg format to a product page of an existing app. When I try to reorder the screenshots, App Store Connect says the new screenshot is not in the RGB color space. Preview, which created them, and Finder both say they are in the RGB color space. What should I do?
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
App Store Connect
App Submission
In the past when I entered an object name in the search field at the top of the documentation window, Xcode would display appropriate object names. Now when I enter an object name like NSVIew, 'No Results' is shown. Apparently I am missing some data file. What's going on?
I submitted a version of this question 3 years ago. There has not been an answer. 662 developers are watching that question. As requested by KMT I submitted a bug report. Others had submitted a similar bug report before me.
As far as I can tell, nothing has been done to address this issue.
Not addressing this issue amounts to disturbing negligence. This is important!
WebView is flakey. It needs to be replaced.
Apple Engineering:
Please accept responsibility for this issue and respond with a date when we can expect a solution.
I received a automated phone call claiming to be from a organization managing distribution of the award in the case of Cameron, et al. vs Apple
The address I am supposed to respond to is: HTTPS://samllappdeveloperassistance.com
Is this a scam?
Using NSDocument.readFromData and NSKeyedUnarchiver.unarchiveObjectWithData, I retrieve an object (of type A) with a property of type NSMutableArray. That array contains a nested chain of objects of type A. The problem object is a child of a child... in that array. I try to do Count on that array and I get an error.
My mapkit app has to work in areas where there is no cell or internet service. Can mapkit download a local map or satellite image for later use in conjunction with GPS or saved locations?
When I shut down the mac while my app is still running, my app relaunches the next time I launch the mac. The problem is the data I had just entered into my app before shutdown is not saved as it is when I Quit the app. I'm trying to better understand this automatic relaunch of open apps so I can address this issue. Where is the documentation? What are the key words?
Just a simple question here:
As far as I can tell, I must install my Safari extension with an app that I built in Xcode.
OK.
What is not clear is what happens when the user quits my installing app. Does the extension remain available through Safari, or is it deleted?
Is it available the next time my user runs Safari, or does he/she have to run my installer app again?
I just installed the default safari app extension (the one created by Xcode) on my mac. Its icon is visible in Safari, but when I run the extension, nothing happens. Then when using the Safari/Developer/Web Inspector/ and choosing Sources, an Extension Script folder does not appear at the lower left. Do you have any suggestions to resolve this problem?
Topic:
App & System Services
SubTopic:
Core OS
Tags:
macOS
Safari Extensions
Safari Services
Safari and Web