Post

Replies

Boosts

Views

Activity

Reply to How do you correctly use a SwiftUI View inside an NSToolbarItem?
NSToolbarItem manages its own style when isBordered is set to true (for example in your code is not manually adding a NSButton subview). On the other hand, your SwiftUI code is manually adding a Button instead, and probably NSToolbarItem isn't smart enough to recognise the pattern and fall back to its internal NSButton subclass. I don't know if there is a workaround, I would send a feedback of the issue and keep avoid NSHostingView for simple toolbar buttons, it doesn't like there isn't any advantage in SwiftUI for such things anyway.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’26
Reply to Support for webm playback and processing
AVFoundation/QuickTime Player have artificial restrictions on what it can read. Safari brings its own webm demuxer, and the VP9 decoder is not enabled by default, so to playback it in your on app (at least from a .mp4 file), you need to call VTRegisterSupplementalVideoDecoderIfAvailable(kCMVideoCodecType_VP9) I think at the moment the only way to read a WebM file in AVFoundation is stored write your own demuxer using the MediaExtension framework ( https://developer.apple.com/documentation/mediaextension )
Topic: Audio SubTopic:
Audio Q&A
Jun ’26
Reply to Appcrash on M4 MAX
Are you subdividing some work between different thread? The M4 Max has more cores, and it might expose some multi-threaded issues that aren't visible with fewer cores. Or there is some random out of bounds writing somewhere that for some random reason doesn't cause a crash on your Mac. Try to run it address sanitizer first, and then with thread sanitizer.
Feb ’26
Reply to How do you correctly use a SwiftUI View inside an NSToolbarItem?
NSToolbarItem manages its own style when isBordered is set to true (for example in your code is not manually adding a NSButton subview). On the other hand, your SwiftUI code is manually adding a Button instead, and probably NSToolbarItem isn't smart enough to recognise the pattern and fall back to its internal NSButton subclass. I don't know if there is a workaround, I would send a feedback of the issue and keep avoid NSHostingView for simple toolbar buttons, it doesn't like there isn't any advantage in SwiftUI for such things anyway.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’26
Reply to Support for webm playback and processing
AVFoundation/QuickTime Player have artificial restrictions on what it can read. Safari brings its own webm demuxer, and the VP9 decoder is not enabled by default, so to playback it in your on app (at least from a .mp4 file), you need to call VTRegisterSupplementalVideoDecoderIfAvailable(kCMVideoCodecType_VP9) I think at the moment the only way to read a WebM file in AVFoundation is stored write your own demuxer using the MediaExtension framework ( https://developer.apple.com/documentation/mediaextension )
Topic: Audio SubTopic:
Audio Q&A
Replies
Boosts
Views
Activity
Jun ’26
Reply to Appcrash on M4 MAX
Are you subdividing some work between different thread? The M4 Max has more cores, and it might expose some multi-threaded issues that aren't visible with fewer cores. Or there is some random out of bounds writing somewhere that for some random reason doesn't cause a crash on your Mac. Try to run it address sanitizer first, and then with thread sanitizer.
Replies
Boosts
Views
Activity
Feb ’26