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