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