home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / Tutorial / Cookbook / 03a.events / MyObject.m < prev    next >
Encoding:
Text File  |  1993-01-19  |  305 b   |  25 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import "MyObject.h"
  5. #import <stdio.h>
  6.  
  7. @implementation MyObject
  8.  
  9. - incrementButton:sender
  10. {
  11.     myInt++;
  12.     printf("myInt++ = %d\n", myInt);
  13.     return self;
  14. }
  15.  
  16. - decrementButton:sender
  17. {
  18.     myInt--;
  19.     printf("myInt-- = %d\n", myInt);
  20.     return self;
  21. }
  22.  
  23.  
  24. @end
  25.