ReviewOS

also looking at this

craft-native/craft

feat(notifications): make the banner answerable — clicks, buttons, and a crash

#74
Merged glennmichael123 wants to merge feat/notification-actions into main
8 files +942 -17
packages/zig/src/macos.zigmodified+6-0
Changes to packages/zig/src/macos.zig
@@ -6561,6 +6561,12 @@ pub fn installAppDelegate() void {
65616561 msgSendVoid1(app, "setDelegate:", delegate);
65626562 app_delegate_installed = true;
65636563
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
65646570 if (comptime builtin.mode == .debug)
65656571 std.debug.print("[App] Installed NSApplicationDelegate\n", .{});
65666572}