Samond Classes Library 1.2.6-STABLE build 219
NSObject+SCRuntimeMethod.h
Go to the documentation of this file.
1 //
2 // NSObject+SCRuntimeMethod.h
3 // scl
4 //
5 // Created by Viacheslav Smolensky on 12.12.17.
6 // Copyright (c) 2007 - 2018 by Samond Development Corporation. All rights reserved.
7 //
8 
24 #import <Foundation/Foundation.h>
25 #import <scl/SCRuntimeMethod.h>
26 
62 
63 #pragma mark -
64 #pragma mark Sending Messages to Class Instances
65 - (void)sendWithValue:(void *)value selector:(SEL)selector arguments:(va_list)arguments;
66 - (void)sendWithValue:(void *)value selector:(SEL)selector, ...;
67 - (id)objectFromSelector:(SEL)selector arguments:(va_list)arguments;
68 - (id)objectFromSelector:(SEL)selector, ...;
69 - (void)sendWithSelector:(SEL)selector arguments:(va_list)arguments;
70 - (void)sendWithSelector:(SEL)selector, ...;
71 
72 #pragma mark -
73 #pragma mark Sending Messages to Classes
74 #ifndef __DOXYGEN__
75 + (void)sendWithValue:(void *)value selector:(SEL)selector arguments:(va_list)arguments;
76 + (void)sendWithValue:(void *)value selector:(SEL)selector, ...;
77 + (id)objectFromSelector:(SEL)selector arguments:(va_list)arguments;
78 + (id)objectFromSelector:(SEL)selector, ...;
79 + (void)sendWithSelector:(SEL)selector arguments:(va_list)arguments;
80 + (void)sendWithSelector:(SEL)selector, ...;
81 #endif
82 
83 #pragma mark -
84 #pragma mark Access to Methods
85 + (NSArray *)methodsWithInstance:(BOOL)instance;
86 + (NSArray *)allMethodsWithInstance:(BOOL)instance;
87 + (SCRuntimeMethod *)methodWithSelector:(SEL)selector instance:(BOOL)instance;
88 + (BOOL)containsMethodWithSelector:(SEL)selector instance:(BOOL)instance;
89 + (BOOL)addMethodWithSelector:(SEL)selector
90  implementation:(IMP)implementation
91  signature:(NSString *)signature
92  instance:(BOOL)instance;
93 + (BOOL)addMethod:(SCRuntimeMethod *)method instance:(BOOL)instance;
94 + (IMP)setMethodWithSelector:(SEL)selector instance:(BOOL)instance implementation:(IMP)implementation;
95 + (IMP)removeMethodWithSelector:(SEL)selector instance:(BOOL)instance;
96 
97 #ifdef __DOXYGEN__
98 + (void)_sendWithValue:(void *)value selector:(SEL)selector arguments:(va_list)arguments;
99 + (void)_sendWithValue:(void *)value selector:(SEL)selector, ...;
100 + (id)_objectFromSelector:(SEL)selector arguments:(va_list)arguments;
101 + (id)_objectFromSelector:(SEL)selector, ...;
102 + (void)_sendWithSelector:(SEL)selector arguments:(va_list)arguments;
103 + (void)_sendWithSelector:(SEL)selector, ...;
104 #endif
105 
106 @end
Representation of a class method.
Definition: SCRuntimeMethod.h:111
Class SCRuntimeMethod header file.
Adding to the standard classes tools for working with class runtime methods.
Definition: NSObject+SCRuntimeMethod.h:61