Post

Replies

Boosts

Views

Activity

When will ScrollView for wkWebView for MacOS be implemented?
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.
0
0
731
Apr ’22
Documentation on resuming app after shut down
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?
0
0
719
Jan ’23
How to communicate between SafariExtensionHandler and SafariExtensionViewController.xib?
I'm writing a safari app extension using the default Xcode project and objective c. I want to add interface items to the popover(as Xcode has defined it with the SafariExtensionViewController.xib) and use the SafariExtensionHandler to control and respond to these interface items. I find that I can add interface items to the SafariExtensionViewController.xib. I also can connect those items to SafariExtensionViewController.h. However, SafariExtensionHandler.popoverViewController is a member of the SFSafariExtensionViewController class, the superClass of SafariExtensionViewController so I can not use this popover controller to access the outlets that I add to the SafariExtensionViewController. How can I access these interface items from the SafariExtensionHandler? ChatGPT suggest I use [SFSafariApplication sharedApplication] as an intermediary. There is no such thing. Sign!
0
0
620
Mar ’23
How to add a tableview to a safari app extension's popover window
I'm building a safari app extension with objective c. I'm using the default Xcode project. I've successfully added a NSView to the popover window. When I drag a NSTableView into the popover window, it appears in the XIB, but I can't find how to connect it to the SafariExtensionViewController. I tried adding a custom ViewController to the XIB and making the tableview its view which seems to be ok. How should I proceed from here, or is their another approach?
0
0
993
Apr ’23
How does NSStackView effect NSTableView.bounds rowAtPoint and NSEvent.locationInWindow
I'm trying to get the row index of a NSTableRowView that has experienced a mouseEnter event. It should be easy with rowAtPoint using NSEvent.locationInWindow. I can't get it to work. The NSTableView lies inside a NSStackView. Of course the NSStackView adjusts the visual size of the NSTableView etc. Is NSStackView interfering? If so, how should I adjust my call to rowAtPoint?
0
0
793
Apr ’23
How to delete my mac app's savedstate data?
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.
1
0
853
Jan ’21
How to stop MacOS Document-based App from automatically loading cached file
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?
Topic: UI Frameworks SubTopic: AppKit Tags:
1
0
737
Mar ’21
App Store Connect says my screenshots are not in the RGB color space, but they are
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?
1
0
960
Feb ’22
How to detect an uninitialized NSMutableArray produced by NSKeyedUnarchiver.unarchiveObjectWithData
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.
1
0
1.2k
Aug ’22
Making a stand-along Safari extension
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?
1
0
704
Feb ’23