Post

Replies

Boosts

Views

Activity

Reply to How to drag an item using NSItemProviderWriting using async
Thanks for the idea with Task.detached. It made no change however. Please check the video below. You can see that when I start dragging the text, the loop prints the numbers in the background. Only when this is finished I can see the drag preview and the + sign to indicate open-in-place. When I drop before this preview is shown nothing happens. When it is shown (in other words, the loop has finished), then it works. In the end, what I want to achieve is that I can drag a URL promise to another application that only accepts file URLs as drop type. As long as the file does not exist (shall be created either when I start dragging, or when dropped to the target application), I want to show a some kind of loading indicator in my app. I have uploaded the code of my drag test application here: https://github.com/sarensw/DragTest. It contains all variants that I have tried so far (nothing works as of now). The one that I asked about in this post is UsingNSItemProvider1. I'm currently playing around with UsingNSViewRepresentable
Topic: UI Frameworks SubTopic: AppKit Tags:
Sep ’23
Reply to Title Bar Height Impact on Window Size in SwiftUI on macOS
Hi @TommyGun , did you find a way to fix this? I'm running into this issue with several projects myself and never found a way to fix that.
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Dec ’24
Reply to Opening SwiftUI Settings from AppKit
Hi @martin , did you find any solution to this? Just stumbled into this issue as well.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to How to open any file with a Swift macOS app
Hi Kevin, you are right. I misunderstood how this works. Given your explanation that it shows the "narrowest" match, and not the "widest" explains the behaviour that I have seen. Thank you so much for the information.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to How to drag an item using NSItemProviderWriting using async
Thanks for the idea with Task.detached. It made no change however. Please check the video below. You can see that when I start dragging the text, the loop prints the numbers in the background. Only when this is finished I can see the drag preview and the + sign to indicate open-in-place. When I drop before this preview is shown nothing happens. When it is shown (in other words, the loop has finished), then it works. In the end, what I want to achieve is that I can drag a URL promise to another application that only accepts file URLs as drop type. As long as the file does not exist (shall be created either when I start dragging, or when dropped to the target application), I want to show a some kind of loading indicator in my app. I have uploaded the code of my drag test application here: https://github.com/sarensw/DragTest. It contains all variants that I have tried so far (nothing works as of now). The one that I asked about in this post is UsingNSItemProvider1. I'm currently playing around with UsingNSViewRepresentable
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to NSTableView doesn't show new data
Hi @walexs , did you find any solution to this issue?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to SwiftUI Mac OS toolbar button seems behind other elements
I'm having the same issue. @Cloudworker , @AlanRThompson , have you been able to figure out what is happening here?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to SwiftUI Settings scene (Preferences): how call action when closed by user (click on red button or Cmd-W)
Hi h725, just stumbled upon the same issue. Did you find any solution?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to App Privacy Listing and Crash Reports
I'm also trying to figure this out. There is another thread here https://developer.apple.com/forums/thread/666205, where there are only assumptions as answers. I'm not convinced yet. I'd like to get a clear answer from an Apple employee that leaves little room for interpretation :)
Replies
Boosts
Views
Activity
Jan ’23