]> git.saurik.com Git - cycript.git/blob - Bridge.def
Checkpoint before something drastic.
[cycript.git] / Bridge.def
1 C YES true
2 C NO false
3 C nil null
4
5 l objc
6
7 F class_addIvar B#*LC*
8 F class_addMethod B#:^?*
9 F class_addProtocol B#@
10 F class_conformsToProtocol B#@
11 F class_copyIvarList ^^{objc_ivar=}#^I
12 F class_copyMethodList ^^{objc_method=}#^I
13 F class_copyPropertyList ^^{objc_property=}#^I
14 F class_copyProtocolList ^@#^I
15 F class_createInstance @#L
16 F class_getClassMethod ^{objc_method=}#:
17 F class_getClassVariable ^{objc_ivar=}#*
18 F class_getInstanceMethod ^{objc_method=}#:
19 F class_getInstanceSize L#
20 F class_getInstanceVariable ^{objc_ivar=}#*
21 F class_getIvarLayout *#
22 F class_getMethodImplementation ^?#:
23 F class_getMethodImplementation_stret ^?#:
24 F class_getName *#
25 F class_getProperty ^{objc_property=}#*
26 F class_getSuperclass ##
27 F class_getVersion i#
28 F class_getWeakIvarLayout *#
29 F class_isMetaClass B#
30 F class_replaceMethod ^?#:^?*
31 F class_respondsToSelector B#:
32 F class_setIvarLayout v#*
33 F class_setSuperclass ###
34 F class_setVersion v#i
35 F class_setWeakIvarLayout v#*
36
37 F ivar_getName *^{objc_ivar=}
38 F ivar_getOffset i^{objc_ivar=}
39 F ivar_getTypeEncoding *^{objc_ivar=}
40
41 F method_copyArgumentType ^c^{objc_method=}I
42 F method_copyReturnType ^c^{objc_method=}
43 F method_exchangeImplementations v^{objc_method=}^{objc_method=}
44 F method_getArgumentType v^{objc_method=}I^cL
45 F method_getImplementation ^?^{objc_method=}
46 F method_getName :^{objc_method=}
47 F method_getNumberOfArguments I^{objc_method=}
48 F method_getReturnType v^{objc_method=}^cL
49 F method_getTypeEncoding *^{objc_method=}
50 F method_setImplementation ^?^{objc_method=}^?
51
52 F objc_allocateClassPair ##*L
53 F objc_copyProtocolList ^@^I
54 F objc_duplicateClass ##*L
55 F objc_getClass #*
56 F objc_getClassList i^#i
57 F objc_getFutureClass #*
58 F objc_getMetaClass @*
59 F objc_getProtocol @*
60 F objc_getRequiredClass @*
61 F objc_lookUpClass @*
62 F objc_registerClassPair v#
63 F objc_setFutureClass v#*
64
65 F object_copy @@L
66 F object_dispose @@
67 F object_getClass #@
68 F object_getClassName *@
69 F object_getIndexedIvars ^v@
70 F object_getInstanceVariable ^{objc_ivar=}@*^^v
71 F object_getIvar @@^{objc_ivar=}
72 F object_setClass #@#
73 F object_setInstanceVariable ^{objc_ivar=}@*^v
74 F object_setIvar v@^{objc_ivar=}@
75
76 F property_getAttributes *^{objc_property=}
77 F property_getName *^{objc_property=}
78
79 F protocol_conformsToProtocol B@@
80 F protocol_copyMethodDescriptionList ^{objc_method_description=:*}@BB^I
81 F protocol_copyPropertyList ^{objc_property=}@^I
82 F protocol_copyProtocolList ^@@^I
83 F protocol_getMethodDescription {objc_method_description=:*}@:BB
84 F protocol_getName *@
85 F protocol_getProperty ^{objc_property=}@*BB
86 F protocol_isEqual B@@
87
88 F sel_getName *:
89 F sel_getUid :*
90 F sel_isEqual B::
91 F sel_registerName :*
92
93 f UIKit
94
95 F UIApplicationUseLegacyEvents vB
96
97 F UIAccessibilityPostNotification vI@
98 F UIApplicationMain ii^^c@@
99 F UIGraphicsEndImageContext v
100 F UIGraphicsGetCurrentContext @
101 F UIGraphicsGetImageFromCurrentImageContext @
102 F UIGraphicsPopContext v
103 F UIGraphicsPushContext v@
104 F UIImageJPEGRepresentation @@
105 F UIImagePNGRepresentation @@
106 F UIImageWriteToSavedPhotosAlbum v@@:^v
107
108 F UIKeyboardDisableAutomaticAppearance v
109 F UIKeyboardEnableAutomaticAppearance v
110 F UIKeyboardInputModeUsesKBStar B@
111
112 F _UIImageWithName @@
113
114 F UIUnformattedPhoneNumberFromString @@
115
116 V UIApp @
117
118 V kUIButtonBarButtonAction @
119 V kUIButtonBarButtonInfo @
120 V kUIButtonBarButtonInfoOffset @
121 V kUIButtonBarButtonSelectedInfo @
122 V kUIButtonBarButtonSizeToFit @
123 V kUIButtonBarButtonStyle @
124 V kUIButtonBarButtonTag @
125 V kUIButtonBarButtonTarget @
126 V kUIButtonBarButtonTitle @
127 V kUIButtonBarButtonTitleVerticalHeight @
128 V kUIButtonBarButtonTitleWidth @
129 V kUIButtonBarButtonType @
130
131 V UIKeyboardAnimationCurveUserInfoKey @
132 V UIKeyboardAnimationDurationUserInfoKey @
133 V UIKeyboardBoundsUserInfoKey @
134 V UIKeyboardCenterBeginUserInfoKey @
135 V UIKeyboardCenterEndUserInfoKey @
136 V UIKeyboardRequiresInternationalKey @
137
138 V UIKeyboardCandidateCorrectionDidChangeNotification @
139 V UIKeyboardCurrentInputModeDidChangeNotification @
140 V UIKeyboardDefaultsDidChangeNotification @
141 V UIKeyboardDidHideNotification @
142 V UIKeyboardDidShowNotification @
143 V UIKeyboardEmptyDelegateNotification @
144 V UIKeyboardWillHideNotification @
145 V UIKeyboardWillShowNotification @
146
147 V UIWebViewDidReceiveMessageNotification @
148 V UIWebViewDidClearMessagesNotification @
149 V UIWebViewGrowsAndShrinksToFitHeight f
150 V UIWebViewGrowsAndShrinksToFitWidth f
151 V UIWebViewScalesToFitScale f
152
153 f AddressBook
154
155 F ABAddressBookAddRecord B@@^@
156 F ABAddressBookCopyArrayOfAllGroups @@
157 F ABAddressBookCopyArrayOfAllPeople @@
158 F ABAddressBookCopyLocalizedLabel @@
159 F ABAddressBookCreate @
160 F ABAddressBookGetGroupCount l@
161 F ABAddressBookGetPersonCount l@
162 F ABAddressBookHasUnsavedChanges B@
163 F ABAddressBookRegisterExternalChangeCallback v@^?^v
164 F ABAddressBookRemoveRecord B@@^@
165 F ABAddressBookRevert v@
166 F ABAddressBookSave B@^@
167 F ABAddressBookUnregisterExternalChangeCallback v@^?^v
168
169 V ABAddressBookErrorDomain @
170 C kABOperationNotPermittedByStoreError 0
171
172 F ABMultiValueCopyArrayOfAllValues @@
173 F ABMultiValueCopyLabelAtIndex @@l
174 F ABMultiValueCopyValueAtIndex @@l
175 F ABMultiValueGetCount l@
176 F ABMultiValueGetFirstIndexOfValue l@@
177 F ABMultiValueGetIdentifierAtIndex i@l
178 F ABMultiValueGetIndexForIdentifier l@i
179 F ABMultiValueGetPropertyType S@
180
181 C kABMultiValueInvalidIdentifier -1
182
183 F ABMultiValueAddValueAndLabel @@@^i
184 F ABMultiValueCreateMutable @S
185 F ABMultiValueCreateMutableCopy @@
186 F ABMultiValueInsertValueAndLabelAtIndex B@@@l^i
187 F ABMultiValueRemoveValueAndLabelAtIndex B@l
188 F ABMultiValueReplaceLabelAtIndex B@@l
189 F ABMultiValueReplaceValueAtIndex B@@l
190
191 F ABRecordCopyCompositeName @@
192 F ABRecordCopyValue @@i
193 F ABRecordGetRecordID i@
194 F ABRecordGetRecordType I@
195 F ABRecordRemoveValue B@i^@
196 F ABRecordSetValue B@i@^@
197
198 C kABPersonType 0
199 C kABGroupType 1
200
201 # this was (1<<8)
202 C kABMultiValueMask 0x100
203
204 C kABInvalidPropertyType 0x0
205 C kABStringPropertyType 0x1
206 C kABIntegerPropertyType 0x2
207 C kABRealPropertyType 0x3
208 C kABDateTimePropertyType 0x4
209 C kABDictionaryPropertyType 0x5
210 C kABMultiStringPropertyType 0x101
211 C kABMultiIntegerPropertyType 0x102
212 C kABMultiRealPropertyType 0x103
213 C kABMultiDateTimePropertyType 0x104
214 C kABMultiDictionaryPropertyType 0x105
215
216 C kABRecordInvalidID -1
217 C kABPropertyInvalidID -1
218
219 F ABAddressBookGetGroupWithRecordID @@i
220 F ABGroupAddMember B@@^@
221 F ABGroupCopyArrayOfAllMembers @@
222 F ABGroupCopyArrayOfAllMembersWithSortOrdering @@I
223 F ABGroupCreate @
224 F ABGroupRemoveMember B@@^@
225
226 V kABGroupNameProperty i
227
228 F ABAddressBookCopyPeopleWithName @@@
229 F ABAddressBookGetPersonWithRecordID @@i
230 F ABPersonComparePeopleByName i@@I
231 F ABPersonCopyImageData @@
232 F ABPersonCopyLocalizedPropertyName @i
233 F ABPersonCreate @
234 F ABPersonGetCompositeNameFormat I
235 F ABPersonGetSortOrdering I
236 F ABPersonGetTypeOfProperty SI
237 F ABPersonHasImageData B@
238 F ABPersonRemoveImageData B@^@
239 F ABPersonSetImageData B@@^@
240
241 C kABPersonSortByFirstName 0
242 C kABPersonSortByLastName 1
243
244 C kABPersonCompositeNameFormatFirstNameFirst 0
245 C kABPersonCompositeNameFormatLastNameFirst 1
246
247 V kABPersonFirstNameProperty i
248 V kABPersonLastNameProperty i
249 V kABPersonMiddleNameProperty i
250 V kABPersonPrefixProperty i
251 V kABPersonSuffixProperty i
252 V kABPersonNicknameProperty i
253 V kABPersonFirstNamePhoneticProperty i
254 V kABPersonLastNamePhoneticProperty i
255 V kABPersonMiddleNamePhoneticProperty i
256 V kABPersonOrganizationProperty i
257 V kABPersonJobTitleProperty i
258 V kABPersonDepartmentProperty i
259 V kABPersonEmailProperty i
260 V kABPersonBirthdayProperty i
261 V kABPersonNoteProperty i
262 V kABPersonCreationDateProperty i
263 V kABPersonModificationDateProperty i
264
265 V kABPersonAddressProperty i
266 V kABPersonAddressStreetKey @
267 V kABPersonAddressCityKey @
268 V kABPersonAddressStateKey @
269 V kABPersonAddressZIPKey @
270 V kABPersonAddressCountryKey @
271 V kABPersonAddressCountryCodeKey @
272
273 V kABPersonDateProperty i
274 V kABPersonAnniversaryLabel @
275
276 V kABPersonKindProperty i
277 V kABPersonKindPerson @
278 V kABPersonKindOrganization @
279
280 V kABPersonPhoneProperty i
281 V kABPersonPhoneMobileLabel @
282 V kABPersonPhoneIPhoneLabel @
283 V kABPersonPhoneMainLabel @
284 V kABPersonPhoneHomeFAXLabel @
285 V kABPersonPhoneWorkFAXLabel @
286 V kABPersonPhonePagerLabel @
287
288 V kABPersonInstantMessageProperty i
289 V kABPersonInstantMessageServiceKey @
290 V kABPersonInstantMessageServiceYahoo @
291 V kABPersonInstantMessageServiceJabber @
292 V kABPersonInstantMessageServiceMSN @
293 V kABPersonInstantMessageServiceICQ @
294 V kABPersonInstantMessageServiceAIM @
295 V kABPersonInstantMessageUsernameKey @
296
297 V kABPersonURLProperty i
298 V kABPersonHomePageLabel @
299
300 V kABPersonRelatedNamesProperty i
301 V kABPersonMotherLabel @
302 V kABPersonFatherLabel @
303 V kABPersonParentLabel @
304 V kABPersonSisterLabel @
305 V kABPersonBrotherLabel @
306 V kABPersonChildLabel @
307 V kABPersonFriendLabel @
308 V kABPersonSpouseLabel @
309 V kABPersonPartnerLabel @
310 V kABPersonManagerLabel @
311 V kABPersonAssistantLabel @
312
313 V kABWorkLabel @
314 V kABHomeLabel @
315 V kABOtherLabel @
316
317 f CoreLocation
318
319 V kCLLocationAccuracyBest d
320 V kCLLocationAccuracyNearestTenMeters d
321 V kCLLocationAccuracyHundredMeters d
322 V kCLLocationAccuracyKilometer d
323 V kCLLocationAccuracyThreeKilometers d
324
325 V kCLDistanceFilterNone d
326 V kCLHeadingFilterNone d
327
328 C kCLErrorLocationUnknown 0
329 C kCLErrorDenied 1
330 C kCLErrorNetwork 2
331 C kCLErrorHeadingFailure 3
332
333 V kCLErrorDomain @
334
335 f CoreData
336
337 C NSUndefinedAttributeType 0
338 C NSInteger16AttributeType 100
339 C NSInteger32AttributeType 200
340 C NSInteger64AttributeType 300
341 C NSDecimalAttributeType 400
342 C NSDoubleAttributeType 500
343 C NSFloatAttributeType 600
344 C NSStringAttributeType 700
345 C NSBooleanAttributeType 800
346 C NSDateAttributeType 900
347 C NSBinaryDataAttributeType 1000
348 C NSTransformableAttributeType 1800
349 C NSObjectIDAttributeType 2000
350
351 C NSUndefinedEntityMappingType 0x00
352 C NSCustomEntityMappingType 0x01
353 C NSAddEntityMappingType 0x02
354 C NSRemoveEntityMappingType 0x03
355 C NSCopyEntityMappingType 0x04
356 C NSTransformEntityMappingType 0x05
357
358 V NSMigrationManagerKey @
359 V NSMigrationSourceObjectKey @
360 V NSMigrationDestinationObjectKey @
361 V NSMigrationEntityMappingKey @
362 V NSMigrationPropertyMappingKey @
363 V NSMigrationPropertyMappingKey @
364
365 C NSManagedObjectResultType 0x00
366 C NSManagedObjectIDResultType 0x01
367 C NSDictionaryResultType 0x02
368
369 C NSFetchRequestExpressionType 50
370
371 C NSSnapshotEventUndoInsertion 1<<1
372 C NSSnapshotEventUndoDeletion 1<<2
373 C NSSnapshotEventUndoUpdate 1<<3
374 C NSSnapshotEventRollback 1<<4
375 C NSSnapshotEventRefresh 1<<5
376 C NSSnapshotEventMergePolicy 1<<6
377
378 V NSInsertedObjectsKey @
379 V NSUpdatedObjectsKey @
380 V NSDeletedObjectsKey @
381 V NSRefreshedObjectsKey @
382 V NSInvalidatedObjectsKey @
383 V NSInvalidatedAllObjectsKey @
384
385 V NSErrorMergePolicy @
386 V NSMergeByPropertyStoreTrumpMergePolicy @
387 V NSMergeByPropertyObjectTrumpMergePolicy @
388 V NSOverwriteMergePolicy @
389 V NSRollbackMergePolicy @
390
391 V NSSQLiteStoreType @
392 V NSBinaryStoreType @
393 V NSInMemoryStoreType @
394
395 V NSStoreTypeKey @
396 V NSStoreUUIDKey @
397
398 V NSAddedPersistentStoresKey @
399 V NSRemovedPersistentStoresKey @
400 V NSUUIDChangedPersistentStoresKey @
401
402 V NSReadOnlyPersistentStoreOption @
403 V NSPersistentStoreTimeoutOption @
404 V NSSQLitePragmasOption @
405 V NSSQLiteAnalyzeOption @
406 V NSSQLiteManualVacuumOption @
407
408 V NSIgnorePersistentStoreVersioningOption @
409 V NSMigratePersistentStoresAutomaticallyOption @
410 V NSInferMappingModelAutomaticallyOption @
411
412 V NSStoreModelVersionHashesKey @
413 V NSStoreModelVersionIdentifiersKey @
414 V NSPersistentStoreOSCompatibility @
415
416 C NSNoActionDeleteRule 0
417 C NSNullifyDeleteRule 1
418 C NSCascadeDeleteRule 2
419 C NSDenyDeleteRule 3
420
421 C NSFetchedResultsChangeInsert 1
422 C NSFetchedResultsChangeDelete 2
423 C NSFetchedResultsChangeMove 3
424 C NSFetchedResultsChangeUpdate 4
425
426 V NSDetailedErrorsKey @
427 V NSValidationObjectErrorKey @
428 V NSValidationKeyErrorKey @
429 V NSValidationPredicateErrorKey @
430 V NSValidationValueErrorKey @
431 V NSAffectedStoresErrorKey @
432 V NSAffectedObjectsErrorKey @
433
434 V NSSQLiteErrorDomain @
435
436 C NSManagedObjectValidationError 1550
437 C NSValidationMultipleErrorsError 1560
438 C NSValidationMissingMandatoryPropertyError 1570
439 C NSValidationRelationshipLacksMinimumCountError 1580
440 C NSValidationRelationshipExceedsMaximumCountError 1590
441 C NSValidationRelationshipDeniedDeleteError 1600
442 C NSValidationNumberTooLargeError 1610
443 C NSValidationNumberTooSmallError 1620
444 C NSValidationDateTooLateError 1630
445 C NSValidationDateTooSoonError 1640
446 C NSValidationInvalidDateError 1650
447 C NSValidationStringTooLongError 1660
448 C NSValidationStringTooShortError 1670
449 C NSValidationStringPatternMatchingError 1680
450
451 C NSManagedObjectContextLockingError 132000
452 C NSPersistentStoreCoordinatorLockingError 132010
453 C NSManagedObjectReferentialIntegrityError 133000
454 C NSManagedObjectExternalRelationshipError 133010
455 C NSManagedObjectMergeError 133020
456
457 C NSPersistentStoreInvalidTypeError 134000
458 C NSPersistentStoreTypeMismatchError 134010
459 C NSPersistentStoreIncompatibleSchemaError 134020
460 C NSPersistentStoreSaveError 134030
461 C NSPersistentStoreIncompleteSaveError 134040
462 C NSPersistentStoreOperationError 134070
463 C NSPersistentStoreOpenError 134080
464 C NSPersistentStoreTimeoutError 134090
465 C NSPersistentStoreIncompatibleVersionHashError 134100
466
467 C NSMigrationError 134110
468 C NSMigrationCancelledError 134120
469 C NSMigrationMissingSourceModelError 134130
470 C NSMigrationMissingMappingModelError 134140
471 C NSMigrationManagerSourceStoreError 134150
472 C NSMigrationManagerDestinationStoreError 134160
473 C NSEntityMigrationPolicyError 134170
474 C NSInferredMappingModelError 134190
475 C NSExternalRecordImportError 134200
476
477 C NSCoreDataError 134060
478 C NSSQLiteError 134180
479
480 V NSCoreDataVersionNumber d
481
482 C NSCoreDataVersionNumber10_4 46.0
483 C NSCoreDataVersionNumber10_4_3 77.0
484 C NSCoreDataVersionNumber10_5 185.0
485 C NSCoreDataVersionNumber10_5_3 186.0
486
487 f MapKit
488
489 C MKMapTypeStandard 0
490 C MKMapTypeSatellite 1
491 C MKMapTypeHybrid 2
492
493 V MKErrorDomain @
494
495 C MKErrorUnknown 1
496 C MKErrorServerFailure 2
497 C MKErrorLoadingThrottled 3
498 C MKErrorPlacemarkNotFound 4
499
500 C MKPinAnnotationColorRed 0
501 C MKPinAnnotationColorGreen 1
502 C MKPinAnnotationColorPurple 2
503
504 # MKCoordinateRegionMake
505 # MKCoordinateRegionMakeWithDistance
506 # MKCoordinateSpanMake