ObjFW  Diff

Differences From Artifact [5cc0fd9342]:

To Artifact [27f44708ae]:


95
96
97
98
99
100
101
102

103
104
105
106

107
108
109
110
111
112
113
95
96
97
98
99
100
101

102
103
104
105

106
107
108
109
110
111
112
113







-
+



-
+







+ (IMP)setImplementation: (IMP)newimp
	       forMethod: (SEL)selector;

/**
 * Replaces a method with a method from another class.
 *
 * \param selector The selector of the method to replace
 * \param class The class from which the new method should be taken
 * \param class_ The class from which the new method should be taken
 * \return The old implementation
 */
+  (IMP)replaceMethod: (SEL)selector
  withMethodFromClass: (Class)class;
  withMethodFromClass: (Class)class_;

/**
 * Initializes an already allocated object.
 *
 * Derived classes may override this, but need to do self = [super init] before
 * they do any initialization themselves. init may never return nil, instead
 * an exception (for example OFInitializationFailed) should be thrown.
123
124
125
126
127
128
129
130

131
132
133

134
135
136
137
138
139
140
123
124
125
126
127
128
129

130
131
132

133
134
135
136
137
138
139
140







-
+


-
+








/**
 * \return The name of the object's class as a C string
 */
- (const char*)className;

/**
 * \param class The class whose kind is checked
 * \param class_ The class whose kind is checked
 * \return A boolean whether the object is of the specified kind
 */
- (BOOL)isKindOfClass: (Class)class;
- (BOOL)isKindOfClass: (Class)class_;

/**
 * \param selector The selector which should be checked for respondance
 * \return A boolean whether the objects responds to the specified selector
 */
- (BOOL)respondsToSelector: (SEL)selector;