home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.mdf / SourceCode / Database / OTC_EOFBetaExamples_V1.0 / NSFoundation / Notification / Poster.m < prev    next >
Encoding:
Text File  |  1994-06-06  |  784 b   |  42 lines

  1. /*--------------------------------------------------------------------------
  2.  *
  3.  *     You may freely copy, distribute, and reuse the code in this example.
  4.  *     SHL Systemhouse disclaims any warranty of any kind, expressed or  
  5.  *    implied, as to its fitness for any particular use.
  6.  *
  7.  *
  8.  *    Poster
  9.  *
  10.  *    Inherits From:        NSObject
  11.  *
  12.  *    Conforms To:        None
  13.  *
  14.  *    Declared In:        Poster.h
  15.  *
  16.  *------------------------------------------------------------------------*/
  17. #import "Poster.h"
  18. #import <appkit/Matrix.h>
  19. #import <foundation/NSNotification.h>
  20.  
  21.  
  22.  
  23.  
  24. @implementation Poster
  25.  
  26. - raiseFlag: sender
  27. {
  28.     currentFlag = [sender selectedCell];
  29.     [[NSNotificationCenter defaultCenter] 
  30.         postNotificationName:@"RaiseFlag" object:self];
  31.     return self;
  32. }
  33.  
  34.  
  35. - currentFlag
  36. {
  37.     return currentFlag;
  38. }
  39.  
  40.  
  41. @end
  42.