-
Notifications
You must be signed in to change notification settings - Fork 7
/
category.h
35 lines (34 loc) · 1013 Bytes
/
category.h
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
29
30
31
32
33
34
35
/**
* The structure used to represent a category.
*
* This provides a set of new definitions that are used to replace those
* contained within a class.
*
* Note: Objective-C 2 allows properties to be added to classes. The current
* ABI does not provide a field for adding properties in categories. This is
* likely to be added with ABI version 10. Until then, the methods created by
* a declared property will work, but introspection on the property will not.
*/
struct objc_category
{
/**
* The name of this category.
*/
const char *name;
/**
* The name of the class to which this category should be applied.
*/
const char *class_name;
/**
* The list of instance methods to add to the class.
*/
struct objc_method_list *instance_methods;
/**
* The list of class methods to add to the class.
*/
struct objc_method_list *class_methods;
/**
* The list of protocols adopted by this category.
*/
struct objc_protocol_list *protocols;
};