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
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:
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
Feb ’25
Comment on SwiftUI 'List' performance issue on macOS
Hi. That doesn't explain why the subview version works fine on iOS, but is very slow on macOS. Also, the branching is the same in both cases.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’25
Comment on SwiftUI: TextField not getting focus changes inside Button
I tried that ... now the focus notifications work, but while typing in the TextField, pressing spacebar doesn't work; it always seems to trigger the Button action handler instead.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’25
Comment on Exceptions thrown with NSTextView and spell checker
This is for a macOS (AppKit) app, so I'm testing it on a Mac.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jun ’25
Comment on MapKit detailAccessoryView buttons not working on macOS Tahoe
Thanks. That's what I'm going with right now
Replies
Boosts
Views
Activity
Nov ’25