130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
* @note This is a legacy from before C had a boolean type. Prefer the standard
* C99 bool instead!
*/
typedef bool BOOL;
#endif
/**
* @brief A method implemenation.
*
* @param object The messaged object
* @param selector The selector sent
*/
typedef id _Nullable (*IMP)(id _Nonnull object, SEL _Nonnull selector, ...);
/**
|
|
|
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
* @note This is a legacy from before C had a boolean type. Prefer the standard
* C99 bool instead!
*/
typedef bool BOOL;
#endif
/**
* @brief A method implementation.
*
* @param object The messaged object
* @param selector The selector sent
*/
typedef id _Nullable (*IMP)(id _Nonnull object, SEL _Nonnull selector, ...);
/**
|
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
|
* @warning If the method uses the struct return ABI, you need to use
* @ref class_getMethodImplementation_stret instead! Depending on the
* ABI, small structs might not use the struct return ABI.
*
* @param class_ The class whose method implementation should be returned
* @param selector The selector for the method whose implementation should be
* returned
* @return The class's metod implementation for the specified selector
*/
extern IMP _Nullable class_getMethodImplementation(Class _Nullable class_,
SEL _Nonnull selector);
/**
* @brief Returns the class's method implementation for the specified selector.
*
* @warning If the method does not use use the struct return ABI, you need to
* use @ref class_getMethodImplementation instead! Depending on the
* ABI, small structs might not use the struct return ABI.
*
* @param class_ The class whose method implementation should be returned
* @param selector The selector for the method whose implementation should be
* returned
* @return The class's metod implementation for the specified selector
*/
extern IMP _Nullable class_getMethodImplementation_stret(Class _Nullable class_,
SEL _Nonnull selector);
/**
* @brief Returns the class's instance method for the specified selector
*
|
|
|
|
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
|
* @warning If the method uses the struct return ABI, you need to use
* @ref class_getMethodImplementation_stret instead! Depending on the
* ABI, small structs might not use the struct return ABI.
*
* @param class_ The class whose method implementation should be returned
* @param selector The selector for the method whose implementation should be
* returned
* @return The class's method implementation for the specified selector
*/
extern IMP _Nullable class_getMethodImplementation(Class _Nullable class_,
SEL _Nonnull selector);
/**
* @brief Returns the class's method implementation for the specified selector.
*
* @warning If the method does not use use the struct return ABI, you need to
* use @ref class_getMethodImplementation instead! Depending on the
* ABI, small structs might not use the struct return ABI.
*
* @param class_ The class whose method implementation should be returned
* @param selector The selector for the method whose implementation should be
* returned
* @return The class's method implementation for the specified selector
*/
extern IMP _Nullable class_getMethodImplementation_stret(Class _Nullable class_,
SEL _Nonnull selector);
/**
* @brief Returns the class's instance method for the specified selector
*
|