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