sqweek / dialog

Simple cross-platform dialog API for go-lang
ISC License
509 stars 77 forks source link

MacOS: deprecated warnings when starting the app with dialog package #73

Open ampchiu opened 1 year ago

ampchiu commented 1 year ago

setAllowedFileTypes is Deprecated I only change the API to setAllowedContentTypes

karelbilek commented 7 months ago

This shuts up the warnings, but, the actual code doesn't actually work the same way...

karelbilek commented 7 months ago

For example, doing

    file, err := dialog.File().Title("Open").Filter("jpg", "jpg").Load()

shows error

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString identifier]: unrecognized selector sent to instance 0x95a3c17fa12dadfb'
karelbilek commented 7 months ago

See #82 for correct fix