Skip to content
Browse files

Added forNotification

  • Loading branch information...
1 parent a0ae358 commit 59123bdf0102c41b1dc4dd19928b51d4f62607aa @cneuwirt committed Mar 2, 2014
Showing with 13 additions and 0 deletions.
  1. +2 −0 Miruken/Context/MKCallbackHandler+Context.h
  2. +11 −0 Miruken/Context/MKCallbackHandler+Context.m
View
2 Miruken/Context/MKCallbackHandler+Context.h
@@ -13,4 +13,6 @@
- (MKContext *)context;
+- (id)forNotification;
+
@end
View
11 Miruken/Context/MKCallbackHandler+Context.m
@@ -8,6 +8,8 @@
#import "MKCallbackHandler+Context.h"
#import "MKCallbackHandler+Resolvers.h"
+#import "MKCallbackHandler+Invocation.h"
+#import "MKContext+Traversal.h"
@implementation MKCallbackHandler (MKCallbackHandler_Context)
@@ -21,4 +23,13 @@ - (MKContext *)context
return context;
}
+- (id)forNotification
+{
+ MKCallbackHandler *composer = self;
+ MKContext *context = composer.context;
+ if (context)
+ composer = [context descendantOrSelf];
+ return [composer notify];
+}
+
@end

0 comments on commit 59123bd

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