]> git.saurik.com Git - cycript.git/blob - Bridge.def
Made drastic changes to the serializer in order to support correctly serializing...
[cycript.git] / Bridge.def
1 C YES true
2 C NO false
3 C nil null
4
5 : applicationDidFinishLaunching: v12@0:4@8
6
7 T id @
8
9 T short s
10 T int i
11 T long l
12
13 T uint I
14 T ulong L
15 T ushort S
16
17 T char c
18 T boolean B
19 T float f
20 T double d
21
22 S CGPoint "x"f"y"f
23 S CGRect "origin"{CGPoint}"size"{CGSize}
24 S CGSize "width"f"height"f
25
26 l c
27
28 S nlist_64 "_un"(?="n_strx"I)"n_type"C"n_sect"C"n_desc"S"n_value"Q
29
30 F malloc ^vL
31 F free v^v
32
33 l objc
34
35 F class_addIvar B#*LC*
36 F class_addMethod B#:^?*
37 F class_addProtocol B#@
38 F class_conformsToProtocol B#@
39 F class_copyIvarList ^^{objc_ivar=}#^I
40 F class_copyMethodList ^^{objc_method=}#^I
41 F class_copyPropertyList ^^{objc_property=}#^I
42 F class_copyProtocolList ^@#^I
43 F class_createInstance @#L
44 F class_getClassMethod ^{objc_method=}#:
45 F class_getClassVariable ^{objc_ivar=}#*
46 F class_getInstanceMethod ^{objc_method=}#:
47 F class_getInstanceSize L#
48 F class_getInstanceVariable ^{objc_ivar=}#*
49 F class_getIvarLayout *#
50 F class_getMethodImplementation ^?#:
51 F class_getMethodImplementation_stret ^?#:
52 F class_getName *#
53 F class_getProperty ^{objc_property=}#*
54 F class_getSuperclass ##
55 F class_getVersion i#
56 F class_getWeakIvarLayout *#
57 F class_isMetaClass B#
58 F class_replaceMethod ^?#:^?*
59 F class_respondsToSelector B#:
60 F class_setIvarLayout v#*
61 F class_setSuperclass ###
62 F class_setVersion v#i
63 F class_setWeakIvarLayout v#*
64
65 F ivar_getName *^{objc_ivar=}
66 F ivar_getOffset i^{objc_ivar=}
67 F ivar_getTypeEncoding *^{objc_ivar=}
68
69 F method_copyArgumentType ^c^{objc_method=}I
70 F method_copyReturnType ^c^{objc_method=}
71 F method_exchangeImplementations v^{objc_method=}^{objc_method=}
72 F method_getArgumentType v^{objc_method=}I^cL
73 F method_getImplementation ^?^{objc_method=}
74 F method_getName :^{objc_method=}
75 F method_getNumberOfArguments I^{objc_method=}
76 F method_getReturnType v^{objc_method=}^cL
77 F method_getTypeEncoding *^{objc_method=}
78 F method_setImplementation ^?^{objc_method=}^?
79
80 # this should return # or ^v ?
81 F objc_allocateClassPair ##*L
82 F objc_copyProtocolList ^@^I
83 F objc_duplicateClass ##*L
84 F objc_getClass #*
85 F objc_getClassList i^#i
86 F objc_getFutureClass #*
87 F objc_getMetaClass @*
88 F objc_getProtocol @*
89 F objc_getRequiredClass @*
90 F objc_lookUpClass @*
91 F objc_registerClassPair v#
92 F objc_setFutureClass v#*
93
94 F object_copy @@L
95 F object_dispose @@
96 F object_getClass #@
97 F object_getClassName *@
98 F object_getIndexedIvars ^v@
99 F object_getInstanceVariable ^{objc_ivar=}@*^^v
100 F object_getIvar @@^{objc_ivar=}
101 F object_setClass #@#
102 F object_setInstanceVariable ^{objc_ivar=}@*^v
103 F object_setIvar v@^{objc_ivar=}@
104
105 F property_getAttributes *^{objc_property=}
106 F property_getName *^{objc_property=}
107
108 F protocol_conformsToProtocol B@@
109 F protocol_copyMethodDescriptionList ^{objc_method_description=:*}@BB^I
110 F protocol_copyPropertyList ^{objc_property=}@^I
111 F protocol_copyProtocolList ^@@^I
112 F protocol_getMethodDescription {objc_method_description=:*}@:BB
113 F protocol_getName *@
114 F protocol_getProperty ^{objc_property=}@*BB
115 F protocol_isEqual B@@
116
117 F sel_getName *:
118 F sel_getUid :*
119 F sel_isEqual B::
120 F sel_registerName :*
121
122 f UIKit
123
124 C UIBarStyleDefault 0
125 C UIBarStyleBlack 1
126 C UIBarStyleBlackOpaque 2
127 C UIBarStyleBlackTranslucent 3
128 T UIBarStyle i
129
130 C UIDataDetectorTypePhoneNumber (1<<0)
131 C UIDataDetectorTypeLink (1<<1)
132 C UIDataDetectorTypeNone 0
133 C UIDataDetectorTypeAll -1
134 T UIDataDetectorTypes {NSUInteger}
135
136 S UIEdgeInsets "top"{CGFloat}"left"{CGFloat}"bottom"{CGFloat}"right"{CGFloat}
137
138 # UINavigationBar
139
140 # UINavigationController
141
142 V UINavigationControllerHideShowBarDuration f
143
144 # UINavigationControllerDelegate
145
146 : navigationController:willShowViewController:animated: v20@0:4@8@12B16
147 : navigationController:didShowViewController:animated: v20@0:4@8@12B16
148
149 # UIScrollView
150
151 C UIScrollViewIndicatorStyleDefault 0
152 C UIScrollViewIndicatorStyleBlack 1
153 C UIScrollViewIndicatorStyleWhite 2
154
155 V UIScrollViewDecelerationRateNormal f
156 V UIScrollViewDecelerationRateFast f
157
158 # UIScrollViewDelegate
159
160 : scrollViewDidScroll: v12@0:4@8
161 : scrollViewWillBeginDragging: v12@0:4@8
162 : scrollViewDidEndDragging:willDecelerate: v16@0:4@8B12
163 : scrollViewShouldScrollToTop: B12@0:4@8
164 : scrollViewDidScrollToTop: v12@0:4@8
165 : scrollViewWillBeginDecelerating: v12@0:4@8
166 : scrollViewDidEndDecelerating: v12@0:4@8
167
168 : viewForZoomingInScrollView: @12@0:4@8
169 : scrollViewDidEndZooming:withView:atScale: v20@0:4@8@12f16
170
171 : scrollViewDidEndScrollingAnimation: v12@0:4@8
172
173 # UITabBar
174
175 # UITabBarDelegate
176
177 : tabBar:willBeginCustomizingItems: v16@0:4@8@12
178 : tabBar:didBeginCustomizingItems: v16@0:4@8@12
179 : tabBar:willBeginCustomizingItems:changed: v20@0:4@8@12B16
180 : tabBar:didBeginCustomizingItems:changed: v20@0:4@8@12B16
181 : tabBar:didSelectItem: v16@0:4@8@12
182
183 # UITableView
184
185 C UITableViewStylePlain 0
186 C UITableViewStyleGrouped 1
187
188 C UITableViewScrollPositionNone 0
189 C UITableViewScrollPositionTop 1
190 C UITableViewScrollPositionMiddle 2
191 C UITableViewScrollPositionBottom 3
192
193 C UITableViewRowAnimationFade 0
194 C UITableViewRowAnimationRight 1
195 C UITableViewRowAnimationLeft 2
196 C UITableViewRowAnimationTop 3
197 C UITableViewRowAnimationTop 4
198 C UITableViewRowAnimationNone 5
199
200 V UITableViewIndexSearch @
201
202 # UITableViewCell
203
204 C UITableViewCellStyleDefault 0
205 C UITableViewCellStyleValue1 1
206 C UITableViewCellStyleValue2 2
207 C UITableViewCellStyleSubtitle 3
208
209 C UITableViewCellStateDefaultMask 0
210 C UITableViewCellStateEditingMask (1<<0)
211 C UITableViewCellStateShowingDeleteConfirmationMask (1<<1)
212
213 C UITableViewCellSelectionStyleNone 0
214 C UITableViewCellSelectionStyleBlue 1
215 C UITableViewCellSelectionStyleGray 2
216
217 C UITableViewCellEditingStyleNone 0
218 C UITableViewCellEditingStyleDelete 1
219 C UITableViewCellEditingStyleInsert 2
220
221 C UITableViewCellAccessoryNone 0
222 C UITableViewCellAccessoryDisclosureIndicator 1
223 C UITableViewCellAccessoryDetailDisclosureButton 2
224 C UITableViewCellAccessoryCheckmark 3
225
226 C UITableViewCellSeparatorStyleNone 0
227 C UITableViewCellSeparatorStyleSingleLine 1
228
229 # UITableViewController
230
231 # UITableViewDataSource
232
233 : tableView:numberOfRowsInSection: i16@0:4@8i12
234 : numberOfSectionsInTableView: i12@0:4@8
235 : tableView:cellForRowAtIndexPath: @16@0:4@8@12
236 : sectionIndexTitlesForTableView: @12@0:4@8
237 : tableView:sectionForSectionIndexTitle:atIndex: i20@0:4@8@12i16
238 : tableView:titleForHeaderInSection: @16@0:4@8i12
239 : tableView:titleForFooterInSection: @16@0:4@8i12
240
241 : tableView:commitEditingStyle:forRowAtIndexPath: v20@0:4@8i12@16
242 : tableView:canEditRowAtIndexPath: B16@0:4@8@12
243
244 : tableView:canMoveRowAtIndexPath: B16@0:4@8@12
245 : tableView:moveRowAtIndexPath:toIndexPath: v20@0:4@8@12@16
246
247 # UIToolbar
248
249 # UIView
250
251 C UIViewAnimationCurveEaseInOut 0
252 C UIViewAnimationCurveEaseIn 1
253 C UIViewAnimationCurveEaseOut 2
254 C UIViewAnimationCurveLinear 3
255
256 C UIViewContentModeScaleToFill 0
257 C UIViewContentModeScaleAspectFit 1
258 C UIViewContentModeScaleAspectFill 2
259 C UIViewContentModeRedraw 3
260 C UIViewContentModeCenter 4
261 C UIViewContentModeTop 5
262 C UIViewContentModeBottom 6
263 C UIViewContentModeLeft 7
264 C UIViewContentModeRight 8
265 C UIViewContentModeTopLeft 9
266 C UIViewContentModeTopRight 10
267 C UIViewContentModeBottomLeft 11
268 C UIViewContentModeBottomRight 12
269
270 C UIViewAutoresizingNone 0
271 C UIViewAutoresizingFlexibleLeftMargin (1<<0)
272 C UIViewAutoresizingFlexibleWidth (1<<1)
273 C UIViewAutoresizingFlexibleRightMargin (1<<2)
274 C UIViewAutoresizingFlexibleTopMargin (1<<3)
275 C UIViewAutoresizingFlexibleHeight (1<<4)
276 C UIViewAutoresizingFlexibleBottomMargin (1<<5)
277
278 C UIViewAnimationTransitionNone 0
279 C UIViewAnimationTransitionFlipFromLeft 1
280 C UIViewAnimationTransitionFlipFromRight 2
281 C UIViewAnimationTransitionCurlUp 3
282 C UIViewAnimationTransitionCurlDown 4
283
284 # UIViewController
285
286 C UIModalTransitionStyleCoverVertical 0
287 C UIModalTransitionStyleFlipHorizontal 1
288 C UIModalTransitionStyleCrossDissolve 2
289
290 # UIWebView
291
292 C UIWebViewNavigationTypeLinkClicked 0
293 C UIWebViewNavigationTypeFormSubmitted 1
294 C UIWebViewNavigationTypeBackForward 2
295 C UIWebViewNavigationTypeReload 3
296 C UIWebViewNavigationTypeFormResubmitted 4
297 C UIWebViewNavigationTypeOther 5
298
299 # UIWebViewDelegate
300
301 : webView:shouldStartLoadWithRequest:navigationType: B20@0:4@8@12I16
302 : webViewDidStartLoad: v12@0:4@8
303 : webViewDidFinishLoad: v12@0:4@8
304 : webView:didFailLoadWithError: v16@0:4@8@12
305
306 # UIWindow
307
308 V UIWindowLevelNormal f
309 V UIWindowLevelAlert f
310 V UIWindowLevelStatusBar f
311
312 V UIKeyboardCenterBeginUserInfoKey @
313 V UIKeyboardCenterEndUserInfoKey @
314 V UIKeyboardBoundsUserInfoKey @
315 V UIKeyboardAnimationCurveUserInfoKey @
316 V UIKeyboardAnimationDurationUserInfoKey @
317
318 # Functions
319
320 F UIApplicationMain ii^^c@@
321
322 F UIImageJPEGRepresentation @@
323 F UIImagePNGRepresentation @@
324 F UIImageWriteToSavedPhotosAlbum v@@:^v
325
326 F UISaveVideoAtPathToSavedPhotosAlbum v@@:^v
327 F UIVideoAtPathIsCompatibleWithSavedPhotosAlbum B@
328
329 F UIGraphicsGetCurrentContext @
330 F UIGraphicsPushContext v@
331 F UIGraphicsPopContext v
332 F UIGraphicsBeginImageContext v{CGSize}
333 F UIGraphicsGetImageFromCurrentImageContext @
334 F UIGraphicsEndImageContext v
335 F UIRectClip v{CGRect}
336 F UIRectFill v{CGRect}
337 F UIRectFillUsingBlendMode v{CGRect}{CGBlendMode}
338 F UIRectFrame v{CGRect}
339 F UIRectFrameUsingBlendMode v{CGRect}{CGBlendMode}
340
341 F CGPointFromString {CGPoint}@
342 F CGRectFromString {CGRect}@
343 F CGSizeFromString {CGSize}@
344 F CGAffineTransformFromString {CGAffineTransform}@
345 F UIEdgeInsetsFromString {UIEdgeInsets=ffff}@
346 F NSStringFromCGPoint @{CGPoint}
347 F NSStringFromCGRect @{CGRect}
348 F NSStringFromCGSize @{CGSize}
349 F NSStringFromCGAffineTransform @{CGAffineTransform}
350 F NSStringFromUIEdgeInsets @{UIEdgeInsets=ffff}
351
352 F UIEdgeInsetsMake {UIEdgeInsets=ffff}ffff
353 F UIEdgeInsetsEqualToEdgeInsets B{UIEdgeInsets=ffff}{UIEdgeInsets=ffff}
354 F UIEdgeInsetsInsetRect {CGRect}{CGRect}{UIEdgeInsets=ffff}
355
356 # XXX: UIInterfaceOrientationIsPortrait
357 # XXX: UIInterfaceOrientationIsLandscape
358
359 # XXX: UIDeviceOrientationIsValidInterfaceOrientation
360 # XXX: UIDeviceOrientationIsPortrait
361 # XXX: UIDeviceOrientationIsLandscape
362
363 F UIAccessibilityPostNotification vI@
364
365 # Miscellaneous
366
367 F UIGetScreenImage @
368
369 F UIApplicationUseLegacyEvents vB
370
371 F UIKeyboardDisableAutomaticAppearance v
372 F UIKeyboardEnableAutomaticAppearance v
373 F UIKeyboardInputModeUsesKBStar B@
374
375 F _UIImageWithName @@
376
377 F UIFormattedPhoneNumberFromString @@
378 F UIUnformattedPhoneNumberFromString @@
379
380 V UIApp @
381
382 V kUIButtonBarButtonAction @
383 V kUIButtonBarButtonInfo @
384 V kUIButtonBarButtonInfoOffset @
385 V kUIButtonBarButtonSelectedInfo @
386 V kUIButtonBarButtonSizeToFit @
387 V kUIButtonBarButtonStyle @
388 V kUIButtonBarButtonTag @
389 V kUIButtonBarButtonTarget @
390 V kUIButtonBarButtonTitle @
391 V kUIButtonBarButtonTitleVerticalHeight @
392 V kUIButtonBarButtonTitleWidth @
393 V kUIButtonBarButtonType @
394
395 V UIKeyboardAnimationCurveUserInfoKey @
396 V UIKeyboardAnimationDurationUserInfoKey @
397 V UIKeyboardBoundsUserInfoKey @
398 V UIKeyboardCenterBeginUserInfoKey @
399 V UIKeyboardCenterEndUserInfoKey @
400 V UIKeyboardRequiresInternationalKey @
401
402 V UIKeyboardCandidateCorrectionDidChangeNotification @
403 V UIKeyboardCurrentInputModeDidChangeNotification @
404 V UIKeyboardDefaultsDidChangeNotification @
405 V UIKeyboardDidHideNotification @
406 V UIKeyboardDidShowNotification @
407 V UIKeyboardEmptyDelegateNotification @
408 V UIKeyboardWillHideNotification @
409 V UIKeyboardWillShowNotification @
410
411 V UIWebViewDidReceiveMessageNotification @
412 V UIWebViewDidClearMessagesNotification @
413 V UIWebViewGrowsAndShrinksToFitHeight f
414 V UIWebViewGrowsAndShrinksToFitWidth f
415 V UIWebViewScalesToFitScale f
416
417 f AddressBook
418
419 F ABAddressBookAddRecord B@@^@
420 F ABAddressBookCopyArrayOfAllGroups @@
421 F ABAddressBookCopyArrayOfAllPeople @@
422 F ABAddressBookCopyLocalizedLabel @@
423 F ABAddressBookCreate @
424 F ABAddressBookGetGroupCount l@
425 F ABAddressBookGetPersonCount l@
426 F ABAddressBookHasUnsavedChanges B@
427 F ABAddressBookRegisterExternalChangeCallback v@^?^v
428 F ABAddressBookRemoveRecord B@@^@
429 F ABAddressBookRevert v@
430 F ABAddressBookSave B@^@
431 F ABAddressBookUnregisterExternalChangeCallback v@^?^v
432
433 V ABAddressBookErrorDomain @
434 C kABOperationNotPermittedByStoreError 0
435
436 F ABMultiValueCopyArrayOfAllValues @@
437 F ABMultiValueCopyLabelAtIndex @@l
438 F ABMultiValueCopyValueAtIndex @@l
439 F ABMultiValueGetCount l@
440 F ABMultiValueGetFirstIndexOfValue l@@
441 F ABMultiValueGetIdentifierAtIndex i@l
442 F ABMultiValueGetIndexForIdentifier l@i
443 F ABMultiValueGetPropertyType S@
444
445 C kABMultiValueInvalidIdentifier -1
446
447 F ABMultiValueAddValueAndLabel @@@^i
448 F ABMultiValueCreateMutable @S
449 F ABMultiValueCreateMutableCopy @@
450 F ABMultiValueInsertValueAndLabelAtIndex B@@@l^i
451 F ABMultiValueRemoveValueAndLabelAtIndex B@l
452 F ABMultiValueReplaceLabelAtIndex B@@l
453 F ABMultiValueReplaceValueAtIndex B@@l
454
455 F ABRecordCopyCompositeName @@
456 F ABRecordCopyValue @@i
457 F ABRecordGetRecordID i@
458 F ABRecordGetRecordType I@
459 F ABRecordRemoveValue B@i^@
460 F ABRecordSetValue B@i@^@
461
462 C kABPersonType 0
463 C kABGroupType 1
464
465 # this was (1<<8)
466 C kABMultiValueMask 0x100
467
468 C kABInvalidPropertyType 0x0
469 C kABStringPropertyType 0x1
470 C kABIntegerPropertyType 0x2
471 C kABRealPropertyType 0x3
472 C kABDateTimePropertyType 0x4
473 C kABDictionaryPropertyType 0x5
474 C kABMultiStringPropertyType 0x101
475 C kABMultiIntegerPropertyType 0x102
476 C kABMultiRealPropertyType 0x103
477 C kABMultiDateTimePropertyType 0x104
478 C kABMultiDictionaryPropertyType 0x105
479
480 C kABRecordInvalidID -1
481 C kABPropertyInvalidID -1
482
483 F ABAddressBookGetGroupWithRecordID @@i
484 F ABGroupAddMember B@@^@
485 F ABGroupCopyArrayOfAllMembers @@
486 F ABGroupCopyArrayOfAllMembersWithSortOrdering @@I
487 F ABGroupCreate @
488 F ABGroupRemoveMember B@@^@
489
490 V kABGroupNameProperty i
491
492 F ABAddressBookCopyPeopleWithName @@@
493 F ABAddressBookGetPersonWithRecordID @@i
494 F ABPersonComparePeopleByName i@@I
495 F ABPersonCopyImageData @@
496 F ABPersonCopyLocalizedPropertyName @i
497 F ABPersonCreate @
498 F ABPersonGetCompositeNameFormat I
499 F ABPersonGetSortOrdering I
500 F ABPersonGetTypeOfProperty SI
501 F ABPersonHasImageData B@
502 F ABPersonRemoveImageData B@^@
503 F ABPersonSetImageData B@@^@
504
505 C kABPersonSortByFirstName 0
506 C kABPersonSortByLastName 1
507
508 C kABPersonCompositeNameFormatFirstNameFirst 0
509 C kABPersonCompositeNameFormatLastNameFirst 1
510
511 V kABPersonFirstNameProperty i
512 V kABPersonLastNameProperty i
513 V kABPersonMiddleNameProperty i
514 V kABPersonPrefixProperty i
515 V kABPersonSuffixProperty i
516 V kABPersonNicknameProperty i
517 V kABPersonFirstNamePhoneticProperty i
518 V kABPersonLastNamePhoneticProperty i
519 V kABPersonMiddleNamePhoneticProperty i
520 V kABPersonOrganizationProperty i
521 V kABPersonJobTitleProperty i
522 V kABPersonDepartmentProperty i
523 V kABPersonEmailProperty i
524 V kABPersonBirthdayProperty i
525 V kABPersonNoteProperty i
526 V kABPersonCreationDateProperty i
527 V kABPersonModificationDateProperty i
528
529 V kABPersonAddressProperty i
530 V kABPersonAddressStreetKey @
531 V kABPersonAddressCityKey @
532 V kABPersonAddressStateKey @
533 V kABPersonAddressZIPKey @
534 V kABPersonAddressCountryKey @
535 V kABPersonAddressCountryCodeKey @
536
537 V kABPersonDateProperty i
538 V kABPersonAnniversaryLabel @
539
540 V kABPersonKindProperty i
541 V kABPersonKindPerson @
542 V kABPersonKindOrganization @
543
544 V kABPersonPhoneProperty i
545 V kABPersonPhoneMobileLabel @
546 V kABPersonPhoneIPhoneLabel @
547 V kABPersonPhoneMainLabel @
548 V kABPersonPhoneHomeFAXLabel @
549 V kABPersonPhoneWorkFAXLabel @
550 V kABPersonPhonePagerLabel @
551
552 V kABPersonInstantMessageProperty i
553 V kABPersonInstantMessageServiceKey @
554 V kABPersonInstantMessageServiceYahoo @
555 V kABPersonInstantMessageServiceJabber @
556 V kABPersonInstantMessageServiceMSN @
557 V kABPersonInstantMessageServiceICQ @
558 V kABPersonInstantMessageServiceAIM @
559 V kABPersonInstantMessageUsernameKey @
560
561 V kABPersonURLProperty i
562 V kABPersonHomePageLabel @
563
564 V kABPersonRelatedNamesProperty i
565 V kABPersonMotherLabel @
566 V kABPersonFatherLabel @
567 V kABPersonParentLabel @
568 V kABPersonSisterLabel @
569 V kABPersonBrotherLabel @
570 V kABPersonChildLabel @
571 V kABPersonFriendLabel @
572 V kABPersonSpouseLabel @
573 V kABPersonPartnerLabel @
574 V kABPersonManagerLabel @
575 V kABPersonAssistantLabel @
576
577 V kABWorkLabel @
578 V kABHomeLabel @
579 V kABOtherLabel @
580
581 f CoreAnimation
582
583 S CATransform3D "m11"{CGFloat}"m12"{CGFloat}"m13"{CGFloat}"m14"{CGFloat}"m21"{CGFloat}"m22"{CGFloat}"m23"{CGFloat}"m24"{CGFloat}"m31"{CGFloat}"m32"{CGFloat}"m33"{CGFloat}"m34"{CGFloat}"m41"{CGFloat}"m42"{CGFloat}"m43"{CGFloat}"m44"{CGFloat}
584
585 F CACurrentMediaTime {CFTimeInterval}
586
587 F CATransform3DIsIdentity B{CATransform3D}
588 F CATransform3DEqualToTransform B{CATransform3D}{CATransform3D}
589 F CATransform3DMakeTranslation {CATransform3D}{CGFloat}{CGFloat}{CGFloat}
590 F CATransform3DMakeScale {CATransform3D}{CGFloat}{CGFloat}{CGFloat}
591 F CATransform3DMakeRotation {CATransform3D}{CGFloat}{CGFloat}{CGFloat}{CGFloat}
592 F CATransform3DTranslate {CATransform3D}{CATransform3D}{CGFloat}{CGFloat}{CGFloat}
593 F CATransform3DScale {CATransform3D}{CATransform3D}{CGFloat}{CGFloat}{CGFloat}
594 F CATransform3DRotate {CATransform3D}{CATransform3D}{CGFloat}{CGFloat}{CGFloat}{CGFloat}
595 F CATransform3DConcat {CATransform3D}{CATransform3D}{CATransform3D}
596 F CATransform3DInvert {CATransform3D}{CATransform3D}
597 F CATransform3DMakeAffineTransform {CATransform3D}{CGAffineTransform}
598 F CATransform3DIsAffine B{CATransform3D}
599 F CATransform3DGetAffineTransform {CGAffineTransform}{CATransform3D}
600
601 f CoreData
602
603 C NSUndefinedAttributeType 0
604 C NSInteger16AttributeType 100
605 C NSInteger32AttributeType 200
606 C NSInteger64AttributeType 300
607 C NSDecimalAttributeType 400
608 C NSDoubleAttributeType 500
609 C NSFloatAttributeType 600
610 C NSStringAttributeType 700
611 C NSBooleanAttributeType 800
612 C NSDateAttributeType 900
613 C NSBinaryDataAttributeType 1000
614 C NSTransformableAttributeType 1800
615 C NSObjectIDAttributeType 2000
616
617 C NSUndefinedEntityMappingType 0x00
618 C NSCustomEntityMappingType 0x01
619 C NSAddEntityMappingType 0x02
620 C NSRemoveEntityMappingType 0x03
621 C NSCopyEntityMappingType 0x04
622 C NSTransformEntityMappingType 0x05
623
624 V NSMigrationManagerKey @
625 V NSMigrationSourceObjectKey @
626 V NSMigrationDestinationObjectKey @
627 V NSMigrationEntityMappingKey @
628 V NSMigrationPropertyMappingKey @
629 V NSMigrationPropertyMappingKey @
630
631 C NSManagedObjectResultType 0x00
632 C NSManagedObjectIDResultType 0x01
633 C NSDictionaryResultType 0x02
634
635 C NSFetchRequestExpressionType 50
636
637 C NSSnapshotEventUndoInsertion 1<<1
638 C NSSnapshotEventUndoDeletion 1<<2
639 C NSSnapshotEventUndoUpdate 1<<3
640 C NSSnapshotEventRollback 1<<4
641 C NSSnapshotEventRefresh 1<<5
642 C NSSnapshotEventMergePolicy 1<<6
643
644 V NSInsertedObjectsKey @
645 V NSUpdatedObjectsKey @
646 V NSDeletedObjectsKey @
647 V NSRefreshedObjectsKey @
648 V NSInvalidatedObjectsKey @
649 V NSInvalidatedAllObjectsKey @
650
651 V NSErrorMergePolicy @
652 V NSMergeByPropertyStoreTrumpMergePolicy @
653 V NSMergeByPropertyObjectTrumpMergePolicy @
654 V NSOverwriteMergePolicy @
655 V NSRollbackMergePolicy @
656
657 V NSSQLiteStoreType @
658 V NSBinaryStoreType @
659 V NSInMemoryStoreType @
660
661 V NSStoreTypeKey @
662 V NSStoreUUIDKey @
663
664 V NSAddedPersistentStoresKey @
665 V NSRemovedPersistentStoresKey @
666 V NSUUIDChangedPersistentStoresKey @
667
668 V NSReadOnlyPersistentStoreOption @
669 V NSPersistentStoreTimeoutOption @
670 V NSSQLitePragmasOption @
671 V NSSQLiteAnalyzeOption @
672 V NSSQLiteManualVacuumOption @
673
674 V NSIgnorePersistentStoreVersioningOption @
675 V NSMigratePersistentStoresAutomaticallyOption @
676 V NSInferMappingModelAutomaticallyOption @
677
678 V NSStoreModelVersionHashesKey @
679 V NSStoreModelVersionIdentifiersKey @
680 V NSPersistentStoreOSCompatibility @
681
682 C NSNoActionDeleteRule 0
683 C NSNullifyDeleteRule 1
684 C NSCascadeDeleteRule 2
685 C NSDenyDeleteRule 3
686
687 C NSFetchedResultsChangeInsert 1
688 C NSFetchedResultsChangeDelete 2
689 C NSFetchedResultsChangeMove 3
690 C NSFetchedResultsChangeUpdate 4
691
692 V NSDetailedErrorsKey @
693 V NSValidationObjectErrorKey @
694 V NSValidationKeyErrorKey @
695 V NSValidationPredicateErrorKey @
696 V NSValidationValueErrorKey @
697 V NSAffectedStoresErrorKey @
698 V NSAffectedObjectsErrorKey @
699
700 V NSSQLiteErrorDomain @
701
702 C NSManagedObjectValidationError 1550
703 C NSValidationMultipleErrorsError 1560
704 C NSValidationMissingMandatoryPropertyError 1570
705 C NSValidationRelationshipLacksMinimumCountError 1580
706 C NSValidationRelationshipExceedsMaximumCountError 1590
707 C NSValidationRelationshipDeniedDeleteError 1600
708 C NSValidationNumberTooLargeError 1610
709 C NSValidationNumberTooSmallError 1620
710 C NSValidationDateTooLateError 1630
711 C NSValidationDateTooSoonError 1640
712 C NSValidationInvalidDateError 1650
713 C NSValidationStringTooLongError 1660
714 C NSValidationStringTooShortError 1670
715 C NSValidationStringPatternMatchingError 1680
716
717 C NSManagedObjectContextLockingError 132000
718 C NSPersistentStoreCoordinatorLockingError 132010
719 C NSManagedObjectReferentialIntegrityError 133000
720 C NSManagedObjectExternalRelationshipError 133010
721 C NSManagedObjectMergeError 133020
722
723 C NSPersistentStoreInvalidTypeError 134000
724 C NSPersistentStoreTypeMismatchError 134010
725 C NSPersistentStoreIncompatibleSchemaError 134020
726 C NSPersistentStoreSaveError 134030
727 C NSPersistentStoreIncompleteSaveError 134040
728 C NSPersistentStoreOperationError 134070
729 C NSPersistentStoreOpenError 134080
730 C NSPersistentStoreTimeoutError 134090
731 C NSPersistentStoreIncompatibleVersionHashError 134100
732
733 C NSMigrationError 134110
734 C NSMigrationCancelledError 134120
735 C NSMigrationMissingSourceModelError 134130
736 C NSMigrationMissingMappingModelError 134140
737 C NSMigrationManagerSourceStoreError 134150
738 C NSMigrationManagerDestinationStoreError 134160
739 C NSEntityMigrationPolicyError 134170
740 C NSInferredMappingModelError 134190
741 C NSExternalRecordImportError 134200
742
743 C NSCoreDataError 134060
744 C NSSQLiteError 134180
745
746 V NSCoreDataVersionNumber d
747
748 C NSCoreDataVersionNumber10_4 46.0
749 C NSCoreDataVersionNumber10_4_3 77.0
750 C NSCoreDataVersionNumber10_5 185.0
751 C NSCoreDataVersionNumber10_5_3 186.0
752
753 f CoreFoundation
754
755 # Base Utilities
756
757 F CFRangeMake {CFRange}{CFIndex}{CFIndex}
758
759 # CFComparatorFunction
760
761 T CFIndex l
762 T CFOptionFlags {UInt32}
763 S CFRange "location"{CFIndex}"length"{CFIndex}
764
765 E CFComparisonResult
766 C kCFCompareLessThan -1
767 C kCFCompareEqualTo 0
768 C kCFCompareGreaterThan 1
769 # CFComparisonResult CFComparisonResult
770
771 C kCFNotFound -1
772
773 V kCFCoreFoundationVersionNumber d
774
775 C kCFCoreFoundationVersionNumber10_0 196.40
776 C kCFCoreFoundationVersionNumber10_0_3 196.50
777 C kCFCoreFoundationVersionNumber10_1 226.00
778 C kCFCoreFoundationVersionNumber10_1_1 226.00
779 C kCFCoreFoundationVersionNumber10_1_2 227.20
780 C kCFCoreFoundationVersionNumber10_1_3 227.20
781 C kCFCoreFoundationVersionNumber10_1_4 227.30
782 C kCFCoreFoundationVersionNumber10_2 263.00
783 C kCFCoreFoundationVersionNumber10_2_1 263.10
784 C kCFCoreFoundationVersionNumber10_2_2 263.10
785 C kCFCoreFoundationVersionNumber10_2_3 263.30
786 C kCFCoreFoundationVersionNumber10_2_4 263.30
787 C kCFCoreFoundationVersionNumber10_2_5 263.50
788 C kCFCoreFoundationVersionNumber10_2_6 263.50
789 C kCFCoreFoundationVersionNumber10_2_7 263.50
790 C kCFCoreFoundationVersionNumber10_2_8 263.50
791 C kCFCoreFoundationVersionNumber10_3 299.00
792 C kCFCoreFoundationVersionNumber10_3_1 299.00
793 C kCFCoreFoundationVersionNumber10_3_2 299.00
794 C kCFCoreFoundationVersionNumber10_3_3 299.30
795 C kCFCoreFoundationVersionNumber10_3_4 299.31
796 C kCFCoreFoundationVersionNumber10_3_5 299.31
797 C kCFCoreFoundationVersionNumber10_3_6 299.32
798 C kCFCoreFoundationVersionNumber10_3_7 299.33
799 C kCFCoreFoundationVersionNumber10_3_8 299.33
800 C kCFCoreFoundationVersionNumber10_3_9 299.35
801 C kCFCoreFoundationVersionNumber10_4 368.00
802 C kCFCoreFoundationVersionNumber10_4_1 368.10
803 C kCFCoreFoundationVersionNumber10_4_2 368.11
804 C kCFCoreFoundationVersionNumber10_4_3 368.18
805 C kCFCoreFoundationVersionNumber10_4_4_Intel 368.26
806 C kCFCoreFoundationVersionNumber10_4_4_PowerPC 368.25
807 C kCFCoreFoundationVersionNumber10_4_5_Intel 368.26
808 C kCFCoreFoundationVersionNumber10_4_5_PowerPC 368.25
809 C kCFCoreFoundationVersionNumber10_4_6_Intel 368.26
810 C kCFCoreFoundationVersionNumber10_4_6_PowerPC 368.25
811 C kCFCoreFoundationVersionNumber10_4_7 368.27
812 C kCFCoreFoundationVersionNumber10_4_8 368.27
813 C kCFCoreFoundationVersionNumber10_4_9 368.28
814 C kCFCoreFoundationVersionNumber10_4_10 368.28
815 C kCFCoreFoundationVersionNumber10_4_11 368.31
816 C kCFCoreFoundationVersionNumber10_5 476.00
817 C kCFCoreFoundationVersionNumber10_5_1 476.00
818 C kCFCoreFoundationVersionNumber10_5_2 476.10
819 C kCFCoreFoundationVersionNumber10_5_3 476.13
820 C kCFCoreFoundationVersionNumber10_5_4 476.14
821 C kCFCoreFoundationVersionNumber10_5_5 476.15
822 C kCFCoreFoundationVersionNumber10_5_6 476.17
823
824 # CFAllocator
825
826 F CFAllocatorCreate {CFAllocatorRef}{CFAllocatorRef}{CFAllocatorContext}
827
828 F CFAllocatorAllocate ^v{CFAllocatorRef}{CFIndex}{CFOptionFlags}
829 F CFAllocatorDeallocate v{CFAllocatorRef}^v
830 F CFAllocatorGetPreferredSizeForSize {CFIndex}{CFAllocatorRef}{CFIndex}{CFOptionFlags}
831 F CFAllocatorReallocate ^v{CFAllocatorRef}^v{CFIndex}{CFOptionFlags}
832
833 F CFAllocatorGetDefault {CFAllocatorRef}
834 f CFAllocatorSetDefault v{CFAllocatorRef}
835
836 F CFAllocatorGetContext v{CFAllocatorRef}^{CFAllocatorContext}
837
838 F CFAllocatorGetTypeID {CFTypeID}
839
840 # CFAllocatorAllocateCallBack
841 # CFAllocatorCopyDescriptionCallBack
842 # CFAllocatorDeallocateCallBack
843 # CFAllocatorPreferredSizeCallBack
844 # CFAllocatorReallocateCallBack
845 # CFAllocatorReleaseCallBack
846 # CFAllocatorRetainCallBack
847
848 S CFAllocatorContext "version"{CFIndex}"info"^v"retain"{CFAllocatorRetainCallBack}"release"{CFAllocatorReleaseCallBack}"copyDescription"{CFAllocatorCopyDescriptionCallBack}"allocate"{CFAllocatorAllocateCallBack}"reallocate"{CFAllocatorReallocateCallBack}"deallocate"{CFAllocatorDeallocateCallBack}"preferredSize"{CFAllocatorPreferredSizeCallBack}
849 # CFAllocatorContext CFAllocatorContext
850
851 T CFAllocatorRef ^r{__CFAllocator}
852
853 V kCFAllocatorDefault {CFAllocatorRef}
854 V kCFAllocatorSystemDefault {CFAllocatorRef}
855 V kCFAllocatorMalloc {CFAllocatorRef}
856 V kCFAllocatorMallocZone {CFAllocatorRef}
857 V kCFAllocatorNull {CFAllocatorRef}
858 V kCFAllocatorUseContext {CFAllocatorRef}
859
860 # CFType
861
862 F CFGetAllocator {CFAllocatorRef}{CFTypeRef}
863 F CFGetRetainCount {CFIndex}{CFTypeRef}
864 F CFMakeCollectable {CFTypeRef}{CFTypeRef}
865 F CFRelease v{CFTypeRef}
866 F CFRetain {CFTypeRef}{CFTypeRef}
867
868 F CFEqual
869
870 F CFHash {CFHashCode}{CFTypeRef}
871
872 F CFGetTypeID {CFTypeID}{CFTypeRef}
873 F CFShow v{CFTypeRef}
874
875 T CFHashCode L
876 T CFTypeID L
877 # technically ^v
878 T CFTypeRef @
879
880 # Private
881
882 F CFShowStr v@
883
884 f CoreGraphics
885
886 T CGFloat f
887
888 # CFByteOrderUtils
889
890 E __CFByteOrder
891 C CFByteOrderUnknown 0
892 C CFByteOrderLittleEndian 1
893 C CFByteOrderBigEndian 2
894 T CFByteOrder __CFByteOrder
895
896 # CGAffineTransform
897
898 F CGAffineTransformMake {CGAffineTransform}{CGFloat}{CGFloat}{CGFloat}{CGFloat}{CGFloat}{CGFloat}
899 F CGAffineTransformMakeRotation {CGAffineTransform}{CGFloat}
900 F CGAffineTransformMakeScale {CGAffineTransform}{CGFloat}{CGFloat}
901 F CGAffineTransformMakeTranslation {CGAffineTransform}{CGFloat}{CGFloat}
902
903 F CGAffineTransformTranslate {CGAffineTransform}{CGAffineTransform}{CGFloat}{CGFloat}
904 F CGAffineTransformScale {CGAffineTransform}{CGAffineTransform}{CGFloat}{CGFloat}
905 F CGAffineTransformRotate {CGAffineTransform}{CGAffineTransform}{CGFloat}
906 F CGAffineTransformInvert {CGAffineTransform}{CGAffineTransform}
907 F CGAffineTransformConcat {CGAffineTransform}{CGAffineTransform}{CGAffineTransform}
908
909 F CGPointApplyAffineTransform {CGPoint}{CGPoint}{CGAffineTransform}
910 F CGSizeApplyAffineTransform {CGSize}{CGSize}{CGAffineTransform}
911 F CGRectApplyAffineTransform {CGRect}{CGRect}{CGAffineTransform}
912
913 F CGAffineTransformIsIdentity B{CGAffineTransform}
914 F CGAffineTransformEqualToTransform B{CGAffineTransform}{CGAffineTransform}
915
916 S CGAffineTransform "a"{CGFloat}"b"{CGFloat}"c"{CGFloat}"d"{CGFloat}"tx"{CGFloat}"ty"{CGFloat}
917
918 V CGAffineTransformIdentity {CGAffineTransform}
919
920 # CGContext
921
922 T CGContextRef ^{CGContext}
923
924 E CGBlendMode
925 C kCGBlendModeNormal 0
926 C kCGBlendModeMultiply 1
927 C kCGBlendModeScreen 2
928 C kCGBlendModeOverlay 3
929 C kCGBlendModeDarken 4
930 C kCGBlendModeLighten 5
931 C kCGBlendModeColorDodge 6
932 C kCGBlendModeColorBurn 7
933 C kCGBlendModeSoftLight 8
934 C kCGBlendModeHardLight 9
935 C kCGBlendModeDifference 10
936 C kCGBlendModeExclusion 11
937 C kCGBlendModeHue 12
938 C kCGBlendModeSaturation 13
939 C kCGBlendModeColor 14
940 C kCGBlendModeLuminosity 15
941 C kCGBlendModeClear 16
942 C kCGBlendModeCopy 17
943 C kCGBlendModeSourceIn 18
944 C kCGBlendModeSourceOut 19
945 C kCGBlendModeSourceAtop 20
946 C kCGBlendModeDestinationOver 21
947 C kCGBlendModeDestinationIn 22
948 C kCGBlendModeDestinationOut 23
949 C kCGBlendModeDestinationAtop 24
950 C kCGBlendModeXOR 25
951 C kCGBlendModePlusDarker 26
952 C kCGBlendModePlusLighter 27
953
954 E CGInterpolationQuality
955 C kCGInterpolationDefault 0
956 C kCGInterpolationNone 1
957 C kCGInterpolationLow 2
958 C kCGInterpolationHigh 3
959
960 E CGLineCap
961 C kCGLineCapButt 0
962 C kCGLineCapRound 1
963 C kCGLineCapSquare 2
964
965 E CGLineJoin
966 C kCGLineJoinMiter 0
967 C kCGLineJoinRound 1
968 C kCGLineJoinBevel 2
969
970 E CGTextDrawingMode
971 C kCGTextFill 0
972 C kCGTextStroke 1
973 C kCGTextFillStroke 2
974 C kCGTextInvisible 3
975 C kCGTextFillClip 4
976 C kCGTextStrokeClip 5
977 C kCGTextFillStrokeClip 6
978 C kCGTextClip 7
979
980 E CGTextEncoding
981 C kCGEncodingFontSpecific 0
982 C kCGEncodingMacRoman 1
983
984 f CoreLocation
985
986 T CLLocationDegrees d
987
988 S CLLocationCoordinate2D "latitude"{CLLocationDegrees}"longitude"{CLLocationDegrees}
989
990 T CLLocationAccuracy d
991
992 V kCLLocationAccuracyBest d
993 V kCLLocationAccuracyNearestTenMeters d
994 V kCLLocationAccuracyHundredMeters d
995 V kCLLocationAccuracyKilometer d
996 V kCLLocationAccuracyThreeKilometers d
997
998 T CLLocationSpeed d
999 T CLLocationDirection d
1000
1001 V kCLDistanceFilterNone d
1002 V kCLHeadingFilterNone d
1003
1004 C kCLErrorLocationUnknown 0
1005 C kCLErrorDenied 1
1006 C kCLErrorNetwork 2
1007 C kCLErrorHeadingFailure 3
1008
1009 V kCLErrorDomain @
1010
1011 f Foundation
1012
1013 T NSAppleEventManagerSuspensionID ^r{__NSAppleEventManagerSuspension}
1014
1015 E _NSByteOrder
1016 C NS_UnknownByteOrder CFByteOrderUnknown
1017 C NS_LittleEndian CFByteOrderLittleEndian
1018 C NS_BigEndian CFByteOrderBigEndian
1019
1020 # NSComparator
1021
1022 C NSOrderedAscending -1
1023 C NSOrderedSame 0
1024 C NSOrderedDescending 1
1025 T NSComparisonResult {NSInteger}
1026
1027 # NSDecimal
1028
1029 T NSEnumerationOptions {NSUInteger}
1030 # NSHashEnumerator
1031 T NSHashTable {_NSHashTable}
1032 # NSHashTableCallBacks
1033
1034 T NSHashTableOptions {NSUInteger}
1035 T NSInteger l
1036
1037 # NSMapEnumerator
1038
1039 T NSMapTable {_NSMapTable}
1040 # NSMapTableKeyCallBacks
1041
1042 T NSMapTableOptions {NSUInteger}
1043 # NSMapTableValueCallBacks
1044
1045 T NSPoint {_NSPoint}
1046 T NSPointArray ^{NSPoint}
1047 T NSPointPointer ^{NSPoint}
1048
1049 S _NSRange "location"{NSUInteger}"length"{NSUInteger}
1050 T NSRange {_NSRange}
1051 T NSRangePointer ^{NSRange}
1052
1053 S _NSRect "origin"{NSPoint}"size"{NSSize}
1054 T NSRectArray ^{NSRect}
1055
1056 C NSMinXEdge 0
1057 C NSMinYEdge 1
1058 C NSMaxXEdge 2
1059 C NSMaxYEdge 3
1060
1061 T NSRectPointer ^{NSRect}
1062
1063 C NSApplicationDirectory 1
1064 C NSDemoApplicationDirectory 2
1065 C NSDeveloperApplicationDirectory 3
1066 C NSAdminApplicationDirectory 4
1067 C NSLibraryDirectory 5
1068 C NSDeveloperDirectory 6
1069 C NSUserDirectory 7
1070 C NSDocumentationDirectory 8
1071 C NSDocumentDirectory 9
1072 C NSCoreServiceDirectory 10
1073 C NSAutosavedInformationDirectory 11
1074 C NSDesktopDirectory 12
1075 C NSCachesDirectory 13
1076 C NSApplicationSupportDirectory 14
1077 C NSDownloadsDirectory 15
1078 C NSInputMethodsDirectory 16
1079 C NSMoviesDirectory 17
1080 C NSMusicDirectory 18
1081 C NSPicturesDirectory 19
1082 C NSPrinterDescriptionDirectory 20
1083 C NSSharedPublicDirectory 21
1084 C NSPreferencePanesDirectory 22
1085 C NSItemReplacementDirectory 99
1086 C NSAllApplicationsDirectory 100
1087 C NSAllLibrariesDirectory 101
1088 T NSSearchPathDirectory {NSUInteger}
1089
1090 C NSUserDomainMask 1
1091 C NSLocalDomainMask 2
1092 C NSNetworkDomainMask 4
1093 C NSSystemDomainMask 8
1094 C NSAllDomainsMask 0x0ffff
1095 T NSSearchPathDomainMask {NSUInteger}
1096
1097 S _NSSize "width"{CGFloat}"height"{CGFloat}
1098 T NSSize {_NSSize}
1099
1100 T NSSizePointer ^{NSSize}
1101 T NSSocketNativeHandle i
1102 T NSStringEncoding {NSUInteger}
1103 S NSSwappedDouble "v"Q
1104 S NSSwappedFloat "v"L
1105 T NSTimeInterval d
1106 # NSUncaughtExceptionHandler
1107 T NSUInteger L
1108 T NSZone {_NSZone}
1109
1110 f MapKit
1111
1112 C MKMapTypeStandard 0
1113 C MKMapTypeSatellite 1
1114 C MKMapTypeHybrid 2
1115
1116 V MKErrorDomain @
1117
1118 C MKErrorUnknown 1
1119 C MKErrorServerFailure 2
1120 C MKErrorLoadingThrottled 3
1121 C MKErrorPlacemarkNotFound 4
1122
1123 C MKPinAnnotationColorRed 0
1124 C MKPinAnnotationColorGreen 1
1125 C MKPinAnnotationColorPurple 2
1126
1127 # MKCoordinateRegionMake
1128 F MKCoordinateRegionMakeWithDistance {MKCoordinateRegion}{CLLocationCoordinate2D}{CLLocationDistance}{CLLocationDistance}
1129 # MKCoordinateSpanMake
1130
1131 C RTLD_LAZY 0x1
1132 C RTLD_NOW 0x2
1133 C RTLD_LOCAL 0x4
1134 C RTLD_GLOBAL 0x8
1135
1136 C RTLD_NOLOAD 0x10
1137 C RTLD_NODELETE 0x80
1138 C RTLD_FIRST 0x100
1139
1140 C RTLD_NEXT -1
1141 C RTLD_DEFAULT -2
1142 C RTLD_SELF -3
1143
1144 S dl_info "dli_fname"*"dli_fbase"v^"dli_sname"*"dli_saddr"^v
1145 T Dl_info {dl_info}
1146
1147 F dladdr i^rv^{dl_info}
1148 F dlclose i^v
1149 F dlerror *
1150 F dlopen ^v*i
1151 F dlsym ^v^v*
1152 F dlopen_preflight B*