]> git.saurik.com Git - apple/objc4.git/blob - runtime/Module/ObjectiveC.apinotes
objc4-723.tar.gz
[apple/objc4.git] / runtime / Module / ObjectiveC.apinotes
1 ---
2 Name: ObjectiveC
3 Classes:
4 - Name: NSArray
5 SwiftBridge: 'Swift.Array'
6 - Name: NSDictionary
7 SwiftBridge: 'Swift.Dictionary'
8 - Name: NSSet
9 SwiftBridge: 'Swift.Set'
10 - Name: NSString
11 SwiftBridge: 'Swift.String'
12 - Name: List
13 Methods:
14 - Selector: init
15 MethodKind: Instance
16 NullabilityOfRet: N
17 - Selector: 'isEqual:'
18 MethodKind: Instance
19 Nullability:
20 - O
21 NullabilityOfRet: S
22 - Name: NSObject
23 SwiftName: NSObject
24 Methods:
25 - Selector: alloc
26 MethodKind: Class
27 NullabilityOfRet: N
28 - Selector: 'allocWithZone:'
29 MethodKind: Class
30 Nullability:
31 - S
32 NullabilityOfRet: N
33 - Selector: class
34 MethodKind: Class
35 Availability: nonswift
36 AvailabilityMsg: use 'self' instead
37 - Selector: 'conformsToProtocol:'
38 MethodKind: Class
39 Nullability:
40 - N
41 NullabilityOfRet: S
42 - Selector: copy
43 MethodKind: Instance
44 NullabilityOfRet: N
45 - Selector: dealloc
46 MethodKind: Instance
47 Availability: nonswift
48 AvailabilityMsg: use 'deinit' to define a de-initializer
49 - Selector: debugDescription
50 MethodKind: Class
51 NullabilityOfRet: N
52 - Selector: description
53 MethodKind: Class
54 NullabilityOfRet: N
55 - Selector: 'forwardingTargetForSelector:'
56 MethodKind: Instance
57 Nullability:
58 - S
59 NullabilityOfRet: O
60 - Selector: 'forwardInvocation:'
61 MethodKind: Instance
62 Availability: nonswift
63 - Selector: init
64 MethodKind: Instance
65 NullabilityOfRet: N
66 DesignatedInit: true
67 - Selector: 'instanceMethodSignatureForSelector:'
68 MethodKind: Class
69 Availability: nonswift
70 - Selector: 'isSubclassOfClass:'
71 MethodKind: Class
72 Nullability:
73 - N
74 NullabilityOfRet: S
75 - Selector: 'methodSignatureForSelector:'
76 MethodKind: Instance
77 Availability: nonswift
78 - Selector: mutableCopy
79 MethodKind: Instance
80 NullabilityOfRet: N
81 - Selector: new
82 MethodKind: Class
83 NullabilityOfRet: N
84 - Selector: superclass
85 MethodKind: Class
86 NullabilityOfRet: O
87 - Name: Object
88 Methods:
89 - Selector: init
90 MethodKind: Instance
91 NullabilityOfRet: N
92 - Selector: 'isEqual:'
93 MethodKind: Instance
94 Nullability:
95 - O
96 NullabilityOfRet: S
97 Protocols:
98 - Name: NSObject
99 SwiftName: NSObjectProtocol
100 Methods:
101 - Selector: class
102 MethodKind: Instance
103 Availability: nonswift
104 AvailabilityMsg: use 'type(of:)' instead
105 - Selector: 'conformsToProtocol:'
106 MethodKind: Instance
107 Nullability:
108 - N
109 NullabilityOfRet: S
110 - Selector: 'isEqual:'
111 MethodKind: Instance
112 Nullability:
113 - O
114 NullabilityOfRet: S
115 - Selector: 'isKindOfClass:'
116 MethodKind: Instance
117 Nullability:
118 - N
119 NullabilityOfRet: S
120 - Selector: 'isMemberOfClass:'
121 MethodKind: Instance
122 Nullability:
123 - N
124 NullabilityOfRet: S
125 - Selector: self
126 MethodKind: Instance
127 NullabilityOfRet: N
128 Properties:
129 - Name: debugDescription
130 Nullability: N
131 - Name: description
132 Nullability: N
133 - Name: superclass
134 Nullability: O
135 Tags:
136 - Name: _NSZone
137 SwiftName: _NSZone
138
139
140 # Runtime functions did not yet have nullability in Swift 3.
141
142 SwiftVersions:
143 - Version: 3
144 Functions:
145 # objc.h swift3
146 - Name: object_getClassName
147 NullabilityOfRet: U
148 Nullability: [U]
149 - Name: sel_isMapped
150 Nullability: [U]
151 - Name: sel_getUid
152 NullabilityOfRet: U
153 Nullability: [U]
154
155 # objc-exception.h swift3
156 - Name: objc_exception_throw
157 Nullability: [U]
158 - Name: objc_begin_catch
159 NullabilityOfRet: U
160 Nullability: [U]
161 - Name: objc_setExceptionPreprocessor
162 NullabilityOfRet: U
163 Nullability: [U]
164 - Name: objc_setExceptionMatcher
165 NullabilityOfRet: U
166 Nullability: [U]
167 - Name: objc_setUncaughtExceptionHandler
168 NullabilityOfRet: U
169 Nullability: [U]
170 - Name: objc_addExceptionHandler
171 Nullability: [U, U]
172
173 # objc-sync.h swift3
174 - Name: objc_sync_enter
175 Nullability: [U]
176 - Name: objc_sync_exit
177 Nullability: [U]
178
179 # runtime.h swift3
180 - Name: object_getClass
181 NullabilityOfRet: U
182 Nullability: [U]
183 - Name: object_setClass
184 NullabilityOfRet: U
185 Nullability: [U, U]
186 - Name: object_isClass
187 Nullability: [U]
188 - Name: object_getIvar
189 NullabilityOfRet: U
190 Nullability: [U, U]
191 - Name: object_setIvar
192 Nullability: [U, U, U]
193 - Name: object_setIvarWithStrongDefault
194 Nullability: [U, U, U]
195 - Name: objc_getClass
196 NullabilityOfRet: U
197 Nullability: [U]
198 - Name: objc_getMetaClass
199 NullabilityOfRet: U
200 Nullability: [U]
201 - Name: objc_lookUpClass
202 NullabilityOfRet: U
203 Nullability: [U]
204 - Name: objc_getRequiredClass
205 NullabilityOfRet: U
206 Nullability: [U]
207 - Name: objc_getClassList
208 Parameters:
209 - Position: 0
210 Type: "Class _Nullable * _Null_unspecified"
211 - Name: objc_copyClassList
212 ResultType: "Class _Nullable * _Null_unspecified"
213 Nullability: [U]
214 - Name: class_getName
215 NullabilityOfRet: U
216 Nullability: [U]
217 - Name: class_isMetaClass
218 Nullability: [U]
219 - Name: class_getSuperclass
220 NullabilityOfRet: U
221 Nullability: [U]
222 - Name: class_getVersion
223 Nullability: [U]
224 - Name: class_setVersion
225 Nullability: [U]
226 - Name: class_getInstanceSize
227 Nullability: [U]
228 - Name: class_getInstanceVariable
229 NullabilityOfRet: U
230 Nullability: [U, U]
231 - Name: class_getClassVariable
232 NullabilityOfRet: U
233 Nullability: [U, U]
234 - Name: class_copyIvarList
235 ResultType: "Ivar _Nullable * _Null_unspecified"
236 Nullability: [U, U]
237 - Name: class_getInstanceMethod
238 NullabilityOfRet: U
239 Nullability: [U, U]
240 - Name: class_getClassMethod
241 NullabilityOfRet: U
242 Nullability: [U, U]
243 - Name: class_getMethodImplementation
244 NullabilityOfRet: U
245 Nullability: [U, U]
246 - Name: class_getMethodImplementation_stret
247 NullabilityOfRet: U
248 Nullability: [U, U]
249 - Name: class_respondsToSelector
250 Nullability: [U, U]
251 - Name: class_copyMethodList
252 Nullability: [U, U]
253 ResultType: "Method _Nullable * _Null_unspecified"
254 - Name: class_conformsToProtocol
255 Nullability: [U, U]
256 - Name: class_copyProtocolList
257 # fixme ResultType:
258 NullabilityOfRet: U
259 Nullability: [U, U]
260 - Name: class_getProperty
261 NullabilityOfRet: U
262 Nullability: [U, U]
263 - Name: class_copyPropertyList
264 ResultType: "objc_property_t _Nullable * _Null_unspecified"
265 Nullability: [U, U]
266 - Name: class_getIvarLayout
267 NullabilityOfRet: U
268 Nullability: [U]
269 - Name: class_getWeakIvarLayout
270 NullabilityOfRet: U
271 Nullability: [U]
272 - Name: class_addMethod
273 Nullability: [U, U, U, U]
274 - Name: class_replaceMethod
275 NullabilityOfRet: U
276 Nullability: [U, U, U, U]
277 - Name: class_addIvar
278 Nullability: [U, U, U, U, U]
279 - Name: class_addProtocol
280 Nullability: [U, U]
281 - Name: class_addProperty
282 Nullability: [U, U, U, U]
283 - Name: class_replaceProperty
284 Nullability: [U, U, U, U]
285 - Name: class_setIvarLayout
286 Nullability: [U, U]
287 - Name: class_setWeakIvarLayout
288 Nullability: [U, U]
289 - Name: class_createInstance
290 NullabilityOfRet: U
291 Nullability: [U, U]
292 - Name: objc_allocateClassPair
293 NullabilityOfRet: U
294 Nullability: [U, U, U]
295 - Name: objc_registerClassPair
296 Nullability: [U]
297 - Name: objc_duplicateClass
298 NullabilityOfRet: U
299 Nullability: [U, U, U]
300 - Name: objc_disposeClassPair
301 Nullability: [U]
302 - Name: method_getName
303 NullabilityOfRet: U
304 Nullability: [U]
305 - Name: method_getImplementation
306 NullabilityOfRet: U
307 Nullability: [U]
308 - Name: method_getTypeEncoding
309 NullabilityOfRet: U
310 Nullability: [U]
311 - Name: method_getNumberOfArguments
312 Nullability: [U]
313 - Name: method_copyReturnType
314 NullabilityOfRet: U
315 Nullability: [U]
316 - Name: method_copyArgumentType
317 NullabilityOfRet: U
318 Nullability: [U, U]
319 - Name: method_getReturnType
320 Nullability: [U, U, U]
321 - Name: method_getArgumentType
322 Nullability: [U, U, U, U]
323 - Name: method_getDescription
324 NullabilityOfRet: U
325 Nullability: [U]
326 - Name: method_setImplementation
327 NullabilityOfRet: U
328 Nullability: [U, U]
329 - Name: method_exchangeImplementations
330 Nullability: [U, U]
331 - Name: ivar_getName
332 NullabilityOfRet: U
333 Nullability: [U]
334 - Name: ivar_getTypeEncoding
335 NullabilityOfRet: U
336 Nullability: [U]
337 - Name: ivar_getOffset
338 Nullability: [U]
339 - Name: property_getName
340 NullabilityOfRet: U
341 Nullability: [U]
342 - Name: property_getAttributes
343 NullabilityOfRet: U
344 Nullability: [U]
345 - Name: property_copyAttributeList
346 NullabilityOfRet: U
347 Nullability: [U, U]
348 - Name: property_copyAttributeValue
349 NullabilityOfRet: U
350 Nullability: [U, U]
351 - Name: objc_getProtocol
352 NullabilityOfRet: U
353 Nullability: [U]
354 - Name: objc_copyProtocolList
355 # fixme ResultType:
356 NullabilityOfRet: U
357 Nullability: [U]
358 - Name: protocol_conformsToProtocol
359 Nullability: [U, U]
360 - Name: protocol_isEqual
361 Nullability: [U, U]
362 - Name: protocol_getName
363 NullabilityOfRet: U
364 Nullability: [U]
365 - Name: protocol_getMethodDescription
366 Nullability: [U, U, U, U]
367 - Name: protocol_copyMethodDescriptionList
368 NullabilityOfRet: U
369 Nullability: [U, U, U, U]
370 - Name: protocol_getProperty
371 NullabilityOfRet: U
372 Nullability: [U, U, U, U]
373 - Name: protocol_copyPropertyList
374 ResultType: "objc_property_t _Nullable * _Null_unspecified"
375 Nullability: [U, U]
376 - Name: protocol_copyPropertyList2
377 ResultType: "objc_property_t _Nullable * _Null_unspecified"
378 Nullability: [U, U, U, U]
379 - Name: protocol_copyProtocolList
380 # fixme ResultType:
381 NullabilityOfRet: U
382 Nullability: [U, U]
383 - Name: objc_allocateProtocol
384 NullabilityOfRet: U
385 Nullability: [U]
386 - Name: objc_registerProtocol
387 Nullability: [U]
388 - Name: protocol_addMethodDescription
389 Nullability: [U, U, U, U, U]
390 - Name: protocol_addProtocol
391 Nullability: [U, U]
392 - Name: protocol_addProperty
393 Nullability: [U, U, U, U, U, U]
394 - Name: objc_copyImageNames
395 ResultType: "const char * _Nullable * _Null_unspecified"
396 Nullability: [U]
397 - Name: class_getImageName
398 NullabilityOfRet: U
399 Nullability: [U]
400 - Name: objc_copyClassNamesForImage
401 ResultType: "const char * _Nullable * _Null_unspecified"
402 Nullability: [U, U]
403 - Name: sel_getName
404 NullabilityOfRet: U
405 Nullability: [U]
406 - Name: sel_registerName
407 NullabilityOfRet: U
408 Nullability: [U]
409 - Name: sel_isEqual
410 Nullability: [U, U]
411 - Name: objc_enumerationMutation
412 Nullability: [U]
413 - Name: objc_setEnumerationMutationHandler
414 Nullability: [U]
415 - Name: objc_setForwardHandler
416 Nullability: [U, U]
417 - Name: imp_implementationWithBlock
418 NullabilityOfRet: U
419 Nullability: [U]
420 - Name: imp_getBlock
421 NullabilityOfRet: U
422 Nullability: [U]
423 - Name: imp_removeBlock
424 Nullability: [U]
425 - Name: objc_loadWeak
426 NullabilityOfRet: U
427 Nullability: [U]
428 - Name: objc_storeWeak
429 NullabilityOfRet: U
430 Nullability: [U, U]
431 - Name: objc_setAssociatedObject
432 Nullability: [U, U, U, U]
433 - Name: objc_getAssociatedObject
434 NullabilityOfRet: U
435 Nullability: [U, U]
436 - Name: objc_removeAssociatedObjects
437 Nullability: [U]