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@interface NSInvocation(KiwiAdditions)
10
11#pragma mark -
12#pragma mark Creating NSInvocation Objects
13
14+ (NSInvocation *)invocationWithTarget:(id)anObject selector:(SEL)aSelector;
15+ (NSInvocation *)invocationWithTarget:(id)anObject selector:(SEL)aSelector messageArguments:(const void *)firstBytes, ...;
16
17#pragma mark -
18#pragma mark Accessing Message Arguments
19
20// Message arguments are invocation arguments that begin after the target and selector arguments. These methods provide
21// convenient ways to access them.
22
23- (NSData *)messageArgumentDataAtIndex:(NSUInteger)anIndex;
24- (void)getMessageArgument:(void *)buffer atIndex:(NSUInteger)anIndex;
25- (void)setMessageArgument:(const void *)bytes atIndex:(NSUInteger)anIndex;
26- (void)setMessageArguments:(const void *)firstBytes, ...;
27
28@end