Post

Replies

Boosts

Views

Activity

Reply to macOS Menu disappears when converting from NSApplicationActivationPolicyAccessory to NSApplicationActivationPolicyRegular if display disconnected and reconnected
I have not been able to fix the issue yet. The best I have come up with is to intercept the change using applicationDidChangeSCreenParameters:, and convert back to NSApplicationActivationPolicyRegular. This does cause the dock icon to reappear, but at least when the app is activated the menu bar is visible.
Topic: UI Frameworks SubTopic: AppKit Tags:
Feb ’25
Reply to macOS Menu disappears when converting from NSApplicationActivationPolicyAccessory to NSApplicationActivationPolicyRegular if display disconnected and reconnected
I have not been able to fix the issue yet. The best I have come up with is to intercept the change using applicationDidChangeSCreenParameters:, and convert back to NSApplicationActivationPolicyRegular. This does cause the dock icon to reappear, but at least when the app is activated the menu bar is visible.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Feb ’25
Reply to Get file path from .onDrop on macOS SwiftUI app
Obviously can't speak for @airbolt. but does not work for me with iOS 16.2 in simulator. From what I can tell in my experimenting, it seems that even when dragging from the Files app, iOS only drops the content of a file (eg .plainText in my use case), not the file itself???
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’23