also looking at this
feat(notifications): make the banner answerable — clicks, buttons, and a crash
#74
8 files
+942
-17
| @@ -6561,6 +6561,12 @@ pub fn installAppDelegate() void { | ||
| 6561 | 6561 | msgSendVoid1(app, "setDelegate:", delegate); |
| 6562 | 6562 | app_delegate_installed = true; |
| 6563 | 6563 | |
| 6564 | // The notification centre's delegate has the same deadline — Apple wants | |
| 6565 | // it set before the app finishes launching, so a notification the user | |
| 6566 | // clicked to launch the app is not delivered to nobody. This is the point | |
| 6567 | // #63 created for it. It is a no-op for an unbundled process. | |
| 6568 | .installResponseDelegate(); | |
| 6569 | ||
| 6564 | 6570 | if (comptime builtin.mode == .debug) |
| 6565 | 6571 | std.debug.print("[App] Installed NSApplicationDelegate\n", .{}); |
| 6566 | 6572 | } |