KWInvocationCapturer.h 986 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // Licensed under the terms in License.txt
  3. //
  4. // Copyright 2010 Allen Ding. All rights reserved.
  5. //
  6. #import "KiwiConfiguration.h"
  7. @protocol KWInvocationCapturerDelegate;
  8. @interface KWInvocationCapturer : NSProxy
  9. #pragma mark - Initializing
  10. - (id)initWithDelegate:(id)aDelegate;
  11. - (id)initWithDelegate:(id)aDelegate userInfo:(NSDictionary *)aUserInfo;
  12. + (id)invocationCapturerWithDelegate:(id)aDelegate;
  13. + (id)invocationCapturerWithDelegate:(id)aDelegate userInfo:(NSDictionary *)aUserInfo;
  14. #pragma mark - Properties
  15. @property (nonatomic, weak, readonly) id delegate;
  16. @property (nonatomic, strong, readonly) NSDictionary *userInfo;
  17. @end
  18. @protocol KWInvocationCapturerDelegate
  19. #pragma mark - Capturing Invocations
  20. - (NSMethodSignature *)invocationCapturer:(KWInvocationCapturer *)anInvocationCapturer methodSignatureForSelector:(SEL)aSelector;
  21. - (void)invocationCapturer:(KWInvocationCapturer *)anInvocationCapturer didCaptureInvocation:(NSInvocation *)anInvocation;
  22. @end