File: Controller.m

package info (click to toggle)
gnustep-gui 0.7.6-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 16,464 kB
  • ctags: 7,163
  • sloc: objc: 84,669; ansic: 14,192; yacc: 290; makefile: 196; cpp: 87; sh: 21
file content (18 lines) | stat: -rw-r--r-- 273 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#import "Controller.h"

@implementation Controller

- (void)buttonPressed:(id)sender
{
  NSString* text
      = [NSString stringWithFormat:@"\"%@\" button pressed", [sender title]];

  [textField setStringValue:text];
}

- (id)window
{
  return [textField window];
}

@end