home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Examples / DistributedObjects / remoteSpot / Thinker.h < prev    next >
Text File  |  1992-07-24  |  872b  |  45 lines

  1.  
  2. /* Thinker.h */
  3.  
  4. #import "Spot.h"
  5. #import <appkit/appkit.h>
  6. #import <remote/NXProxy.h>
  7.  
  8. @protocol spotClientMethods
  9. - spotList;
  10. - (oneway void) useSpotList: (bycopy in id) newSpotList;
  11. - (oneway void) serverTerminated;
  12. @end
  13.  
  14. @protocol spotServerMethods
  15. - (void) addClient:(id <spotClientMethods>)remoteClient
  16.     r:(out float *)r
  17.     g:(out float *)g
  18.     b:(out float *)b;
  19. - nukeClient: theClientRecord;
  20. - (void) clientTerminated:(in id)sender;
  21. - (oneway void) sendSpotListToClients;
  22. - getSpotForPoint:(NXPoint) pnt spotLocation:(out NXPoint *)loc;
  23. - (oneway void) spotDidChange;
  24. @end
  25.  
  26. @interface Thinker:Object <spotServerMethods, spotClientMethods, NXSenderIsInvalid>
  27. {
  28.     id    win;
  29.     id    mySpotView;
  30.     id    spotList;
  31.     id server;
  32.     BOOL isServer;
  33.     NXConnection *myConnection;
  34.  
  35.     id    clientList;
  36. }
  37.  
  38. - appDidInit:sender;
  39. - appWillTerminate:sender;
  40. - server;
  41. - (BOOL)isServer;
  42.  
  43. @end
  44.  
  45.