Discussion:
Hide devdraw?
(too old to reply)
Brian Vito
2011-12-19 09:55:46 UTC
Permalink
Are there plans to add a "Hide devdraw"/Command-H function to devdraw
on Mac OS X? I'd add it if I could, but I'm not a programmer (just a
user of sam).
david jeannot
2011-12-19 13:18:59 UTC
Permalink
Post by Brian Vito
Are 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.)

Loading...