sqweek / dialog

Simple cross-platform dialog API for go-lang
ISC License
493 stars 76 forks source link

WDE fails to build on OSX #9

Closed ghost closed 6 years ago

ghost commented 6 years ago

go version go1.9.2 darwin/amd64

x-MacBook-Pro:wde apple$ go build
# github.com/skelterjohn/go.wde/cocoa
EventWindow.m:207:40: warning: 'NSAlternateKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:184:35: note: 'NSAlternateKeyMask' has been explicitly marked deprecated here
EventWindow.m:208:40: warning: 'NSAlternateKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:184:35: note: 'NSAlternateKeyMask' has been explicitly marked deprecated here
EventWindow.m:209:40: warning: 'NSCommandKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:185:35: note: 'NSCommandKeyMask' has been explicitly marked deprecated here
EventWindow.m:210:40: warning: 'NSCommandKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:185:35: note: 'NSCommandKeyMask' has been explicitly marked deprecated here
EventWindow.m:211:40: warning: 'NSFunctionKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:188:35: note: 'NSFunctionKeyMask' has been explicitly marked deprecated here
EventWindow.m:212:40: warning: 'NSControlKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:183:35: note: 'NSControlKeyMask' has been explicitly marked deprecated here
EventWindow.m:213:40: warning: 'NSControlKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:183:35: note: 'NSControlKeyMask' has been explicitly marked deprecated here
EventWindow.m:214:40: warning: 'NSShiftKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:182:35: note: 'NSShiftKeyMask' has been explicitly marked deprecated here
EventWindow.m:215:40: warning: 'NSShiftKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:182:35: note: 'NSShiftKeyMask' has been explicitly marked deprecated here
EventWindow.m:18:69: warning: conflicting parameter types in implementation of 'initWithContentRect:styleMask:backing:defer:': 'NSWindowStyleMask' (aka 'enum NSWindowStyleMask') vs 'NSUInteger' (aka 'unsigned long') [-Wmismatched-parameter-types]
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:295:86: note: previous definition is here
# github.com/skelterjohn/go.wde/cocoa
gmd.m:65:17: warning: 'NSTitledWindowMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:955:32: note: 'NSTitledWindowMask' has been explicitly marked deprecated here
gmd.m:65:38: warning: 'NSClosableWindowMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:956:32: note: 'NSClosableWindowMask' has been explicitly marked deprecated here
gmd.m:65:61: warning: 'NSMiniaturizableWindowMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:957:32: note: 'NSMiniaturizableWindowMask' has been explicitly marked deprecated here
gmd.m:65:90: warning: 'NSResizableWindowMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:958:32: note: 'NSResizableWindowMask' has been explicitly marked deprecated here
# github.com/gedw99/gitty/exp/ui/ci/desktop/dialog/wde
./main.go:19:8: undefined: wde
./main.go:20:12: e.Which undefined (type interface {} is interface with no methods)
./main.go:21:9: undefined: wde
./main.go:45:8: undefined: wde
./main.go:47:10: e.Glyph undefined (type interface {} is interface with no methods)
./main.go:49:10: e.Glyph undefined (type interface {} is interface with no methods)
./main.go:51:10: e.Glyph undefined (type interface {} is interface with no methods)
./main.go:54:8: undefined: wde
./main.go:55:4: undefined: wde
./main.go:63:11: undefined: wde
./main.go:63:11: too many errors
sqweek commented 6 years ago

Sorry, christmas got crazy for me and this fell off my radar. This issue should probably be against skelterjohn/go.wde, but I think the deprecation stuff is all warnings? I know there's at least one wde user on high sierra: https://github.com/skelterjohn/go.wde/issues/54

ghost commented 6 years ago

ah good point. Will chase this over at that repo thanks @sqweek