Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b34a154449
Fetching contributors…

Cannot retrieve contributors at this time

file 28 lines (20 sloc) 0.921 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
//
// Licensed under the terms in License.txt
//
// Copyright 2010 Allen Ding. All rights reserved.
//

#import "KiwiConfiguration.h"

@interface NSInvocation(KiwiAdditions)

#pragma mark -
#pragma mark Creating NSInvocation Objects

+ (NSInvocation *)invocationWithTarget:(id)anObject selector:(SEL)aSelector;
+ (NSInvocation *)invocationWithTarget:(id)anObject selector:(SEL)aSelector messageArguments:(const void *)firstBytes, ...;

#pragma mark -
#pragma mark Accessing Message Arguments

// Message arguments are invocation arguments that begin after the target and selector arguments. These methods provide
// convenient ways to access them.

- (NSData *)messageArgumentDataAtIndex:(NSUInteger)anIndex;
- (void)getMessageArgument:(void *)buffer atIndex:(NSUInteger)anIndex;
- (void)setMessageArgument:(const void *)bytes atIndex:(NSUInteger)anIndex;
- (void)setMessageArguments:(const void *)firstBytes, ...;

@end
Something went wrong with that request. Please try again.