File: PPController.m

package info (click to toggle)
gnustep-examples 1%3A1.4.0%2Bgit20210703-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,164 kB
  • sloc: objc: 17,202; makefile: 56
file content (31 lines) | stat: -rw-r--r-- 468 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#import "PPController.h"

@implementation PPController

- (void) awakeFromNib
{
  /* Por defecto se selecciona la
     herramienta de trazos. */
  tool = 0;
}

/* Se retorna el outlet que conecta con
   la paleta de colores. */
- (id) colorWell
{
  return colorWell;
}

/* Metodos Accessor para establecer/obtener la 
   herramienta seleccionada por el usuario. */
- (void) setTool: (id)sender
{  
  tool = [sender tag];
}

- (NSInteger) tool
{
  return tool;
}

@end