Double click fails to open file
I have a SwiftUI app that has a custom file type defined. When I double click on an appropriate file, the app does not open. However if I select 2 files and double click then the SECOND file is passed to the application.
The app delegate code being used is:
func application(_ application: NSApplication, open urls: [URL]) {
if urls.isEmpty {
print("NO Urls supplied")
return
}
print("Unhandled: \(urls)") // << here !!
AppStateModel.shared.nwModel?.openRecentFile(urls[0].path)
}
Mac Studio (2022)