Post

Replies

Boosts

Views

Activity

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
1k
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
814
Apr ’23
Are there memory restrictions on Safari App Extensions
Can macOS Safari App Extensions be purged for example in low memory situations?
Replies
0
Boosts
0
Views
601
Activity
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?
Replies
0
Boosts
0
Views
1k
Activity
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?
Replies
0
Boosts
0
Views
814
Activity
Apr ’23
Safari App Extension: How to be notified when Safari terminates
As far as I can determine, there is no way to save the data in my Safari App Extension when Safari terminates. It seems I have to save the data every time the page changes. That's wasteful. Does anyone know of a work around?
Replies
1
Boosts
0
Views
700
Activity
Feb ’24