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?
Post
Replies
Boosts
Views
Activity
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?
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?
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?
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?
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.
My Mac app has two Targets. When I attempt to Archive the second Target, Xcode always uses the configuration info for the first Target (Bundle ID, Version, and Build) even though I have selected the second Target.
By configuration I mean the "General" options displayed when clicking on the project name in the Project Navigator.
I'm using a common code base for two similar apps. I though I set things up so when I chose the second app and then chose archive the new binary would go to the second app. However, the new binary appears in App Store Connect under the first app not the second app. I don't understand this process very well. What should I look at to find the problem?
"[General] Stale deferred activation count: the current app activation event does not match..." Occurs when dragging and droping in an NSOutlineView situation.How do I address this error message?Thanks
An easy question. The documentation for NSDocumentController has a section called Managing the Open Recents Menu. It's straight forward. What I don't get is where or where to call these methods. I need to remove some items from that menu.Thanks
The NSDocumentController method:- (__kindof NSDocument *)makeUntitledDocumentOfType:(NSString *)typeName error:(NSError * _Nullable *)outError;is asking for a typeName. From discussions on the web it is not clear exactly what typeName is other than a NSString. Using jus tthe UTI isn't working for me. Various suggestions are to append "modules" of various sorts. I'm lost. Anyone have a clear answer? I've tried "My_App_Name.myUTI, but no luck.Thanks
10.15.4 caused major disruption of my published app. This is the first time I have had a problem with an OS upgrade. How does one approach finding the cause? I have problems with Sandbox secure urls pointing to the wrong location and screen coordinate variations from previous appearaces. At least that's how it appears.I'm not asking for the answers, just how to go about finding them. In the past I've seen change lists for upgrades, but couldn't find them for this upgrade. Frankly, I'm freaking out about this. Get me started on a rational approach to address these issues.Thanks
Submitted an appeal when my mac app was rejected. I received no email notification that Apple had received my appeal, and the itunesconnect website shows no indication that it received my appeal. Resubmitted. Again, no notification that Apple received my appeal.Is this normal?
As wkWebView for the Mac does not supply scrollview and my app needs the scrollview property, I am forced to use webView which is deprecared . I'm currently thinking about how to avoid the absense of scrollview, but that is something for the future.Does anyone know if the Mac App Store is currently rejecting apps using webView?
When calling:NSURL* aURL = [NSURL URLByResolvingBookmarkData:secBookmark options:options relativeToURL:nil bookmarkDataIsStale:&isStale error:&err];isStale is YES.When attempting to get a fresh bookmark, calling:NSData* secureBookmark = [aURL bookmarkDataWithOptions:options includingResourceValuesForKeys:nil relativeToURL:nil error:&err];produces:2019-03-11 15:53:51.603133-0700 ***[534:8439] Error: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/oldmancoyote1/Desktop/E%20Projects%20folder/Drawing/Drawing%201%20.pdf, NSDebugDescription=Could not open() the item}If I ignore isStale, there appears to be no problem. Can I safely ignore isStale?