File: Controller.m

package info (click to toggle)
gnustep-gui 0.9.5-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 9,464 kB
  • ctags: 4,689
  • sloc: objc: 104,993; ansic: 28,794; cpp: 3,058; makefile: 353; yacc: 298; sh: 37
file content (18 lines) | stat: -rw-r--r-- 274 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "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