3 #import <UIKit/UIKit.h>
5 #import <Cocoa/Cocoa.h>
8 #import <VVBasics/MutNRLockArray.h>
9 #import <VVBasics/VVBasicMacros.h>
10 #import <libkern/OSAtomic.h>
20 - (void) node:(
id)n receivedOSCMessage:(
OSCMessage *)msg;
22 - (void) nodeNameChanged:(
id)node;
24 - (void) nodeDeleted:(
id)node;
34 - (NSMutableArray *) namespaceArrayForNode:(
id)n;
36 - (NSString *) docStringForNode:(
id)n;
38 - (NSString *) typeSignatureForNode:(
id)n;
40 - (
OSCValue *) currentValueForNode:(
id)n;
42 - (NSString *) returnTypeStringForNode:(
id)n;
70 OSSpinLock lastReceivedMessageLock;
78 - (void) _logDescriptionToString:(NSMutableString *)s tabDepth:(
int)d;
81 + (id) createWithName:(NSString *)n;
83 - (id) initWithName:(NSString *)n;
86 - (void) prepareToBeDeleted;
89 - (NSComparisonResult) nodeNameCompare:(
OSCNode *)comp;
92 - (void) addLocalNode:(
OSCNode *)n;
94 - (void) addLocalNodes:(NSArray *)n;
96 - (void) removeLocalNode:(
OSCNode *)n;
98 - (void) deleteLocalNode:(
OSCNode *)n;
100 - (void) removeFromAddressSpace;
103 - (
OSCNode *) findLocalNodeNamed:(NSString *)n;
105 - (
OSCNode *) findLocalNodeNamed:(NSString *)n createIfMissing:(BOOL)c;
108 - (NSMutableArray *) findLocalNodesMatchingPOSIXRegex:(NSString *)regex;
109 - (void) _addLocalNodesMatchingRegex:(NSString *)regex toMutArray:(NSMutableArray *)a;
112 - (
OSCNode *) findNodeForAddress:(NSString *)p;
114 - (
OSCNode *) findNodeForAddress:(NSString *)p createIfMissing:(BOOL)c;
115 - (
OSCNode *) findNodeForAddressArray:(NSArray *)a;
116 - (
OSCNode *) findNodeForAddressArray:(NSArray *)a createIfMissing:(BOOL)c;
118 - (NSMutableArray *) findNodesMatchingAddress:(NSString *)a;
119 - (NSMutableArray *) findNodesMatchingAddressArray:(NSArray *)a;
127 - (void) removeDelegate:(
id)d;
128 - (void) informDelegatesOfNameChange;
129 - (void) addDelegatesFromNode:(
OSCNode *)n;
137 @property (assign, readwrite)
id addressSpace;
139 @property (assign, readwrite) NSString *nodeName;
140 - (void) _setNodeName:(NSString *)n;
142 @property (readonly) NSString *fullName;
145 @property (assign, readwrite)
OSCNode *parentNode;
147 @property (assign, readwrite)
OSCNodeType nodeType;
148 @property (assign, readwrite) BOOL hiddenInMenu;
150 @property (readonly)
OSCMessage *lastReceivedMessage;
153 @property (readonly)
id delegateArray;
155 @property (assign,readwrite) BOOL autoQueryReply;
157 @property (assign,readwrite) id<OSCNodeQueryDelegate> queryDelegate;
OSCMessage * lastReceivedMessage
The last message sent to this node is retained (the message is retained instead of the value because ...
Definition: OSCNode.h:69
NSString * fullName
Sets or gets the node's full address. The node "/A/B/C" would return "/A/B/C".
Definition: OSCNode.h:63
MutLockArray * nodeContents
Read-only, returns nil or a threadsafe array of OSCNode instances "inside" me.
Definition: OSCNode.h:64
Corresponds to an OSC message: contains zero or more values, and the address path the values have to ...
Definition: OSCMessage.h:18
Subclass of MutLockArray; this class does NOT retain the objects in its array!
Definition: MutNRLockArray.h:21
An OSCNode's queryDelegate must respond to these methods, which are called when a query-type OSCMessa...
Definition: OSCNode.h:32
OSCNodeType
OSCNodeType.
Definition: OSCConstants.h:85
OSCNode describes a single destination for OSC addresses. The OSC address space is made up of many di...
Definition: OSCNode.h:57
BOOL autoQueryReply
Only used for the OSC query protocol. NO by default. if YES and the queryDelegate is nil or doesn't r...
Definition: OSCNode.h:73
NSString * nodeName
Sets or gets the node's local name. The node "/A/B/C" would return "C".
Definition: OSCNode.h:62
Delegates of OSCNode must respond to all three of these methods.
Definition: OSCNode.h:18
OSCValue encapsulates any value you can send or receive via OSC. It is NOT mutable at this time...
Definition: OSCValue.h:21
OSCNodeType nodeType
Nodes can have a basic "type", which is useful for sorting and organization.
Definition: OSCNode.h:66
id< OSCNodeQueryDelegate > queryDelegate
Only used for the OSC query protocol. nil by default, NOT retained, must respond to the OSCNodeQueryD...
Definition: OSCNode.h:74
Similar to NSMutableArray, but thread-safe. Internally, uses an NSMutableArray and a rwlock...
Definition: MutLockArray.h:20