Skip to content

Commit

Permalink
Adding an accessor for mObjectCache
Browse files Browse the repository at this point in the history
  • Loading branch information
theod committed Oct 9, 2013
1 parent 6f91355 commit 3f39e3e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Modular/library/PeerObject/TTSender.cpp
Expand Up @@ -35,7 +35,7 @@ mApplicationObserver(NULL)

addAttributeWithSetter(Address, kTypeSymbol);

addAttribute(ObjectCache, kTypePointer);
addAttributeWithGetter(ObjectCache, kTypePointer);
addAttributeProperty(ObjectCache, hidden, YES);
addAttributeProperty(ObjectCache, readOnly, YES);

Expand Down Expand Up @@ -74,6 +74,13 @@ TTErr TTSender::setAddress(const TTValue& newValue)
return bindApplication();
}

TTErr TTSender::getObjectCache(TTValue& value)
{
value = TTPtr(&mObjectCache);

return kTTErrNone;
}

#if 0
#pragma mark -
#pragma mark Some Methods
Expand Down
3 changes: 3 additions & 0 deletions Modular/library/PeerObject/TTSender.h
Expand Up @@ -43,6 +43,9 @@ class TTMODULAR_EXPORT TTSender : public TTDataObjectBase

/** Setter for mAddress attribute. */
TTErr setAddress(const TTValue& value);

/** Getter for mObjectCache attribute. */
TTErr getObjectCache(TTValue& value);

/** */
TTErr Send(TTValue& valueToSend, TTValue& outputValue); // to -- lower case in order to hide the message during the Class wrapping process
Expand Down

0 comments on commit 3f39e3e

Please sign in to comment.