main
1//
2// Licensed under the terms in License.txt
3//
4// Copyright 2010 Allen Ding. All rights reserved.
5//
6
7#import "KiwiConfiguration.h"
8
9@protocol KWInvocationCapturerDelegate;
10
11@interface KWInvocationCapturer : NSProxy {
12@private
13 id delegate;
14 NSDictionary *userInfo;
15}
16
17#pragma mark -
18#pragma mark Initializing
19
20- (id)initWithDelegate:(id)aDelegate;
21- (id)initWithDelegate:(id)aDelegate userInfo:(NSDictionary *)aUserInfo;
22
23+ (id)invocationCapturerWithDelegate:(id)aDelegate;
24+ (id)invocationCapturerWithDelegate:(id)aDelegate userInfo:(NSDictionary *)aUserInfo;
25
26#pragma mark -
27#pragma mark Properties
28
29@property (nonatomic, readonly) id delegate;
30@property (nonatomic, readonly) NSDictionary *userInfo;
31
32@end
33
34@protocol KWInvocationCapturerDelegate
35
36#pragma mark -
37#pragma mark Capturing Invocations
38
39- (NSMethodSignature *)invocationCapturer:(KWInvocationCapturer *)anInvocationCapturer methodSignatureForSelector:(SEL)aSelector;
40- (void)invocationCapturer:(KWInvocationCapturer *)anInvocationCapturer didCaptureInvocation:(NSInvocation *)anInvocation;
41
42@end