We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ba9425 + ed69203 commit b18d876Copy full SHA for b18d876
cocoa/NSApplication.go
@@ -43,7 +43,9 @@ func NSApp() NSApplication {
43
}
44
45
func NSApp_WithDidLaunch(cb func(notification objc.Object)) NSApplication {
46
- DefaultDelegateClass.AddMethod("applicationDidFinishLaunching:", cb)
+ DefaultDelegateClass.AddMethod("applicationDidFinishLaunching:", func(_, notification objc.Object){
47
+ cb(notification)
48
+ })
49
app := NSApp()
50
app.SetDelegate(DefaultDelegate)
51
return app
0 commit comments