-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Double-click opening a file on macOS #1751
Copy link
Copy link
Closed
Labels
DS - appkitAffects the AppKit/macOS backendAffects the AppKit/macOS backendS - enhancementWouldn't this be the coolest?Wouldn't this be the coolest?
Description
When a file is associated with an app on macOS, the application:openFile: or the application:openFiles: function gets called instead of passing the target filepath as an argument. The application must handle theese calls otherwise the os will display an error message to the user that the appilcation doesn't support opening the file type.
Winit currently doesn't seem to handle either of these and there doesn't seem to be any other way of making a winit application able to handle opening a file for when the user double-clicks on an associated file.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
DS - appkitAffects the AppKit/macOS backendAffects the AppKit/macOS backendS - enhancementWouldn't this be the coolest?Wouldn't this be the coolest?