|
|
1.1 ! root 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:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.