macOS Compatibility #221
Replies: 3 comments 15 replies
-
Hi @duncangroenewald, while we don't have an AppKit example, we do have a UIKit example that shows how to power a sqlite-data/Examples/CaseStudies/UIKitDemo.swift Lines 76 to 82 in ba32f0b In short, you use If you have any concrete questions about integrating with AppKit we will be happy to look into it more and discuss with you. Also, since this isn't an issue with the library I am going to convert it to a discussion. Please feel free to continue the conversation over there! |
Beta Was this translation helpful? Give feedback.
-
Typically one would bind the items array to an NSArrayController content property and any changes to the items array would trigger updates via the NSArrayController. In addition one would bind the individual items properties to AppKit UI elements such as text fields. Any item property updates would trigger UI updates. It is not clear whether this would work or whether some specific logic is required in the observe callback to trigger the list updates as well as updates to the individual item property fields. |
Beta Was this translation helpful? Give feedback.
-
Just to clarify for anyone else coming to this discussion, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
This library looks interesting but I don't see any mention of compatibility with AppKit, particularly for observing changes and updating AppKit user interface elements.
The examples provided appear to be using UIKit APIs such as NSDiffableDataSourceSnapshot.
Perhaps a simple example of updating NSTableView or NSOutlineView from within NSViewController could be provided.
Checklist
main
branch of this package.Expected behavior
Updated AppKit code example
Actual behavior
Updated AppKit code example
Reproducing project
Updated AppKit code example
SQLiteData version information
No response
Sharing version information
No response
GRDB version information
No response
Destination operating system
No response
Xcode version information
No response
Swift Compiler version information
Beta Was this translation helpful? Give feedback.
All reactions