NSInvocation+KiwiAdditions.h 895 B

1234567891011121314151617181920212223242526
  1. //
  2. // Licensed under the terms in License.txt
  3. //
  4. // Copyright 2010 Allen Ding. All rights reserved.
  5. //
  6. #import "KiwiConfiguration.h"
  7. @interface NSInvocation(KiwiAdditions)
  8. #pragma mark - Creating NSInvocation Objects
  9. + (NSInvocation *)invocationWithTarget:(id)anObject selector:(SEL)aSelector;
  10. + (NSInvocation *)invocationWithTarget:(id)anObject selector:(SEL)aSelector messageArguments:(const void *)firstBytes, ...;
  11. #pragma mark - Accessing Message Arguments
  12. // Message arguments are invocation arguments that begin after the target and selector arguments. These methods provide
  13. // convenient ways to access them.
  14. - (NSData *)messageArgumentDataAtIndex:(NSUInteger)anIndex;
  15. - (void)getMessageArgument:(void *)buffer atIndex:(NSUInteger)anIndex;
  16. - (void)setMessageArgument:(const void *)bytes atIndex:(NSUInteger)anIndex;
  17. - (void)setMessageArguments:(const void *)firstBytes, ...;
  18. @end