1# This file is generated by objective.metadata 2# 3# Last update: Fri Sep 21 15:11:32 2012 4 5import objc, sys 6 7if sys.maxsize > 2 ** 32: 8 def sel32or64(a, b): return b 9else: 10 def sel32or64(a, b): return a 11if sys.byteorder == 'little': 12 def littleOrBig(a, b): return a 13else: 14 def littleOrBig(a, b): return b 15 16misc = { 17} 18constants = '''$IMKCandidatesOpacityAttributeName$IMKCandidatesSendServerKeyEventFirst$IMKControllerClass$IMKDelegateClass$IMKModeDictionary$kIMKCommandClientName$kIMKCommandMenuItemName$''' 19enums = '''$kIMKAnnotation@1$kIMKLocateCandidatesAboveHint@1$kIMKLocateCandidatesBelowHint@2$kIMKLocateCandidatesLeftHint@3$kIMKLocateCandidatesRightHint@4$kIMKMain@0$kIMKScrollingGridCandidatePanel@2$kIMKSingleColumnScrollingCandidatePanel@1$kIMKSingleRowSteppingCandidatePanel@3$kIMKSubList@2$''' 20misc.update({}) 21r = objc.registerMetaDataForSelector 22objc._updatingMetadata(True) 23try: 24 r(b'IMKCandidates', b'dismissesAutomatically', {'retval': {'type': 'Z'}}) 25 r(b'IMKCandidates', b'isVisible', {'retval': {'type': 'Z'}}) 26 r(b'IMKCandidates', b'selectCandidateWithIdentifier:', {'retval': {'type': b'Z'}}) 27 r(b'IMKCandidates', b'selectionKeysKeylayout', {'retval': {'type': '^{__TISInputSource=}'}}) 28 r(b'IMKCandidates', b'setDismissesAutomatically:', {'arguments': {2: {'type': 'Z'}}}) 29 r(b'IMKCandidates', b'setSelectionKeysKeylayout:', {'arguments': {2: {'type': '^{__TISInputSource=}'}}}) 30 r(b'IMKInputController', b'doCommandBySelector:commandDictionary:', {'arguments': {2: {'type': ':'}}}) 31 r(b'IMKServer', b'lastKeyEventWasDeadKey', {'retval': {'type': b'Z'}}) 32 r(b'IMKServer', b'paletteWillTerminate', {'retval': {'type': b'Z'}}) 33 r(b'NSObject', b'didCommandBySelector:client:', {'retval': {'type': 'Z'}, 'arguments': {2: {'type': ':'}}}) 34 r(b'NSObject', b'handleEvent:client:', {'retval': {'type': 'Z'}}) 35 r(b'NSObject', b'inputText:client:', {'retval': {'type': 'Z'}}) 36 r(b'NSObject', b'inputText:key:modifiers:client:', {'retval': {'type': 'Z'}}) 37 r(b'NSObject', b'mouseDownOnCharacterIndex:coordinate:withModifier:continueTracking:client:', {'retval': {'type': 'Z'}, 'arguments': {2: {'type': sel32or64(b'I', b'Q')}, 3: {'type': sel32or64(b'{_NSPoint=ff}', b'{CGPoint=dd}')}, 4: {'type': sel32or64(b'I', b'Q')}, 5: {'type': '^Z', 'type_modifier': b'o'}}}) 38 r(b'NSObject', b'mouseMovedOnCharacterIndex:coordinate:withModifier:client:', {'retval': {'type': 'Z'}, 'arguments': {2: {'type': sel32or64(b'I', b'Q')}, 3: {'type': sel32or64(b'{_NSPoint=ff}', b'{CGPoint=dd}')}, 4: {'type': sel32or64(b'I', b'Q')}}}) 39 r(b'NSObject', b'mouseUpOnCharacterIndex:coordinate:withModifier:client:', {'retval': {'type': 'Z'}, 'arguments': {2: {'type': sel32or64(b'I', b'Q')}, 3: {'type': sel32or64(b'{_NSPoint=ff}', b'{CGPoint=dd}')}, 4: {'type': sel32or64(b'I', b'Q')}}}) 40finally: 41 objc._updatingMetadata(False) 42r = objc.registerMetaDataForSelector 43objc._updatingMetadata(True) 44try: 45 r(b'NSObject', b'activateServer:', {'required': True, 'retval': {'type': b'v'}, 'arguments': {2: {'type': b'@'}}}) 46 r(b'NSObject', b'deactivateServer:', {'required': True, 'retval': {'type': b'v'}, 'arguments': {2: {'type': b'@'}}}) 47 r(b'NSObject', b'modes:', {'required': True, 'retval': {'type': b'@'}, 'arguments': {2: {'type': b'@'}}}) 48 r(b'NSObject', b'mouseDownOnCharacterIndex:coordinate:withModifier:continueTracking:client:', {'required': True, 'retval': {'type': 'Z'}, 'arguments': {2: {'type': sel32or64(b'I', b'Q')}, 3: {'type': sel32or64(b'{_NSPoint=ff}', b'{CGPoint=dd}')}, 4: {'type': sel32or64(b'I', b'Q')}, 5: {'type': '^Z', 'type_modifier': b'o'}, 6: {'type': b'@'}}}) 49 r(b'NSObject', b'mouseMovedOnCharacterIndex:coordinate:withModifier:client:', {'required': True, 'retval': {'type': 'Z'}, 'arguments': {2: {'type': sel32or64(b'I', b'Q')}, 3: {'type': sel32or64(b'{_NSPoint=ff}', b'{CGPoint=dd}')}, 4: {'type': sel32or64(b'I', b'Q')}, 5: {'type': b'@'}}}) 50 r(b'NSObject', b'mouseUpOnCharacterIndex:coordinate:withModifier:client:', {'required': True, 'retval': {'type': 'Z'}, 'arguments': {2: {'type': sel32or64(b'I', b'Q')}, 3: {'type': sel32or64(b'{_NSPoint=ff}', b'{CGPoint=dd}')}, 4: {'type': sel32or64(b'I', b'Q')}, 5: {'type': b'@'}}}) 51 r(b'NSObject', b'recognizedEvents:', {'required': True, 'retval': {'type': sel32or64(b'I', b'Q')}, 'arguments': {2: {'type': b'@'}}}) 52 r(b'NSObject', b'setValue:forTag:client:', {'required': True, 'retval': {'type': b'v'}, 'arguments': {2: {'type': b'@'}, 3: {'type': sel32or64(b'l', b'q')}, 4: {'type': b'@'}}}) 53 r(b'NSObject', b'showPreferences:', {'required': True, 'retval': {'type': b'v'}, 'arguments': {2: {'type': b'@'}}}) 54 r(b'NSObject', b'valueForTag:client:', {'required': True, 'retval': {'type': b'@'}, 'arguments': {2: {'type': sel32or64(b'l', b'q')}, 3: {'type': b'@'}}}) 55finally: 56 objc._updatingMetadata(False) 57r = objc.registerMetaDataForSelector 58objc._updatingMetadata(True) 59try: 60 r(b'NSObject', b'candidates:', {'retval': {'type': b'@'}, 'arguments': {2: {'type': b'@'}}}) 61 r(b'NSObject', b'commitComposition:', {'retval': {'type': b'v'}, 'arguments': {2: {'type': b'@'}}}) 62 r(b'NSObject', b'composedString:', {'retval': {'type': b'@'}, 'arguments': {2: {'type': b'@'}}}) 63 r(b'NSObject', b'didCommandBySelector:client:', {'retval': {'type': 'Z'}, 'arguments': {2: {'type': ':'}, 3: {'type': b'@'}}}) 64 r(b'NSObject', b'handleEvent:client:', {'retval': {'type': 'Z'}, 'arguments': {2: {'type': b'@'}, 3: {'type': b'@'}}}) 65 r(b'NSObject', b'inputText:client:', {'retval': {'type': 'Z'}, 'arguments': {2: {'type': b'@'}, 3: {'type': b'@'}}}) 66 r(b'NSObject', b'inputText:key:modifiers:client:', {'retval': {'type': 'Z'}, 'arguments': {2: {'type': b'@'}, 3: {'type': sel32or64(b'i', b'q')}, 4: {'type': sel32or64(b'I', b'Q')}, 5: {'type': b'@'}}}) 67 r(b'NSObject', b'originalString:', {'retval': {'type': b'@'}, 'arguments': {2: {'type': b'@'}}}) 68finally: 69 objc._updatingMetadata(False) 70protocols={'IMKServerInput': objc.informal_protocol('IMKServerInput', [objc.selector(None, b'inputText:client:', b'Z@:@@', isRequired=False), objc.selector(None, b'candidates:', b'@@:@', isRequired=False), objc.selector(None, b'didCommandBySelector:client:', b'Z@::@', isRequired=False), objc.selector(None, b'handleEvent:client:', b'Z@:@@', isRequired=False), objc.selector(None, b'composedString:', b'@@:@', isRequired=False), objc.selector(None, b'inputText:key:modifiers:client:', sel32or64(b'Z@:@iI@', b'Z@:@qQ@'), isRequired=False), objc.selector(None, b'commitComposition:', b'v@:@', isRequired=False), objc.selector(None, b'originalString:', b'@@:@', isRequired=False)])} 71expressions = {} 72 73# END OF FILE 74