Post

Replies

Boosts

Views

Activity

Comment on NSOutlineView with Diffable Data Source
I have a Mac app that uses NSOutlineView in the app's sidebar, which has collapsible 'sections' of items in the sidebar (like in the Apple Music app). It works with regular NSOutlineViewDataSource but I was having a few issues with the implementation, and I was considering replacing that with a DiffableDataSource. However, when initializing `NSTableViewDiffableDataSource', I can't pass in a NSOutlineView. I just want a table view with 'sections' that can be used in the Mac app's sidebar.
Topic: UI Frameworks SubTopic: AppKit Tags:
Dec ’24
Comment on SwiftUI Transformable: support drag to Finder on macOS
Hi. Would this be required even if I don't have a 'custom type' to define in my app? I just have a list of files with their URLs on disk that I want the user to be able to drag out to Finder. Everything works fine for dragging out to other apps (like Mail, Notes), but not to Finder. In this case, is there a general file extension or MIME type that I would add?
Topic: UI Frameworks SubTopic: General Tags:
Feb ’25