Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Tolo/Tolo/Tolo.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ + (Subscriber *)subscriberWithObject:(id)target selector:(SEL)selector
@end

@interface NSObject (PubSub)
- (NSDictionary *)selectorsWithPrefix:(NSString *)prefix withParam:(BOOL)hasParam;
- (NSDictionary *)tolo_selectorsWithPrefix:(NSString *)prefix withParam:(BOOL)hasParam;
@end
@implementation NSObject (PubSub)

- (NSDictionary *)selectorsWithPrefix:(NSString *)prefix withParam:(BOOL)hasParam
- (NSDictionary *)tolo_selectorsWithPrefix:(NSString *)prefix withParam:(BOOL)hasParam
{
NSMutableDictionary *result = [NSMutableDictionary dictionary];

Expand Down Expand Up @@ -128,7 +128,7 @@ - (void) subscribe:(NSObject *)object
self.publishers = [NSMutableDictionary dictionary];
}

NSDictionary *publishingObjects = [object selectorsWithPrefix:self.publisherPrefix withParam:NO];
NSDictionary *publishingObjects = [object tolo_selectorsWithPrefix:self.publisherPrefix withParam:NO];

if (publishingObjects.count) {

Expand All @@ -149,7 +149,7 @@ - (void) subscribe:(NSObject *)object
if (!self.observers) {
self.observers = [NSMutableDictionary dictionary];
}
NSDictionary *observedObjects = [object selectorsWithPrefix:self.observerPrefix withParam:YES];
NSDictionary *observedObjects = [object tolo_selectorsWithPrefix:self.observerPrefix withParam:YES];

if (observedObjects.count) {

Expand Down