Skip to content
Browse files

mark optional and required methods using comments

  • Loading branch information...
1 parent 2e8292f commit 59a4de1e58e0d9a67f632c398e2a67ead7d62c68 @schnorr committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 Source/TupiProtocols.h
View
2 Source/TupiProtocols.h
@@ -18,12 +18,14 @@
#define __TUPIPROTOCOLS_H__
@protocol FDNode <NSObject>
+//required methods
- (NSPoint) position;
- (void) setPosition: (NSPoint) newPosition;
- (NSSet *) connectedNodes;
- (void) setParticle: (id)p;
- (id) particle;
- (NSString *) name;
+//optional
- (BOOL) isConnectedTo: (id<FDNode>) n;
- (void) addConnectedNode: (id<FDNode>) n;
- (void) removeConnectedNode: (id<FDNode>) n;

0 comments on commit 59a4de1

Please sign in to comment.
Something went wrong with that request. Please try again.