1 #import "GnuViewController.h"
4 @implementation GnuViewController
8 [activateButton setState:1];
9 [activateButton setTitle:@"--- ACTIVE ---"];
24 - (BOOL)windowShouldClose:(id)sender
26 [sender setDelegate:nil];
27 if ([controller activeTerm] == self) {
28 [controller setActiveTerm:nil];
33 #warning OK - check delegate NotificationConversion: windowDidBecomeMain:(NSNotification *)notification is an NSWindow notification method (used to be a delegate method); delegates of NSWindow are automatically set to observe this notification; subclasses of NSWindow do not automatically receive this notification
34 - (void)windowDidBecomeMain:(NSNotification *)notification
36 [controller setKeyTerm:self];
39 - activatePushed:sender
41 if ([sender state] == 1) {
42 [controller setActiveTerm: self];
43 [sender setTitle:@"--- ACTIVE ---"];
46 [controller setActiveTerm:nil];
47 [sender setTitle:@"Activate"];
55 [activateButton setState:0];
56 [activateButton setTitle:@"Activate"];