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