Post

Replies

Boosts

Views

Activity

Comment on Does MKLookAroundViewController work on macOS?
Understood. FWIW, the issues are that the LookAroundPreview doesn't allow you to... look around. All it shows is a static, non-interactive image. No controls; no panning, no zooming, no movement. The desire to integrate the LookAroundPreview is to offer users the ability to... look around. This is incorporated into an application that maps lat/lng coordinates to pin markers. We would like users to be able to look around at the pin location.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’25
Comment on How do you allow an XPC service to create a new file based on an NSURL that the user selected from an NSSavePanel?
I wonder if I can just "touch" the file on the application side so that I can then create a bookmark for the XPC service. The use case is creating a new SQLite database in the XPC service... In that context, another problem that needs addressing is how to handle WAL files. If I grant access to my_database.db and then SQLite needs to create a WAL file, it won't be able to. I fear that might be another deal breaker. Thanks Quinn.... (Revisiting some old apps and app ideas...)
Jun ’24
Comment on How do you allow an XPC service to create a new file based on an NSURL that the user selected from an NSSavePanel?
Ugh, I feared that would be the case. 2024 and the limitations of the App Sandbox on macOS, while good intentioned, continue to bite. If I remember, there's a private NSXPCCoder class (or similarly named), that is encoding objects being sent to an XPC service. Some objects, like NSURL are handled in a special, undocumented way. Notably, you could encode a plain NSURL, without bookmark data, and it "just works", or at least I recall it working. xpc_session is so promising! :(
Jun ’24
Comment on In SwiftUI for macOS, is there an equivalent to NSControl.BorderShape?
Ugh, sitting right in plain sight. Thanks for the quick reply!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
3w
Comment on Do SwiftUI Segmented Controls on macOS 26 support the icon and title label style?
Thanks for the feedback, much appreciated.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
3w
Comment on Does SwiftUI for macOS have an equivalent of NSVisualEffectView's blendingMode?
Thank you.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’25
Comment on How to effectively use task(id:) when multiple properties are involved?
Thanks for the suggestion. So far I've avoided the Observation framework because I do a lot of sharing of view models between AppKit and SwiftUI and my (brief) experience with Observation pushed me to just stick with ObservableObject instead.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’25
Comment on How to correctly set a Picker's selection and contents in SwiftUI for macOS?
Great! I had not considered using a custom Binding shadowing the "real" state. I'll explore this idea further but I think this has pointed me in the right direction, thank you.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’25
Comment on How to create a momentary segmented control in SwiftUI for macOS?
Huh, interesting, thank you. To get a segmented control I've been using a Picker but hadn't considered a ControlGroup. Is there any way to know what permutation of controls inside the ControlGroup generate comparable AppKit (or AppKit-like) results?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’25
Comment on Does MKLookAroundViewController work on macOS?
Understood. FWIW, the issues are that the LookAroundPreview doesn't allow you to... look around. All it shows is a static, non-interactive image. No controls; no panning, no zooming, no movement. The desire to integrate the LookAroundPreview is to offer users the ability to... look around. This is incorporated into an application that maps lat/lng coordinates to pin markers. We would like users to be able to look around at the pin location.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’25
Comment on How to create a momentary segmented control in SwiftUI for macOS?
Ok, I was aware of this workaround but was hoping there might have been a SwiftUI "native" implementation I had overlooked. Thanks for the prompt reply. If you're working on SwiftUI for macOS, I'm happy to say that its improved significantly since I last explored it a few years back.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’25
Comment on Can SwiftUI on macOS create an NSComboButton?
Brilliant, thank you. And thank you for participating in the Developer Forums, much appreciated.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’25
Comment on Predictive code completion download failed
Update: As of 2024/10/28 8pm EST, the download appears to now be working.
Replies
Boosts
Views
Activity
Oct ’24
Comment on How do you allow an XPC service to create a new file based on an NSURL that the user selected from an NSSavePanel?
I wonder if I can just "touch" the file on the application side so that I can then create a bookmark for the XPC service. The use case is creating a new SQLite database in the XPC service... In that context, another problem that needs addressing is how to handle WAL files. If I grant access to my_database.db and then SQLite needs to create a WAL file, it won't be able to. I fear that might be another deal breaker. Thanks Quinn.... (Revisiting some old apps and app ideas...)
Replies
Boosts
Views
Activity
Jun ’24
Comment on How do you allow an XPC service to create a new file based on an NSURL that the user selected from an NSSavePanel?
Ugh, I feared that would be the case. 2024 and the limitations of the App Sandbox on macOS, while good intentioned, continue to bite. If I remember, there's a private NSXPCCoder class (or similarly named), that is encoding objects being sent to an XPC service. Some objects, like NSURL are handled in a special, undocumented way. Notably, you could encode a plain NSURL, without bookmark data, and it "just works", or at least I recall it working. xpc_session is so promising! :(
Replies
Boosts
Views
Activity
Jun ’24
Comment on Will the Virtualization Framework support iCloud accounts?
Filed as FB10113830.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’22