Post by Brian VitoAre there plans to add a "Hide devdraw"/Command-H
function to devdraw on Mac OS X?
You can patch
$PLAN9/src/cmd/devdraw/cocoa-screen.m:/^makemenu
this way:
i = [[NSMenuItem alloc] initWithTitle:@"Full Screen"
action:@selector(calltogglefs:)
keyEquivalent:@"f"];
[m addItem:i];
[i release];
+ i = [[NSMenuItem alloc] initWithTitle:@"Hide"
+ action:@selector(hide:)
+ keyEquivalent:@"h"];
+ [m addItem:i];
+ [i release];
+
i = [[NSMenuItem alloc] initWithTitle:@"Quit"
action:@selector(terminate:)
keyEquivalent:@"q"];
[m addItem:i];
[i release];
(I thought that the option "double-click a window's
title bar to minimize" was sufficient, and, as I
was often pressing "cmd+H" by mistake, I thought
that I will wait for the first complaint before to
add this feature.)
This change should appear in the next weeks.
(If you prefer a Devdraw binary, Brian, feel free
to send me an email.)