Last login: Mon Jul 7 20:44:06 on ttys001 ASIO-OTUS:pyobjc$ cd /tmp ASIO-OTUS:tmp$ bpython >>> import objc >>> from PyObjCTools import AppHelper >>> import Foundation >>> import AppKit >>> import ColorPicker >>> ColorPicker >>> from AppKit import NSColorSpace, NSCIImageRep, NSImage, CDImageData, CIImage >>> NSColorSpace.alloc().init() Colorspace 0x7fb2cbc24650 >>> colorspace = NSColorSpace.alloc().init() >>> colorspace.colorProfile >>> colorspace.colorProfile() >>> colorspace.colorSyncProfile >>> colorspace.colorSyncProfile() >>> colorspace.colorSpaceName >>> colorspace.colorSpaceName() >>> colorspace.colorSpaceModel >>> colorspace.ICCProfileData >>> colorspace.ICCProfileData() >>> colorspace.ICCProfileData.definingClass >>> colorspace.ICCProfileData.isRequired False >>> colorspace.ICCProfileData.isHidden False >>> colorspace.ICCProfileData.isClassMethod False >>> colorspace.CGColorSpace >>> colorspace.CGColorSpace.selector 'CGColorSpace' >>> objc.selector >>> objc.selector() Traceback (most recent call last): File "", line 1, in TypeError: Required argument 'function' (pos 1) not found >>> objc.selectorFor >>> NSColorSpace.CGColorSpace >>> NSColorSpace.CGColorSpace() Traceback (most recent call last): File "", line 1, in TypeError: Missing argument: self >>> NSColorSpace() Traceback (most recent call last): File "", line 1, in TypeError: Use class methods to instantiate new Objective-C objects >>> colorspace.CGColorSpace >>> colorspace.CGColorSpace.signature '^{CGColorSpace=}16@0:8' >>> colorspace.CGColorSpace.native_signature '^{CGColorSpace=}16@0:8' >>> colorspace.CGColorSpace() >>> wat = colorspace.CGColorSpace() >>> wat >>> colorspace.CGColorSpace() >>> NSColorSpace.initWithCGColorSpace_() Traceback (most recent call last): File "", line 1, in TypeError: Missing argument: self >>> NSColorSpace.alloc().initWithCGColorSpace_() /usr/local/bin/bpython:2: UninitializedDeallocWarning: leaking an uninitialized object of type NSColorSpace # EASY-INSTALL-ENTRY-SCRIPT: 'bpython==0.13','console_scripts','bpython' Traceback (most recent call last): File "", line 1, in TypeError: Need 1 arguments, got 0 >>> NSColorSpace.alloc().initWithCGColorSpace_ > >>> NSColorSpace.sRGBColorSpace > >>> NSColorSpace.sRGBColorSpace() sRGB IEC61966-2.1 colorspace >>> NSColorSpace.sRGBColorSpace() sRGB IEC61966-2.1 colorspace >>> srgb = NSColorSpace.sRGBColorSpace() >>> srgb sRGB IEC61966-2.1 colorspace >>> type(srgb) >>> srgb.ICCProfileData >>> srgb.numberOfColorComponents >>> srgb.numberOfColorComponents() 3 >>> srgb.CGColorSpace >>> srgb.CGColorSpace() >>> cg_srgb = srgb.CGColorSpace() >>> cg_srgb.type '^{CGColorSpace=}' >>> srgb.allPropertyKeys >>> srgb.allPropertyKeys() ( ) >>> srgb.attributeKeys() >>> srgb.colorProfile >>> srgb.colorProfile() Color profile sRGB IEC61966-2.1 >>> srgb.colorSpaceModel() 1 >>> srgb.colorSpaceName() >>> srgb.colorSyncProfile() >>> srgb.description >>> srgb.description() u'sRGB IEC61966-2.1 colorspace' >>> srgb.dictionaryWithValuesForKeys_() Traceback (most recent call last): File "", line 1, in TypeError: Need 1 arguments, got 0 >>> srgb.entityName >>> srgb.entityName() >>> srgb.localizedName() u'sRGB IEC61966-2.1' >>> srgb.zone >>> srgb.zone() >>> srgb sRGB IEC61966-2.1 colorspace >>> srgb.CI_rect >>> srgb.CI_rect() size=> >>> srgb.ICCProfileData() <00000c48 4c696e6f 02100000 6d6e7472 52474220 58595a20 07ce0002 00090006 00310000 61637370 4d534654 00000000 49454320 73524742 00000000 00000000 00000000 0000f6d6 00010000 0000d32d 48502020 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000011 63707274 00000150 00000033 64657363 00000184 0000006c 77747074 000001f0 00000014 626b7074 00000204 00000014 7258595a 00000218 00000014 6758595a 0000022c 00000014 6258595a 00000240 00000014 646d6e64 00000254 00000070 646d6464 000002c4 00000088 76756564 0000034c 00000086 76696577 000003d4 00000024 6c756d69 000003f8 00000014 6d656173 0000040c 00000024 74656368 00000430 0000000c 72545243 0000043c 0000080c 67545243 0000043c 0000080c 62545243 0000043c 0000080c 74657874 00000000 436f7079 72696768 74202863 29203139 39382048 65776c65 74742d50 61636b61 72642043 6f6d7061 6e790000 64657363 00000000 00000012 73524742 20494543 36313936 362d322e 31000000 00000000 00000000 12735247 42204945 43363139 36362d32 2e310000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 58595a20 00000000 0000f351 00010000 000116cc 58595a20 00000000 00000000 00000000 00000000 58595a20 00000000 00006fa2 000038f5 00000390 58595a20 00000000 00006299 0000b785 000018da 58595a20 00000000 000024a0 00000f84 0000b6cf 64657363 00000000 00000016 49454320 68747470 3a2f2f77 77772e69 65632e63 68000000 00000000 00000000 16494543 20687474 703a2f2f 7777772e 6965632e 63680000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 64657363 00000000 0000002e 49454320 36313936 362d322e 31204465 6661756c 74205247 4220636f 6c6f7572 20737061 6365202d 20735247 42000000 00000000 00000000 2e494543 20363139 36362d32 2e312044 65666175 6c742052 47422063 6f6c6f75 72207370 61636520 2d207352 47420000 00000000 00000000 00000000 00000000 00000000 64657363 00000000 0000002c 52656665 72656e63 65205669 6577696e 6720436f 6e646974 696f6e20 696e2049 45433631 3936362d 322e3100 00000000 00000000 00002c52 65666572 656e6365 20566965 77696e67 20436f6e 64697469 6f6e2069 6e204945 43363139 36362d32 2e310000 00000000 00000000 00000000 00000000 00000000 00000000 76696577 00000000 0013a4fe 00145f2e 0010cf14 0003edcc 0004130b 00035c9e 00000001 58595a20 00000000 004c0956 00500000 00571fe7 6d656173 00000000 00000001 00000000 00000000 00000000 00000000 0000028f 00000002 73696720 00000000 43525420 63757276 00000000 00000400 00000005 000a000f 00140019 001e0023 0028002d 00320037 003b0040 0045004a 004f0054 0059005e 00630068 006d0072 0077007c 00810086 008b0090 0095009a 009f00a4 00a900ae 00b200b7 00bc00c1 00c600cb 00d000d5 00db00e0 00e500eb 00f000f6 00fb0101 0107010d 01130119 011f0125 012b0132 0138013e 0145014c 01520159 01600167 016e0175 017c0183 018b0192 019a01a1 01a901b1 01b901c1 01c901d1 01d901e1 01e901f2 01fa0203 020c0214 021d0226 022f0238 0241024b 0254025d 02670271 027a0284 028e0298 02a202ac 02b602c1 02cb02d5 02e002eb 02f50300 030b0316 0321032d 03380343 034f035a 03660372 037e038a 039603a2 03ae03ba 03c703d3 03e003ec 03f90406 04130420 042d043b 04480455 04630471 047e048c 049a04a8 04b604c4 04d304e1 04f004fe 050d051c 052b053a 05490558 05670577 05860596 05a605b5 05c505d5 05e505f6 06060616 06270637 06480659 066a067b 068c069d 06af06c0 06d106e3 06f50707 0719072b 073d074f 07610774 07860799 07ac07bf 07d207e5 07f8080b 081f0832 0846085a 086e0882 089608aa 08be08d2 08e708fb 09100925 093a094f 09640979 098f09a4 09ba09cf 09e509fb 0a110a27 0a3d0a54 0a6a0a81 0a980aae 0ac50adc 0af30b0b 0b220b39 0b510b69 0b800b98 0bb00bc8 0be10bf9 0c120c2a 0c430c5c 0c750c8e 0ca70cc0 0cd90cf3 0d0d0d26 0d400d5a 0d740d8e 0da90dc3 0dde0df8 0e130e2e 0e490e64 0e7f0e9b 0eb60ed2 0eee0f09 0f250f41 0f5e0f7a 0f960fb3 0fcf0fec 10091026 10431061 107e109b 10b910d7 10f51113 1131114f 116d118c 11aa11c9 11e81207 12261245 12641284 12a312c3 12e31303 13231343 13631383 13a413c5 13e51406 14271449 146a148b 14ad14ce 14f01512 15341556 1578159b 15bd15e0 16031626 1649166c 168f16b2 16d616fa 171d1741 17651789 17ae17d2 17f7181b 18401865 188a18af 18d518fa 19201945 196b1991 19b719dd 1a041a2a 1a511a77 1a9e1ac5 1aec1b14 1b3b1b63 1b8a1bb2 1bda1c02 1c2a1c52 1c7b1ca3 1ccc1cf5 1d1e1d47 1d701d99 1dc31dec 1e161e40 1e6a1e94 1ebe1ee9 1f131f3e 1f691f94 1fbf1fea 20152041 206c2098 20c420f0 211c2148 217521a1 21ce21fb 22272255 228222af 22dd230a 23382366 239423c2 23f0241f 244d247c 24ab24da 25092538 25682597 25c725f7 26272657 268726b7 26e82718 2749277a 27ab27dc 280d283f 287128a2 28d42906 2938296b 299d29d0 2a022a35 2a682a9b 2acf2b02 2b362b69 2b9d2bd1 2c052c39 2c6e2ca2 2cd72d0c 2d412d76 2dab2de1 2e162e4c 2e822eb7 2eee2f24 2f5a2f91 2fc72ffe 3035306c 30a430db 3112314a 318231ba 31f2322a 3263329b 32d4330d 3346337f 33b833f1 342b3465 349e34d8 3513354d 358735c2 35fd3637 367236ae 36e93724 3760379c 37d73814 3850388c 38c83905 3942397f 39bc39f9 3a363a74 3ab23aef 3b2d3b6b 3baa3be8 3c273c65 3ca43ce3 3d223d61 3da13de0 3e203e60 3ea03ee0 3f213f61 3fa23fe2 40234064 40a640e7 4129416a 41ac41ee 42304272 42b542f7 433a437d 43c04403 4447448a 44ce4512 4555459a 45de4622 466746ab 46f04735 477b47c0 4805484b 489148d7 491d4963 49a949f0 4a374a7d 4ac44b0c 4b534b9a 4be24c2a 4c724cba 4d024d4a 4d934ddc 4e254e6e 4eb74f00 4f494f93 4fdd5027 507150bb 51065150 519b51e6 5231527c 52c75313 535f53aa 53f65442 548f54db 55285575 55c2560f 565c56a9 56f75744 579257e0 582f587d 58cb591a 596959b8 5a075a56 5aa65af5 5b455b95 5be55c35 5c865cd6 5d275d78 5dc95e1a 5e6c5ebd 5f0f5f61 5fb36005 605760aa 60fc614f 61a261f5 6249629c 62f06343 639763eb 64406494 64e9653d 659265e7 663d6692 66e8673d 679367e9 683f6896 68ec6943 699a69f1 6a486a9f 6af76b4f 6ba76bff 6c576caf 6d086d60 6db96e12 6e6b6ec4 6f1e6f78 6fd1702b 708670e0 713a7195 71f0724b 72a67301 735d73b8 74147470 74cc7528 758575e1 763e769b 76f87756 77b37811 786e78cc 792a7989 79e77a46 7aa57b04 7b637bc2 7c217c81 7ce17d41 7da17e01 7e627ec2 7f237f84 7fe58047 80a8810a 816b81cd 82308292 82f48357 83ba841d 848084e3 854785ab 860e8672 86d7873b 879f8804 886988ce 89338999 89fe8a64 8aca8b30 8b968bfc 8c638cca 8d318d98 8dff8e66 8ece8f36 8f9e9006 906e90d6 913f91a8 9211927a 92e3934d 93b69420 948a94f4 955f95c9 9634969f 970a9775 97e0984c 98b89924 999099fc 9a689ad5 9b429baf 9c1c9c89 9cf79d64 9dd29e40 9eae9f1d 9f8b9ffa a069a0d8 a147a1b6 a226a296 a306a376 a3e6a456 a4c7a538 a5a9a61a a68ba6fd a76ea7e0 a852a8c4 a937a9a9 aa1caa8f ab02ab75 abe9ac5c acd0ad44 adb8ae2d aea1af16 af8bb000 b075b0ea b160b1d6 b24bb2c2 b338b3ae b425b49c b513b58a b601b679 b6f0b768 b7e0b859 b8d1b94a b9c2ba3b bab5bb2e bba7bc21 bc9bbd15 bd8fbe0a be84beff bf7abff5 c070c0ec c167c1e3 c25fc2db c358c3d4 c451c4ce c54bc5c8 c646c6c3 c741c7bf c83dc8bc c93ac9b9 ca38cab7 cb36cbb6 cc35ccb5 cd35cdb5 ce36ceb6 cf37cfb8 d039d0ba d13cd1be d23fd2c1 d344d3c6 d449d4cb d54ed5d1 d655d6d8 d75cd7e0 d864d8e8 d96cd9f1 da76dafb db80dc05 dc8add10 dd96de1c dea2df29 dfafe036 e0bde144 e1cce253 e2dbe363 e3ebe473 e4fce584 e60de696 e71fe7a9 e832e8bc e946e9d0 ea5beae5 eb70ebfb ec86ed11 ed9cee28 eeb4ef40 efccf058 f0e5f172 f1fff28c f319f3a7 f434f4c2 f550f5de f66df6fb f78af819 f8a8f938 f9c7fa57 fae7fb77 fc07fc98 fd29fdba fe4bfedc ff6dffff> >>> icc_srgb = srgb.ICCProfileData() >>> icc_srgb.CI_rect > >>> icc_srgb.CI_rect() size=> >>> icc_srgb.allPropertyKeys() ( ) >>> icc_srgb.attributeKeys( ... ) >>> icc_srgb.bytes > >>> icc_srgb.base64Encoding > >>> icc_srgb.base64Encoding() u'AAAMSExpbm8CEAAAbW50clJHQiBYWVogB84AAgAJAAYAMQAAYWNzcE1TRlQAAAAASUVDIHNSR0IAAAAAAAAAAAAAAAAAAPbWAAEAAAAA0y1IUCAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARY3BydAAAAVAAAAAzZGVzYwAAAYQAAABsd3RwdAAAAfAAAAAUYmtwdAAAAgQAAAAUclhZWgAAAhgAAAAUZ1hZWgAAAiwAAAAUYlhZWgAAAkAAAAAUZG1uZAAAAlQAAABwZG1kZAAAAsQAAACIdnVlZAAAA0wAAACGdmlldwAAA9QAAAAkbHVtaQAAA/gAAAAUbWVhcwAABAwAAAAkdGVjaAAABDAAAAAMclRSQwAABDwAAAgMZ1RSQwAABDwAAAgMYlRSQwAABDwAAAgMdGV4dAAAAABDb3B5cmlnaHQgKGMpIDE5OTggSGV3bGV0dC1QYWNrYXJkIENvbXBhbnkAAGRlc2MAAAAAAAAAEnNSR0IgSUVDNjE5NjYtMi4xAAAAAAAAAAAAAAASc1JHQiBJRUM2MTk2Ni0yLjEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAADzUQABAAAAARbMWFlaIAAAAAAAAAAAAAAAAAAAAABYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9kZXNjAAAAAAAAABZJRUMgaHR0cDovL3d3dy5pZWMuY2gAAAAAAAAAAAAAABZJRUMgaHR0cDovL3d3dy5pZWMuY2gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZGVzYwAAAAAAAAAuSUVDIDYxOTY2LTIuMSBEZWZhdWx0IFJHQiBjb2xvdXIgc3BhY2UgLSBzUkdCAAAAAAAAAAAAAAAuSUVDIDYxOTY2LTIuMSBEZWZhdWx0IFJHQiBjb2xvdXIgc3BhY2UgLSBzUkdCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGRlc2MAAAAAAAAALFJlZmVyZW5jZSBWaWV3aW5nIENvbmRpdGlvbiBpbiBJRUM2MTk2Ni0yLjEAAAAAAAAAAAAAACxSZWZlcmVuY2UgVmlld2luZyBDb25kaXRpb24gaW4gSUVDNjE5NjYtMi4xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB2aWV3AAAAAAATpP4AFF8uABDPFAAD7cwABBMLAANcngAAAAFYWVogAAAAAABMCVYAUAAAAFcf521lYXMAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAKPAAAAAnNpZyAAAAAAQ1JUIGN1cnYAAAAAAAAEAAAAAAUACgAPABQAGQAeACMAKAAtADIANwA7AEAARQBKAE8AVABZAF4AYwBoAG0AcgB3AHwAgQCGAIsAkACVAJoAnwCkAKkArgCyALcAvADBAMYAywDQANUA2wDgAOUA6wDwAPYA+wEBAQcBDQETARkBHwElASsBMgE4AT4BRQFMAVIBWQFgAWcBbgF1AXwBgwGLAZIBmgGhAakBsQG5AcEByQHRAdkB4QHpAfIB+gIDAgwCFAIdAiYCLwI4AkECSwJUAl0CZwJxAnoChAKOApgCogKsArYCwQLLAtUC4ALrAvUDAAMLAxYDIQMtAzgDQwNPA1oDZgNyA34DigOWA6IDrgO6A8cD0wPgA+wD+QQGBBMEIAQtBDsESARVBGMEcQR+BIwEmgSoBLYExATTBOEE8AT+BQ0FHAUrBToFSQVYBWcFdwWGBZYFpgW1BcUF1QXlBfYGBgYWBicGNwZIBlkGagZ7BowGnQavBsAG0QbjBvUHBwcZBysHPQdPB2EHdAeGB5kHrAe/B9IH5Qf4CAsIHwgyCEYIWghuCIIIlgiqCL4I0gjnCPsJEAklCToJTwlkCXkJjwmkCboJzwnlCfsKEQonCj0KVApqCoEKmAquCsUK3ArzCwsLIgs5C1ELaQuAC5gLsAvIC+EL+QwSDCoMQwxcDHUMjgynDMAM2QzzDQ0NJg1ADVoNdA2ODakNww3eDfgOEw4uDkkOZA5/DpsOtg7SDu4PCQ8lD0EPXg96D5YPsw/PD+wQCRAmEEMQYRB+EJsQuRDXEPURExExEU8RbRGMEaoRyRHoEgcSJhJFEmQShBKjEsMS4xMDEyMTQxNjE4MTpBPFE+UUBhQnFEkUahSLFK0UzhTwFRIVNBVWFXgVmxW9FeAWAxYmFkkWbBaPFrIW1hb6Fx0XQRdlF4kXrhfSF/cYGxhAGGUYihivGNUY+hkgGUUZaxmRGbcZ3RoEGioaURp3Gp4axRrsGxQbOxtjG4obshvaHAIcKhxSHHscoxzMHPUdHh1HHXAdmR3DHeweFh5AHmoelB6+HukfEx8+H2kflB+/H+ogFSBBIGwgmCDEIPAhHCFIIXUhoSHOIfsiJyJVIoIiryLdIwojOCNmI5QjwiPwJB8kTSR8JKsk2iUJJTglaCWXJccl9yYnJlcmhya3JugnGCdJJ3onqyfcKA0oPyhxKKIo1CkGKTgpaymdKdAqAio1KmgqmyrPKwIrNitpK50r0SwFLDksbiyiLNctDC1BLXYtqy3hLhYuTC6CLrcu7i8kL1ovkS/HL/4wNTBsMKQw2zESMUoxgjG6MfIyKjJjMpsy1DMNM0YzfzO4M/E0KzRlNJ402DUTNU01hzXCNf02NzZyNq426TckN2A3nDfXOBQ4UDiMOMg5BTlCOX85vDn5OjY6dDqyOu87LTtrO6o76DwnPGU8pDzjPSI9YT2hPeA+ID5gPqA+4D8hP2E/oj/iQCNAZECmQOdBKUFqQaxB7kIwQnJCtUL3QzpDfUPARANER0SKRM5FEkVVRZpF3kYiRmdGq0bwRzVHe0fASAVIS0iRSNdJHUljSalJ8Eo3Sn1KxEsMS1NLmkviTCpMcky6TQJNSk2TTdxOJU5uTrdPAE9JT5NP3VAnUHFQu1EGUVBRm1HmUjFSfFLHUxNTX1OqU/ZUQlSPVNtVKFV1VcJWD1ZcVqlW91dEV5JX4FgvWH1Yy1kaWWlZuFoHWlZaplr1W0VblVvlXDVchlzWXSddeF3JXhpebF69Xw9fYV+zYAVgV2CqYPxhT2GiYfViSWKcYvBjQ2OXY+tkQGSUZOllPWWSZedmPWaSZuhnPWeTZ+loP2iWaOxpQ2maafFqSGqfavdrT2una/9sV2yvbQhtYG25bhJua27Ebx5veG/RcCtwhnDgcTpxlXHwcktypnMBc11zuHQUdHB0zHUodYV14XY+dpt2+HdWd7N4EXhueMx5KnmJeed6RnqlewR7Y3vCfCF8gXzhfUF9oX4BfmJ+wn8jf4R/5YBHgKiBCoFrgc2CMIKSgvSDV4O6hB2EgITjhUeFq4YOhnKG14c7h5+IBIhpiM6JM4mZif6KZIrKizCLlov8jGOMyo0xjZiN/45mjs6PNo+ekAaQbpDWkT+RqJIRknqS45NNk7aUIJSKlPSVX5XJljSWn5cKl3WX4JhMmLiZJJmQmfyaaJrVm0Kbr5wcnImc951kndKeQJ6unx2fi5/6oGmg2KFHobaiJqKWowajdqPmpFakx6U4pammGqaLpv2nbqfgqFKoxKk3qamqHKqPqwKrdavprFys0K1ErbiuLa6hrxavi7AAsHWw6rFgsdayS7LCszizrrQltJy1E7WKtgG2ebbwt2i34LhZuNG5SrnCuju6tbsuu6e8IbybvRW9j74KvoS+/796v/XAcMDswWfB48JfwtvDWMPUxFHEzsVLxcjGRsbDx0HHv8g9yLzJOsm5yjjKt8s2y7bMNcy1zTXNtc42zrbPN8+40DnQutE80b7SP9LB00TTxtRJ1MvVTtXR1lXW2Ndc1+DYZNjo2WzZ8dp22vvbgNwF3IrdEN2W3hzeot8p36/gNuC94UThzOJT4tvjY+Pr5HPk/OWE5g3mlucf56noMui86Ubp0Opb6uXrcOv77IbtEe2c7ijutO9A78zwWPDl8XLx//KM8xnzp/Q09ML1UPXe9m32+/eK+Bn4qPk4+cf6V/rn+3f8B/yY/Sn9uv5L/tz/bf//' >>> img = NSImage.alloc().initWithContentsOfFile_('/Users/fish/Downloads/tumblr_mgq73sTl6z1qb9r7fo1_r1_500.jpg') >>> img >>> img.representations > >>> img.representations[0] Traceback (most recent call last): File "", line 1, in TypeError: 'objc.native_selector' object has no attribute '__getitem__' >>> img.representations(0) Traceback (most recent call last): File "", line 1, in TypeError: Need 0 arguments, got 1 >>> img.representations() ( "NSBitmapImageRep 0x7fb2cd85c750 Size={500, 746} ColorSpace=(not yet loaded) BPS=8 BPP=(not yet loaded) Pixels=500x746 Alpha=NO Planar=NO Format=(not yet loaded) CurrentBacking=nil (faulting) CGImageSource=0x7fb2cd85aba0" ) >>> img.representations()[0] NSBitmapImageRep 0x7fb2cd85c750 Size={500, 746} ColorSpace=(not yet loaded) BPS=8 BPP=(not yet loaded) Pixels=500x746 Alpha=NO Planar=NO Format=(not yet loaded) CurrentBacking=nil (faulting) CGImageSource=0x7fb2cd85aba0 >>> imgrep = img.representations()[0] >>> imgrep.colorSpace >>> imgrep.colorSpace() sRGB IEC61966-2.1 colorspace >>> imgrep.colorSpaceName() u'NSCalibratedRGBColorSpace' >>> img CGImageSource=0x7fb2cd85aba0" )> >>> srgb sRGB IEC61966-2.1 colorspace >>> srgb sRGB IEC61966-2.1 colorspace >>> srgb.__slots__ () >>> srgb.CGColorSpace >>> >>> srgb.CGColorSpace() >>> srgb.colorSyncProfile() >>> cs_srgb = srgb.colorSyncProfile() >>> cs_srgb.type '^{OpaqueCMProfileRef=}' >>> srgb.className >>> srgb.className() u'NSColorSpace' >>> srgb.colorSpaceModel() 1 >>> from Foundation import NSColorSpace >>> srgb.colorSpaceName >>> srgb.colorSpaceName() >>> srgb.colorSpaceModel() 1 >>> srgb.colorProfile() Color profile sRGB IEC61966-2.1 >>> wat = srgb.colorProfile() >>> wat.className() u'NSColorProfile' >>> srgb sRGB IEC61966-2.1 colorspace >>> srgb.className() u'NSColorSpace' >>> from PyObjCTools import bridgesupport Traceback (most recent call last): File "", line 1, in ImportError: cannot import name bridgesupport >>> from PyObjCTools import BridgeSupport Traceback (most recent call last): File "", line 1, in ImportError: cannot import name BridgeSupport >>> import PyObjCTools >>> AppKit.NSColorSpaceColor >>> AppKit.NSColorSpaceColor() Traceback (most recent call last): File "", line 1, in TypeError: Use class methods to instantiate new Objective-C objects >>> from AppKit import _inlines, _metadata >>> _inlines >>> _metadata.enums '$NSAWTEventType@16$NSAboveBottom@4$NSAboveTop@1$NSAddTraitFontAction@2$NSAdobeCNS1CharacterCollection@1$NSAdobeGB1CharacterCollection@2$NSAdobeJapan1CharacterCollection@3$NSAdobeJapan2CharacterCollection@4$NSAdobeKorea1CharacterCollection@5$NSAlertAlternateReturn@0$NSAlertDefaultReturn@1$NSAlertErrorReturn@-2$NSAlertFirstButtonReturn@1000$NSAlertOtherReturn@-1$NSAlertSecondButtonReturn@1001$NSAlertThirdButtonReturn@1002$NSAllScrollerParts@2$NSAlphaFirstBitmapFormat@1$NSAlphaNonpremultipliedBitmapFormat@2$NSAlphaShiftKeyMask@65536$NSAlternateKeyMask@524288$NSAnimationBlocking@0$NSAnimationEaseIn@1$NSAnimationEaseInOut@0$NSAnimationEaseOut@2$NSAnimationEffectDisappearingItemDefault@0$NSAnimationEffectPoof@10$NSAnimationLinear@3$NSAnimationNonblocking@1$NSAnimationNonblockingThreaded@2$NSAnyType@0$NSAppKitDefined@13$NSAppKitDefinedMask@8192$NSAppKitVersionNumber10_0@577$NSAppKitVersionNumber10_1@620$NSAppKitVersionNumber10_2@663$NSAppKitVersionNumber10_3@743$NSAppKitVersionNumber10_4@824$NSAppKitVersionNumber10_5@949$NSAppKitVersionNumber10_6@1038$NSAppKitVersionNumber10_7@1138$NSApplicationActivateAllWindows@1$NSApplicationActivateIgnoringOtherApps@2$NSApplicationActivatedEventType@1$NSApplicationActivationPolicyAccessory@1$NSApplicationActivationPolicyProhibited@2$NSApplicationActivationPolicyRegular@0$NSApplicationDeactivatedEventType@2$NSApplicationDefined@15$NSApplicationDefinedMask@32768$NSApplicationDelegateReplyCancel@1$NSApplicationDelegateReplyFailure@2$NSApplicationDelegateReplySuccess@0$NSApplicationPresentationAutoHideDock@1$NSApplicationPresentationAutoHideMenuBar@4$NSApplicationPresentationAutoHideToolbar@2048$NSApplicationPresentationDefault@0$NSApplicationPresentationDisableAppleMenu@16$NSApplicationPresentationDisableForceQuit@64$NSApplicationPresentationDisableHideApplication@256$NSApplicationPresentationDisableMenuBarTransparency@512$NSApplicationPresentationDisableProcessSwitching@32$NSApplicationPresentationDisableSessionTermination@128$NSApplicationPresentationFullScreen@1024$NSApplicationPresentationHideDock@2$NSApplicationPresentationHideMenuBar@8$NSAscendingPageOrder@1$NSAsciiWithDoubleByteEUCGlyphPacking@2$NSAtBottom@5$NSAtTop@2$NSAutoPagination@0$NSAutosaveAsOperation@5$NSAutosaveElsewhereOperation@3$NSAutosaveInPlaceOperation@4$NSAutosaveOperation@3$NSBMPFileType@1$NSBackTabCharacter@25$NSBackgroundStyleDark@1$NSBackgroundStyleLight@0$NSBackgroundStyleLowered@3$NSBackgroundStyleRaised@2$NSBackgroundTab@1$NSBackingStoreBuffered@2$NSBackingStoreNonretained@1$NSBackingStoreRetained@0$NSBackspaceCharacter@8$NSBacktabTextMovement@18$NSBeginFunctionKey@63274$NSBelowBottom@6$NSBelowTop@3$NSBevelLineJoinStyle@2$NSBezelBorder@2$NSBlueControlTint@1$NSBoldFontMask@2$NSBorderlessWindowMask@0$NSBottomTabsBezelBorder@2$NSBoxCustom@4$NSBoxOldStyle@3$NSBoxPrimary@0$NSBoxSecondary@1$NSBoxSeparator@2$NSBreakFunctionKey@63282$NSBrowserAutoColumnResizing@1$NSBrowserDropAbove@1$NSBrowserDropOn@0$NSBrowserNoColumnResizing@0$NSBrowserUserColumnResizing@2$NSButtLineCapStyle@0$NSCMYKColorSpaceModel@2$NSCMYKModeColorPanel@2$NSCancelButton@0$NSCancelTextMovement@23$NSCarriageReturnCharacter@13$NSCellAllowsMixedState@16$NSCellChangesContents@14$NSCellDisabled@0$NSCellEditable@3$NSCellHasImageHorizontal@12$NSCellHasImageOnLeftOrBottom@13$NSCellHasOverlappingImage@11$NSCellHighlighted@5$NSCellHitContentArea@1$NSCellHitEditableTextArea@2$NSCellHitNone@0$NSCellHitTrackableArea@4$NSCellIsBordered@10$NSCellIsInsetButton@15$NSCellLightsByBackground@9$NSCellLightsByContents@6$NSCellLightsByGray@7$NSCellState@1$NSCenterTabStopType@2$NSCenterTextAlignment@2$NSChangeAutosaved@4$NSChangeBackgroundCell@8$NSChangeBackgroundCellMask@8$NSChangeCleared@2$NSChangeDiscardable@256$NSChangeDone@0$NSChangeGrayCell@4$NSChangeGrayCellMask@4$NSChangeReadOtherContents@3$NSChangeRedone@5$NSChangeUndone@1$NSCircularBezelStyle@7$NSCircularSlider@1$NSClearControlTint@7$NSClearDisplayFunctionKey@63290$NSClearLineFunctionKey@63289$NSClipPagination@2$NSClockAndCalendarDatePickerStyle@1$NSClosableWindowMask@2$NSClosePathBezierPathElement@3$NSCollectionViewDropBefore@1$NSCollectionViewDropOn@0$NSColorListModeColorPanel@5$NSColorPanelAllModesMask@65535$NSColorPanelCMYKModeMask@4$NSColorPanelColorListModeMask@32$NSColorPanelCrayonModeMask@128$NSColorPanelCustomPaletteModeMask@16$NSColorPanelGrayModeMask@1$NSColorPanelHSBModeMask@8$NSColorPanelRGBModeMask@2$NSColorPanelWheelModeMask@64$NSColorRenderingIntentAbsoluteColorimetric@1$NSColorRenderingIntentDefault@0$NSColorRenderingIntentPerceptual@3$NSColorRenderingIntentRelativeColorimetric@2$NSColorRenderingIntentSaturation@4$NSCommandKeyMask@1048576$NSCompositeClear@0$NSCompositeCopy@1$NSCompositeDestinationAtop@9$NSCompositeDestinationIn@7$NSCompositeDestinationOut@8$NSCompositeDestinationOver@6$NSCompositeHighlight@12$NSCompositePlusDarker@11$NSCompositePlusLighter@13$NSCompositeSourceAtop@5$NSCompositeSourceIn@3$NSCompositeSourceOut@4$NSCompositeSourceOver@2$NSCompositeXOR@10$NSCompressedFontMask@512$NSCondensedFontMask@64$NSContentsCellMask@1$NSContinuousCapacityLevelIndicatorStyle@1$NSControlGlyph@16777215$NSControlKeyMask@262144$NSCorrectionIndicatorTypeDefault@0$NSCorrectionIndicatorTypeGuesses@2$NSCorrectionIndicatorTypeReversion@1$NSCorrectionResponseAccepted@1$NSCorrectionResponseEdited@4$NSCorrectionResponseIgnored@3$NSCorrectionResponseNone@0$NSCorrectionResponseRejected@2$NSCorrectionResponseReverted@5$NSCrayonModeColorPanel@7$NSCriticalAlertStyle@2$NSCriticalRequest@0$NSCursorPointingDevice@2$NSCursorUpdate@17$NSCursorUpdateMask@131072$NSCurveToBezierPathElement@2$NSCustomPaletteModeColorPanel@4$NSDecimalTabStopType@3$NSDefaultControlTint@0$NSDefaultTokenStyle@0$NSDeleteCharFunctionKey@63294$NSDeleteCharacter@127$NSDeleteFunctionKey@63272$NSDeleteLineFunctionKey@63292$NSDescendingPageOrder@-1$NSDeviceIndependentModifierFlagsMask@4294901760$NSDeviceNColorSpaceModel@4$NSDirectSelection@0$NSDisclosureBezelStyle@5$NSDiscreteCapacityLevelIndicatorStyle@2$NSDisplayWindowRunLoopOrdering@600000$NSDocModalWindowMask@64$NSDockWindowLevel@20$NSDoubleType@6$NSDownArrowFunctionKey@63233$NSDownTextMovement@22$NSDragOperationAll_Obsolete@15$NSDragOperationCopy@1$NSDragOperationDelete@32$NSDragOperationGeneric@4$NSDragOperationLink@2$NSDragOperationMove@16$NSDragOperationNone@0$NSDragOperationPrivate@8$NSDraggingContextOutsideApplication@0$NSDraggingContextWithinApplication@1$NSDraggingFormationDefault@0$NSDraggingFormationList@3$NSDraggingFormationNone@1$NSDraggingFormationPile@2$NSDraggingFormationStack@4$NSDraggingItemEnumerationClearNonenumeratedImages@65536$NSDrawerClosedState@0$NSDrawerClosingState@3$NSDrawerOpenState@2$NSDrawerOpeningState@1$NSEndFunctionKey@63275$NSEnterCharacter@3$NSEraDatePickerElementFlag@256$NSEraserPointingDevice@3$NSEvenOddWindingRule@1$NSEventGestureAxisHorizontal@1$NSEventGestureAxisNone@0$NSEventGestureAxisVertical@2$NSEventMaskBeginGesture@524288$NSEventMaskEndGesture@1048576$NSEventMaskGesture@536870912$NSEventMaskMagnify@1073741824$NSEventMaskRotate@262144$NSEventMaskSmartMagnify@4294967296$NSEventMaskSwipe@2147483648$NSEventPhaseBegan@1$NSEventPhaseCancelled@16$NSEventPhaseChanged@4$NSEventPhaseEnded@8$NSEventPhaseMayBegin@32$NSEventPhaseNone@0$NSEventPhaseStationary@2$NSEventSwipeTrackingClampGestureAmount@2$NSEventSwipeTrackingLockDirection@1$NSEventTypeBeginGesture@19$NSEventTypeEndGesture@20$NSEventTypeGesture@29$NSEventTypeMagnify@30$NSEventTypeQuickLook@33$NSEventTypeRotate@18$NSEventTypeSmartMagnify@32$NSEventTypeSwipe@31$NSExclude10_4ElementsIconCreationOption@4$NSExcludeQuickDrawElementsIconCreationOption@2$NSExecuteFunctionKey@63298$NSExpandedFontMask@32$NSF10FunctionKey@63245$NSF11FunctionKey@63246$NSF12FunctionKey@63247$NSF13FunctionKey@63248$NSF14FunctionKey@63249$NSF15FunctionKey@63250$NSF16FunctionKey@63251$NSF17FunctionKey@63252$NSF18FunctionKey@63253$NSF19FunctionKey@63254$NSF1FunctionKey@63236$NSF20FunctionKey@63255$NSF21FunctionKey@63256$NSF22FunctionKey@63257$NSF23FunctionKey@63258$NSF24FunctionKey@63259$NSF25FunctionKey@63260$NSF26FunctionKey@63261$NSF27FunctionKey@63262$NSF28FunctionKey@63263$NSF29FunctionKey@63264$NSF2FunctionKey@63237$NSF30FunctionKey@63265$NSF31FunctionKey@63266$NSF32FunctionKey@63267$NSF33FunctionKey@63268$NSF34FunctionKey@63269$NSF35FunctionKey@63270$NSF3FunctionKey@63238$NSF4FunctionKey@63239$NSF5FunctionKey@63240$NSF6FunctionKey@63241$NSF7FunctionKey@63242$NSF8FunctionKey@63243$NSF9FunctionKey@63244$NSFPCurrentField@134$NSFPPreviewButton@131$NSFPPreviewField@128$NSFPRevertButton@130$NSFPSetButton@132$NSFPSizeField@129$NSFPSizeTitle@133$NSFileHandlingPanelCancelButton@0$NSFileHandlingPanelOKButton@1$NSFileWrapperReadingImmediate@1$NSFileWrapperReadingWithoutMapping@2$NSFileWrapperWritingAtomic@1$NSFileWrapperWritingWithNameUpdating@2$NSFindFunctionKey@63301$NSFindPanelActionNext@2$NSFindPanelActionPrevious@3$NSFindPanelActionReplace@5$NSFindPanelActionReplaceAll@4$NSFindPanelActionReplaceAllInSelection@8$NSFindPanelActionReplaceAndFind@6$NSFindPanelActionSelectAll@9$NSFindPanelActionSelectAllInSelection@10$NSFindPanelActionSetFindString@7$NSFindPanelActionShowFindPanel@1$NSFindPanelSubstringMatchTypeContains@0$NSFindPanelSubstringMatchTypeEndsWith@3$NSFindPanelSubstringMatchTypeFullWord@2$NSFindPanelSubstringMatchTypeStartsWith@1$NSFitPagination@1$NSFixedPitchFontMask@1024$NSFlagsChanged@12$NSFlagsChangedMask@4096$NSFloatType@3$NSFloatingPointSamplesBitmapFormat@4$NSFloatingWindowLevel@3$NSFocusRingAbove@2$NSFocusRingBelow@1$NSFocusRingOnly@0$NSFocusRingTypeDefault@0$NSFocusRingTypeExterior@2$NSFocusRingTypeNone@1$NSFontAntialiasedIntegerAdvancementsRenderingMode@3$NSFontAntialiasedRenderingMode@1$NSFontBoldTrait@2$NSFontClarendonSerifsClass@1073741824$NSFontCollectionApplicationOnlyMask@1$NSFontCollectionVisibilityComputer@4$NSFontCollectionVisibilityProcess@1$NSFontCollectionVisibilityUser@2$NSFontCondensedTrait@64$NSFontDefaultRenderingMode@0$NSFontExpandedTrait@32$NSFontFamilyClassMask@4026531840$NSFontFreeformSerifsClass@1879048192$NSFontIntegerAdvancementsRenderingMode@2$NSFontItalicTrait@1$NSFontModernSerifsClass@805306368$NSFontMonoSpaceTrait@1024$NSFontOldStyleSerifsClass@268435456$NSFontOrnamentalsClass@2415919104$NSFontPanelAllEffectsModeMask@1048320$NSFontPanelAllModesMask@4294967295$NSFontPanelCollectionModeMask@4$NSFontPanelDocumentColorEffectModeMask@2048$NSFontPanelFaceModeMask@1$NSFontPanelShadowEffectModeMask@4096$NSFontPanelSizeModeMask@2$NSFontPanelStandardModesMask@65535$NSFontPanelStrikethroughEffectModeMask@512$NSFontPanelTextColorEffectModeMask@1024$NSFontPanelUnderlineEffectModeMask@256$NSFontSansSerifClass@2147483648$NSFontScriptsClass@2684354560$NSFontSlabSerifsClass@1342177280$NSFontSymbolicClass@3221225472$NSFontTransitionalSerifsClass@536870912$NSFontUIOptimizedTrait@4096$NSFontUnknownClass@0$NSFontVerticalTrait@2048$NSFormFeedCharacter@12$NSFourByteGlyphPacking@4$NSFullScreenWindowMask@16384$NSFunctionKeyMask@8388608$NSGIFFileType@2$NSGlyphAbove@2$NSGlyphAttributeBidiLevel@2$NSGlyphAttributeElastic@1$NSGlyphAttributeInscribe@5$NSGlyphAttributeSoft@0$NSGlyphBelow@1$NSGlyphInscribeAbove@2$NSGlyphInscribeBase@0$NSGlyphInscribeBelow@1$NSGlyphInscribeOverBelow@4$NSGlyphInscribeOverstrike@3$NSGlyphLayoutAgainstAPoint@1$NSGlyphLayoutAtAPoint@0$NSGlyphLayoutWithPrevious@2$NSGradientConcaveStrong@2$NSGradientConcaveWeak@1$NSGradientConvexStrong@4$NSGradientConvexWeak@3$NSGradientDrawsAfterEndingLocation@2$NSGradientDrawsBeforeStartingLocation@1$NSGradientNone@0$NSGraphiteControlTint@6$NSGrayColorSpaceModel@0$NSGrayModeColorPanel@0$NSGrooveBorder@3$NSHSBModeColorPanel@3$NSHUDWindowMask@8192$NSHeavierFontAction@5$NSHelpButtonBezelStyle@9$NSHelpFunctionKey@63302$NSHelpKeyMask@4194304$NSHighlightModeMatrix@1$NSHomeFunctionKey@63273$NSHorizontalRuler@0$NSHourMinuteDatePickerElementFlag@12$NSHourMinuteSecondDatePickerElementFlag@14$NSIdentityMappingCharacterCollection@0$NSIllegalTextMovement@0$NSImageAbove@5$NSImageAlignBottom@5$NSImageAlignBottomLeft@6$NSImageAlignBottomRight@7$NSImageAlignCenter@0$NSImageAlignLeft@4$NSImageAlignRight@8$NSImageAlignTop@1$NSImageAlignTopLeft@2$NSImageAlignTopRight@3$NSImageBelow@4$NSImageCacheAlways@1$NSImageCacheBySize@2$NSImageCacheDefault@0$NSImageCacheNever@3$NSImageCellType@2$NSImageFrameButton@4$NSImageFrameGrayBezel@2$NSImageFrameGroove@3$NSImageFrameNone@0$NSImageFramePhoto@1$NSImageInterpolationDefault@0$NSImageInterpolationHigh@3$NSImageInterpolationLow@2$NSImageInterpolationMedium@4$NSImageInterpolationNone@1$NSImageLeft@2$NSImageLoadStatusCancelled@1$NSImageLoadStatusCompleted@0$NSImageLoadStatusInvalidData@2$NSImageLoadStatusReadError@4$NSImageLoadStatusUnexpectedEOF@3$NSImageOnly@1$NSImageOverlaps@6$NSImageRepLoadStatusCompleted@-6$NSImageRepLoadStatusInvalidData@-4$NSImageRepLoadStatusReadingHeader@-2$NSImageRepLoadStatusUnexpectedEOF@-5$NSImageRepLoadStatusUnknownType@-1$NSImageRepLoadStatusWillNeedAllData@-3$NSImageRepMatchesDevice@0$NSImageRight@3$NSImageScaleAxesIndependently@1$NSImageScaleNone@2$NSImageScaleProportionallyDown@0$NSImageScaleProportionallyUpOrDown@3$NSIndexedColorSpaceModel@5$NSInformationalAlertStyle@1$NSInformationalRequest@10$NSInlineBezelStyle@15$NSInsertCharFunctionKey@63293$NSInsertFunctionKey@63271$NSInsertLineFunctionKey@63291$NSIntType@1$NSItalicFontMask@1$NSJPEG2000FileType@5$NSJPEGFileType@3$NSJapaneseEUCGlyphPacking@1$NSJustifiedTextAlignment@3$NSKeyDown@10$NSKeyDownMask@1024$NSKeyUp@11$NSKeyUpMask@2048$NSLABColorSpaceModel@3$NSLandscapeOrientation@1$NSLayoutAttributeBaseline@11$NSLayoutAttributeBottom@4$NSLayoutAttributeCenterX@9$NSLayoutAttributeCenterY@10$NSLayoutAttributeHeight@8$NSLayoutAttributeLeading@5$NSLayoutAttributeLeft@1$NSLayoutAttributeNotAnAttribute@0$NSLayoutAttributeRight@2$NSLayoutAttributeTop@3$NSLayoutAttributeTrailing@6$NSLayoutAttributeWidth@7$NSLayoutCantFit@2$NSLayoutConstraintOrientationHorizontal@0$NSLayoutConstraintOrientationVertical@1$NSLayoutDone@1$NSLayoutFormatAlignAllBaseline@2048$NSLayoutFormatAlignAllBottom@16$NSLayoutFormatAlignAllCenterX@512$NSLayoutFormatAlignAllCenterY@1024$NSLayoutFormatAlignAllLeading@32$NSLayoutFormatAlignAllLeft@2$NSLayoutFormatAlignAllRight@4$NSLayoutFormatAlignAllTop@8$NSLayoutFormatAlignAllTrailing@64$NSLayoutFormatAlignmentMask@65535$NSLayoutFormatDirectionLeadingToTrailing@0$NSLayoutFormatDirectionLeftToRight@65536$NSLayoutFormatDirectionMask@196608$NSLayoutFormatDirectionRightToLeft@131072$NSLayoutLeftToRight@0$NSLayoutNotDone@0$NSLayoutOutOfGlyphs@3$NSLayoutPriorityDefaultHigh@750$NSLayoutPriorityDefaultLow@250$NSLayoutPriorityDragThatCanResizeWindow@510$NSLayoutPriorityDragThatCannotResizeWindow@490$NSLayoutPriorityFittingSizeCompression@50$NSLayoutPriorityRequired@1000$NSLayoutPriorityWindowSizeStayPut@500$NSLayoutRelationEqual@0$NSLayoutRelationGreaterThanOrEqual@1$NSLayoutRelationLessThanOrEqual@-1$NSLayoutRightToLeft@1$NSLeftArrowFunctionKey@63234$NSLeftMouseDown@1$NSLeftMouseDownMask@2$NSLeftMouseDragged@6$NSLeftMouseDraggedMask@64$NSLeftMouseUp@2$NSLeftMouseUpMask@4$NSLeftTabStopType@0$NSLeftTabsBezelBorder@1$NSLeftTextAlignment@0$NSLeftTextMovement@19$NSLighterFontAction@6$NSLineBorder@1$NSLineBreakByCharWrapping@1$NSLineBreakByClipping@2$NSLineBreakByTruncatingHead@3$NSLineBreakByTruncatingMiddle@5$NSLineBreakByTruncatingTail@4$NSLineBreakByWordWrapping@0$NSLineDoesntMove@0$NSLineMovesDown@3$NSLineMovesLeft@1$NSLineMovesRight@2$NSLineMovesUp@4$NSLineSeparatorCharacter@8232$NSLineSweepDown@2$NSLineSweepLeft@0$NSLineSweepRight@1$NSLineSweepUp@3$NSLineToBezierPathElement@1$NSLinearSlider@0$NSListModeMatrix@2$NSMacintoshInterfaceStyle@3$NSMainMenuWindowLevel@24$NSMenuFunctionKey@63285$NSMenuPropertyItemAccessibilityDescription@32$NSMenuPropertyItemAttributedTitle@2$NSMenuPropertyItemEnabled@16$NSMenuPropertyItemImage@8$NSMenuPropertyItemKeyEquivalent@4$NSMenuPropertyItemTitle@1$NSMiniControlSize@2$NSMiniaturizableWindowMask@4$NSMiterLineJoinStyle@0$NSMixedState@-1$NSModalPanelWindowLevel@8$NSModeSwitchFunctionKey@63303$NSMomentaryChangeButton@5$NSMomentaryLight@7$NSMomentaryLightButton@0$NSMomentaryPushButton@0$NSMomentaryPushInButton@7$NSMouseEntered@8$NSMouseEnteredMask@256$NSMouseEventSubtype@0$NSMouseExited@9$NSMouseExitedMask@512$NSMouseMoved@5$NSMouseMovedMask@32$NSMoveToBezierPathElement@0$NSNarrowFontMask@16$NSNativeShortGlyphPacking@5$NSNaturalTextAlignment@4$NSNewlineCharacter@10$NSNextFunctionKey@63296$NSNextStepInterfaceStyle@1$NSNoBorder@0$NSNoCellMask@0$NSNoFontChangeAction@0$NSNoImage@0$NSNoInterfaceStyle@0$NSNoModeColorPanel@-1$NSNoScrollerParts@0$NSNoTabsBezelBorder@4$NSNoTabsLineBorder@5$NSNoTabsNoBorder@6$NSNoTitle@0$NSNoUnderlineStyle@0$NSNonStandardCharacterSetFontMask@8$NSNonZeroWindingRule@0$NSNonactivatingPanelMask@128$NSNormalWindowLevel@0$NSNullCellType@0$NSNullGlyph@0$NSNumericPadKeyMask@2097152$NSOKButton@1$NSOPENGL_CURRENT_VERSION@1$NSOffState@0$NSOnOffButton@6$NSOnState@1$NSOneByteGlyphPacking@0$NSOnlyScrollerArrows@1$NSOpenGLCPCurrentRendererID@309$NSOpenGLCPGPUFragmentProcessing@311$NSOpenGLCPGPUVertexProcessing@310$NSOpenGLCPHasDrawable@314$NSOpenGLCPMPSwapsInFlight@315$NSOpenGLCPRasterizationEnable@221$NSOpenGLCPReclaimResources@308$NSOpenGLCPStateValidation@301$NSOpenGLCPSurfaceBackingSize@304$NSOpenGLCPSurfaceOpacity@236$NSOpenGLCPSurfaceOrder@235$NSOpenGLCPSurfaceSurfaceVolatile@306$NSOpenGLCPSwapInterval@222$NSOpenGLCPSwapRectangle@200$NSOpenGLCPSwapRectangleEnable@201$NSOpenGLGOClearFormatCache@502$NSOpenGLGOFormatCacheSize@501$NSOpenGLGOResetLibrary@504$NSOpenGLGORetainRenderers@503$NSOpenGLGOUseBuildCache@506$NSOpenGLPFAAccelerated@73$NSOpenGLPFAAcceleratedCompute@97$NSOpenGLPFAAccumSize@14$NSOpenGLPFAAllRenderers@1$NSOpenGLPFAAllowOfflineRenderers@96$NSOpenGLPFAAlphaSize@11$NSOpenGLPFAAuxBuffers@7$NSOpenGLPFAAuxDepthStencil@57$NSOpenGLPFABackingStore@76$NSOpenGLPFAClosestPolicy@74$NSOpenGLPFAColorFloat@58$NSOpenGLPFAColorSize@8$NSOpenGLPFACompliant@83$NSOpenGLPFADepthSize@12$NSOpenGLPFADoubleBuffer@5$NSOpenGLPFAFullScreen@54$NSOpenGLPFAMPSafe@78$NSOpenGLPFAMaximumPolicy@52$NSOpenGLPFAMinimumPolicy@51$NSOpenGLPFAMultiScreen@81$NSOpenGLPFAMultisample@59$NSOpenGLPFANoRecovery@72$NSOpenGLPFAOffScreen@53$NSOpenGLPFAOpenGLProfile@99$NSOpenGLPFAPixelBuffer@90$NSOpenGLPFARemotePixelBuffer@91$NSOpenGLPFARendererID@70$NSOpenGLPFARobust@75$NSOpenGLPFASampleAlpha@61$NSOpenGLPFASampleBuffers@55$NSOpenGLPFASamples@56$NSOpenGLPFAScreenMask@84$NSOpenGLPFASingleRenderer@71$NSOpenGLPFAStencilSize@13$NSOpenGLPFAStereo@6$NSOpenGLPFASupersample@60$NSOpenGLPFATripleBuffer@3$NSOpenGLPFAVirtualScreenCount@128$NSOpenGLPFAWindow@80$NSOpenGLProfileVersion3_2Core@12800$NSOpenGLProfileVersionLegacy@4096$NSOtherMouseDown@25$NSOtherMouseDownMask@33554432$NSOtherMouseDragged@27$NSOtherMouseDraggedMask@134217728$NSOtherMouseUp@26$NSOtherMouseUpMask@67108864$NSOtherTextMovement@0$NSOutlineViewDropOnItemIndex@-1$NSPNGFileType@4$NSPageControllerTransitionStyleHorizontalStrip@2$NSPageControllerTransitionStyleStackBook@1$NSPageControllerTransitionStyleStackHistory@0$NSPageDownFunctionKey@63277$NSPageUpFunctionKey@63276$NSParagraphSeparatorCharacter@8233$NSPasteboardReadingAsData@0$NSPasteboardReadingAsKeyedArchive@4$NSPasteboardReadingAsPropertyList@2$NSPasteboardReadingAsString@1$NSPasteboardWritingPromised@512$NSPathStyleNavigationBar@1$NSPathStylePopUp@2$NSPathStyleStandard@0$NSPatternColorSpaceModel@6$NSPauseFunctionKey@63280$NSPenLowerSideMask@2$NSPenPointingDevice@1$NSPenTipMask@1$NSPenUpperSideMask@4$NSPeriodic@16$NSPeriodicMask@65536$NSPlainTextTokenStyle@1$NSPopUpArrowAtBottom@2$NSPopUpArrowAtCenter@1$NSPopUpMenuWindowLevel@101$NSPopUpNoArrow@0$NSPopoverAppearanceHUD@1$NSPopoverAppearanceMinimal@0$NSPopoverBehaviorApplicationDefined@0$NSPopoverBehaviorSemitransient@2$NSPopoverBehaviorTransient@1$NSPortraitOrientation@0$NSPositiveDoubleType@7$NSPositiveFloatType@4$NSPositiveIntType@2$NSPosterFontMask@256$NSPowerOffEventType@1$NSPressedTab@2$NSPrevFunctionKey@63295$NSPrintFunctionKey@63288$NSPrintPanelShowsCopies@1$NSPrintPanelShowsOrientation@8$NSPrintPanelShowsPageRange@2$NSPrintPanelShowsPageSetupAccessory@256$NSPrintPanelShowsPaperSize@4$NSPrintPanelShowsPreview@131072$NSPrintPanelShowsPrintSelection@32$NSPrintPanelShowsScaling@16$NSPrintRenderingQualityBest@0$NSPrintRenderingQualityResponsive@1$NSPrintScreenFunctionKey@63278$NSPrinterTableError@2$NSPrinterTableNotFound@1$NSPrinterTableOK@0$NSPrintingCancelled@0$NSPrintingFailure@3$NSPrintingReplyLater@2$NSPrintingSuccess@1$NSProgressIndicatorBarStyle@0$NSProgressIndicatorPreferredAquaThickness@12$NSProgressIndicatorPreferredLargeThickness@18$NSProgressIndicatorPreferredSmallThickness@10$NSProgressIndicatorPreferredThickness@14$NSProgressIndicatorSpinningStyle@1$NSPushInCell@2$NSPushInCellMask@2$NSPushOnPushOffButton@1$NSQTMovieLoopingBackAndForthPlayback@2$NSQTMovieLoopingPlayback@1$NSQTMovieNormalPlayback@0$NSRGBColorSpaceModel@1$NSRGBModeColorPanel@1$NSRadioButton@4$NSRadioModeMatrix@0$NSRangeDateMode@1$NSRatingLevelIndicatorStyle@3$NSRecessedBezelStyle@13$NSRedoFunctionKey@63300$NSRegularControlSize@0$NSRegularSquareBezelStyle@2$NSRelevancyLevelIndicatorStyle@0$NSRemoteNotificationTypeAlert@4$NSRemoteNotificationTypeBadge@1$NSRemoteNotificationTypeNone@0$NSRemoteNotificationTypeSound@2$NSRemoveTraitFontAction@7$NSResetCursorRectsRunLoopOrdering@700000$NSResetFunctionKey@63283$NSResizableWindowMask@8$NSReturnTextMovement@16$NSRightArrowFunctionKey@63235$NSRightMouseDown@3$NSRightMouseDownMask@8$NSRightMouseDragged@7$NSRightMouseDraggedMask@128$NSRightMouseUp@4$NSRightMouseUpMask@16$NSRightTabStopType@1$NSRightTabsBezelBorder@3$NSRightTextAlignment@1$NSRightTextMovement@20$NSRoundLineCapStyle@1$NSRoundLineJoinStyle@1$NSRoundRectBezelStyle@12$NSRoundedBezelStyle@1$NSRoundedDisclosureBezelStyle@14$NSRoundedTokenStyle@2$NSRuleEditorNestingModeCompound@2$NSRuleEditorNestingModeList@1$NSRuleEditorNestingModeSimple@3$NSRuleEditorNestingModeSingle@0$NSRuleEditorRowTypeCompound@1$NSRuleEditorRowTypeSimple@0$NSRunAbortedResponse@-1001$NSRunContinuesResponse@-1002$NSRunStoppedResponse@-1000$NSSaveAsOperation@1$NSSaveOperation@0$NSSaveToOperation@2$NSScaleNone@2$NSScaleProportionally@0$NSScaleToFit@1$NSScreenChangedEventType@8$NSScreenSaverWindowLevel@1000$NSScrollElasticityAllowed@2$NSScrollElasticityAutomatic@0$NSScrollElasticityNone@1$NSScrollLockFunctionKey@63279$NSScrollViewFindBarPositionAboveContent@1$NSScrollViewFindBarPositionAboveHorizontalRuler@0$NSScrollViewFindBarPositionBelowContent@2$NSScrollWheel@22$NSScrollWheelMask@4194304$NSScrollerArrowsDefaultSetting@0$NSScrollerArrowsMaxEnd@0$NSScrollerArrowsMinEnd@1$NSScrollerArrowsNone@2$NSScrollerDecrementArrow@1$NSScrollerDecrementLine@4$NSScrollerDecrementPage@1$NSScrollerIncrementArrow@0$NSScrollerIncrementLine@5$NSScrollerIncrementPage@3$NSScrollerKnob@2$NSScrollerKnobSlot@6$NSScrollerKnobStyleDark@1$NSScrollerKnobStyleDefault@0$NSScrollerKnobStyleLight@2$NSScrollerNoPart@0$NSScrollerStyleLegacy@0$NSScrollerStyleOverlay@1$NSSearchFieldClearRecentsMenuItemTag@1002$NSSearchFieldNoRecentsMenuItemTag@1003$NSSearchFieldRecentsMenuItemTag@1001$NSSearchFieldRecentsTitleMenuItemTag@1000$NSSegmentStyleAutomatic@0$NSSegmentStyleCapsule@5$NSSegmentStyleRoundRect@3$NSSegmentStyleRounded@1$NSSegmentStyleSmallSquare@6$NSSegmentStyleTexturedRounded@2$NSSegmentStyleTexturedSquare@4$NSSegmentSwitchTrackingMomentary@2$NSSegmentSwitchTrackingSelectAny@1$NSSegmentSwitchTrackingSelectOne@0$NSSelectByCharacter@0$NSSelectByParagraph@2$NSSelectByWord@1$NSSelectFunctionKey@63297$NSSelectedTab@0$NSSelectingNext@1$NSSelectingPrevious@2$NSSelectionAffinityDownstream@1$NSSelectionAffinityUpstream@0$NSServiceApplicationLaunchFailedError@66561$NSServiceApplicationNotFoundError@66560$NSServiceErrorMaximum@66817$NSServiceErrorMinimum@66560$NSServiceInvalidPasteboardDataError@66563$NSServiceMalformedServiceDictionaryError@66564$NSServiceMiscellaneousError@66800$NSServiceRequestTimedOutError@66562$NSShadowlessSquareBezelStyle@6$NSSharingContentScopeFull@2$NSSharingContentScopeItem@0$NSSharingContentScopePartial@1$NSShiftKeyMask@131072$NSShowControlGlyphs@1$NSShowInvisibleGlyphs@2$NSSingleDateMode@0$NSSingleUnderlineStyle@1$NSSizeDownFontAction@4$NSSizeUpFontAction@3$NSSmallCapsFontMask@128$NSSmallControlSize@1$NSSmallIconButtonBezelStyle@2$NSSmallSquareBezelStyle@10$NSSpecialPageOrder@0$NSSpeechImmediateBoundary@0$NSSpeechSentenceBoundary@2$NSSpeechWordBoundary@1$NSSpellingStateGrammarFlag@2$NSSpellingStateSpellingFlag@1$NSSplitViewDividerStylePaneSplitter@3$NSSplitViewDividerStyleThick@1$NSSplitViewDividerStyleThin@2$NSSquareLineCapStyle@2$NSSquareStatusItemLength@-2$NSStatusWindowLevel@25$NSStopFunctionKey@63284$NSStringDrawingDisableScreenFontSubstitution@4$NSStringDrawingOneShot@16$NSStringDrawingTruncatesLastVisibleLine@32$NSStringDrawingUsesDeviceMetrics@8$NSStringDrawingUsesFontLeading@2$NSStringDrawingUsesLineFragmentOrigin@1$NSSubmenuWindowLevel@3$NSSwitchButton@3$NSSysReqFunctionKey@63281$NSSystemDefined@14$NSSystemDefinedMask@16384$NSSystemFunctionKey@63287$NSTIFFCompressionCCITTFAX3@3$NSTIFFCompressionCCITTFAX4@4$NSTIFFCompressionJPEG@6$NSTIFFCompressionLZW@5$NSTIFFCompressionNEXT@32766$NSTIFFCompressionNone@1$NSTIFFCompressionOldJPEG@32865$NSTIFFCompressionPackBits@32773$NSTIFFFileType@0$NSTabCharacter@9$NSTabTextMovement@17$NSTableColumnAutoresizingMask@1$NSTableColumnNoResizing@0$NSTableColumnUserResizingMask@2$NSTableViewAnimationEffectFade@1$NSTableViewAnimationEffectGap@2$NSTableViewAnimationEffectNone@0$NSTableViewAnimationSlideDown@32$NSTableViewAnimationSlideLeft@48$NSTableViewAnimationSlideRight@64$NSTableViewAnimationSlideUp@16$NSTableViewDashedHorizontalGridLineMask@8$NSTableViewDraggingDestinationFeedbackStyleNone@-1$NSTableViewDraggingDestinationFeedbackStyleRegular@0$NSTableViewDraggingDestinationFeedbackStyleSourceList@1$NSTableViewDropAbove@1$NSTableViewDropOn@0$NSTableViewFirstColumnOnlyAutoresizingStyle@5$NSTableViewGridNone@0$NSTableViewLastColumnOnlyAutoresizingStyle@4$NSTableViewNoColumnAutoresizing@0$NSTableViewReverseSequentialColumnAutoresizingStyle@3$NSTableViewRowSizeStyleCustom@0$NSTableViewRowSizeStyleDefault@-1$NSTableViewRowSizeStyleLarge@3$NSTableViewRowSizeStyleMedium@2$NSTableViewRowSizeStyleSmall@1$NSTableViewSelectionHighlightStyleNone@-1$NSTableViewSelectionHighlightStyleRegular@0$NSTableViewSelectionHighlightStyleSourceList@1$NSTableViewSequentialColumnAutoresizingStyle@2$NSTableViewSolidHorizontalGridLineMask@2$NSTableViewSolidVerticalGridLineMask@1$NSTableViewUniformColumnAutoresizingStyle@1$NSTabletPoint@23$NSTabletPointEventSubtype@1$NSTabletPointMask@8388608$NSTabletProximity@24$NSTabletProximityEventSubtype@2$NSTabletProximityMask@16777216$NSTerminateCancel@0$NSTerminateLater@2$NSTerminateNow@1$NSTextBlockAbsoluteValueType@0$NSTextBlockBaselineAlignment@3$NSTextBlockBorder@0$NSTextBlockBottomAlignment@2$NSTextBlockHeight@4$NSTextBlockMargin@1$NSTextBlockMaximumHeight@6$NSTextBlockMaximumWidth@2$NSTextBlockMiddleAlignment@1$NSTextBlockMinimumHeight@5$NSTextBlockMinimumWidth@1$NSTextBlockPadding@-1$NSTextBlockPercentageValueType@1$NSTextBlockTopAlignment@0$NSTextBlockWidth@0$NSTextCellType@1$NSTextFieldAndStepperDatePickerStyle@0$NSTextFieldDatePickerStyle@2$NSTextFieldRoundedBezel@1$NSTextFieldSquareBezel@0$NSTextFinderActionHideFindInterface@11$NSTextFinderActionHideReplaceInterface@13$NSTextFinderActionNextMatch@2$NSTextFinderActionPreviousMatch@3$NSTextFinderActionReplace@5$NSTextFinderActionReplaceAll@4$NSTextFinderActionReplaceAllInSelection@8$NSTextFinderActionReplaceAndFind@6$NSTextFinderActionSelectAll@9$NSTextFinderActionSelectAllInSelection@10$NSTextFinderActionSetSearchString@7$NSTextFinderActionShowFindInterface@1$NSTextFinderActionShowReplaceInterface@12$NSTextFinderMatchingTypeContains@0$NSTextFinderMatchingTypeEndsWith@3$NSTextFinderMatchingTypeFullWord@2$NSTextFinderMatchingTypeStartsWith@1$NSTextLayoutOrientationHorizontal@0$NSTextLayoutOrientationVertical@1$NSTextListPrependEnclosingMarker@1$NSTextReadInapplicableDocumentTypeError@65806$NSTextReadWriteErrorMaximum@66303$NSTextReadWriteErrorMinimum@65792$NSTextStorageEditedAttributes@1$NSTextStorageEditedCharacters@2$NSTextTableAutomaticLayoutAlgorithm@0$NSTextTableFixedLayoutAlgorithm@1$NSTextWriteInapplicableDocumentTypeError@66062$NSTextWritingDirectionEmbedding@0$NSTextWritingDirectionOverride@2$NSTexturedBackgroundWindowMask@256$NSTexturedRoundedBezelStyle@11$NSTexturedSquareBezelStyle@8$NSThickSquareBezelStyle@3$NSThickerSquareBezelStyle@4$NSTickMarkAbove@1$NSTickMarkBelow@0$NSTickMarkLeft@1$NSTickMarkRight@0$NSTimeZoneDatePickerElementFlag@16$NSTitledWindowMask@1$NSToggleButton@2$NSToolbarDisplayModeDefault@0$NSToolbarDisplayModeIconAndLabel@1$NSToolbarDisplayModeIconOnly@2$NSToolbarDisplayModeLabelOnly@3$NSToolbarItemVisibilityPriorityHigh@1000$NSToolbarItemVisibilityPriorityLow@-1000$NSToolbarItemVisibilityPriorityStandard@0$NSToolbarItemVisibilityPriorityUser@2000$NSToolbarSizeModeDefault@0$NSToolbarSizeModeRegular@1$NSToolbarSizeModeSmall@2$NSTopTabsBezelBorder@0$NSTornOffMenuWindowLevel@3$NSTouchEventSubtype@3$NSTouchPhaseBegan@1$NSTouchPhaseCancelled@16$NSTouchPhaseEnded@8$NSTouchPhaseMoved@2$NSTouchPhaseStationary@4$NSTouchPhaseTouching@7$NSTrackModeMatrix@3$NSTrackingActiveAlways@128$NSTrackingActiveInActiveApp@64$NSTrackingActiveInKeyWindow@32$NSTrackingActiveWhenFirstResponder@16$NSTrackingAssumeInside@256$NSTrackingCursorUpdate@4$NSTrackingEnabledDuringMouseDrag@1024$NSTrackingInVisibleRect@512$NSTrackingMouseEnteredAndExited@1$NSTrackingMouseMoved@2$NSTwoByteGlyphPacking@3$NSTypesetterBehavior_10_2@2$NSTypesetterBehavior_10_2_WithCompatibility@1$NSTypesetterBehavior_10_3@3$NSTypesetterBehavior_10_4@4$NSTypesetterContainerBreakAction@32$NSTypesetterHorizontalTabAction@4$NSTypesetterLatestBehavior@-1$NSTypesetterLineBreakAction@8$NSTypesetterOriginalBehavior@0$NSTypesetterParagraphBreakAction@16$NSTypesetterWhitespaceAction@2$NSTypesetterZeroAdvancementAction@1$NSUnboldFontMask@4$NSUnderlinePatternDash@512$NSUnderlinePatternDashDot@768$NSUnderlinePatternDashDotDot@1024$NSUnderlinePatternDot@256$NSUnderlinePatternSolid@0$NSUnderlineStyleDouble@9$NSUnderlineStyleNone@0$NSUnderlineStyleSingle@1$NSUnderlineStyleThick@2$NSUndoFunctionKey@63299$NSUnifiedTitleAndToolbarWindowMask@4096$NSUnitalicFontMask@16777216$NSUnknownColorSpaceModel@-1$NSUnknownPageOrder@2$NSUnknownPointingDevice@0$NSUnscaledWindowMask@2048$NSUpArrowFunctionKey@63232$NSUpTextMovement@21$NSUpdateWindowsRunLoopOrdering@500000$NSUserFunctionKey@63286$NSUserInterfaceLayoutDirectionLeftToRight@0$NSUserInterfaceLayoutDirectionRightToLeft@1$NSUtilityWindowMask@16$NSVariableStatusItemLength@-1$NSVerticalRuler@1$NSViaPanelFontAction@1$NSViewHeightSizable@16$NSViewLayerContentsPlacementBottom@8$NSViewLayerContentsPlacementBottomLeft@9$NSViewLayerContentsPlacementBottomRight@7$NSViewLayerContentsPlacementCenter@3$NSViewLayerContentsPlacementLeft@10$NSViewLayerContentsPlacementRight@6$NSViewLayerContentsPlacementScaleAxesIndependently@0$NSViewLayerContentsPlacementScaleProportionallyToFill@2$NSViewLayerContentsPlacementScaleProportionallyToFit@1$NSViewLayerContentsPlacementTop@4$NSViewLayerContentsPlacementTopLeft@11$NSViewLayerContentsPlacementTopRight@5$NSViewLayerContentsRedrawBeforeViewResize@3$NSViewLayerContentsRedrawDuringViewResize@2$NSViewLayerContentsRedrawNever@0$NSViewLayerContentsRedrawOnSetNeedsDisplay@1$NSViewMaxXMargin@4$NSViewMaxYMargin@32$NSViewMinXMargin@1$NSViewMinYMargin@8$NSViewNotSizable@0$NSViewWidthSizable@2$NSWantsBidiLevels@4$NSWarningAlertStyle@0$NSWheelModeColorPanel@6$NSWindowAbove@1$NSWindowAnimationBehaviorAlertPanel@5$NSWindowAnimationBehaviorDefault@0$NSWindowAnimationBehaviorDocumentWindow@3$NSWindowAnimationBehaviorNone@2$NSWindowAnimationBehaviorUtilityWindow@4$NSWindowBackingLocationDefault@0$NSWindowBackingLocationMainMemory@2$NSWindowBackingLocationVideoMemory@1$NSWindowBelow@-1$NSWindowCloseButton@0$NSWindowCollectionBehaviorCanJoinAllSpaces@1$NSWindowCollectionBehaviorDefault@0$NSWindowCollectionBehaviorFullScreenAuxiliary@256$NSWindowCollectionBehaviorFullScreenPrimary@128$NSWindowCollectionBehaviorIgnoresCycle@64$NSWindowCollectionBehaviorManaged@4$NSWindowCollectionBehaviorMoveToActiveSpace@2$NSWindowCollectionBehaviorParticipatesInCycle@32$NSWindowCollectionBehaviorStationary@16$NSWindowCollectionBehaviorTransient@8$NSWindowDepthOnehundredtwentyeightBitRGB@544$NSWindowDepthSixtyfourBitRGB@528$NSWindowDepthTwentyfourBitRGB@520$NSWindowDocumentIconButton@4$NSWindowDocumentVersionsButton@6$NSWindowExposedEventType@0$NSWindowFullScreenButton@7$NSWindowMiniaturizeButton@1$NSWindowMovedEventType@4$NSWindowNumberListAllApplications@1$NSWindowNumberListAllSpaces@16$NSWindowOut@0$NSWindowSharingNone@0$NSWindowSharingReadOnly@1$NSWindowSharingReadWrite@2$NSWindowToolbarButton@3$NSWindowZoomButton@2$NSWindows95InterfaceStyle@2$NSWorkspaceLaunchAllowingClassicStartup@131072$NSWorkspaceLaunchAndHide@1048576$NSWorkspaceLaunchAndHideOthers@2097152$NSWorkspaceLaunchAndPrint@2$NSWorkspaceLaunchAsync@65536$NSWorkspaceLaunchDefault@196608$NSWorkspaceLaunchInhibitingBackgroundOnly@128$NSWorkspaceLaunchNewInstance@524288$NSWorkspaceLaunchPreferringClassic@262144$NSWorkspaceLaunchWithoutActivation@512$NSWorkspaceLaunchWithoutAddingToRecents@256$NSWritingDirectionLeftToRight@0$NSWritingDirectionNatural@-1$NSWritingDirectionRightToLeft@1$NSYearMonthDatePickerElementFlag@192$NSYearMonthDayDatePickerElementFlag@224$NumGlyphsToGetEachTime@20$' >>> _metadata.misc.keys() ['NSAppKitVersionNumber10_4_1', 'NSAppKitVersionNumber10_4_3', 'NSAppKitVersionNumber10_3_9', 'NSAppKitVersionNumber10_4_4', 'NSAppKitVersionNumber10_4_7', 'NSAppKitVersionNumber10_3_2', 'NSAppKitVersionNumber10_3_3', 'NSAppKitVersionNumberWithDeferredWindowDisplaySupport', 'NSOpenGLContextAuxiliary', 'NSAppKitVersionNumber10_3_7', 'NSAppKitVersionNumber10_3_5', 'NSOpenGLPixelFormatAuxiliary', 'NSAppKitVersionNumberWithDockTilePlugInSupport', 'NSAppKitVersionNumberWithCursorSizeSupport', 'NSAppKitVersionNumberWithContinuousScrollingBrowser', 'NSAppKitVersionNumber10_5_2', 'NSAppKitVersionNumber10_5_3', 'NSAppKitVersionNumberWithCustomSheetPosition', 'NSAttachmentCharacter', 'NSBaselineNotSet', 'NSEdgeInsets', 'NSAppKitVersionNumberWithDirectionalTabs', 'NSAppKitVersionNumberWithPatternColorLeakFix', 'NSScreenAuxiliaryOpaque', 'NSModalSession', 'NSAnyEventMask', 'NSAppKitVersionNumber10_7_2', 'NSAppKitVersionNumber10_2_3', 'NSAppKitVersionNumberWithColumnResizingBrowser', 'NSTouchPhaseAny', 'NSDragOperationEvery'] >>> _metadata.r >>> _metadata.constants '$NSAFMAscender$NSAFMCapHeight$NSAFMCharacterSet$NSAFMDescender$NSAFMEncodingScheme$NSAFMFamilyName$NSAFMFontName$NSAFMFormatVersion$NSAFMFullName$NSAFMItalicAngle$NSAFMMappingScheme$NSAFMNotice$NSAFMUnderlinePosition$NSAFMUnderlineThickness$NSAFMVersion$NSAFMWeight$NSAFMXHeight$NSAbortModalException$NSAbortPrintingException$NSAccessibilityAllowedValuesAttribute$NSAccessibilityApplicationActivatedNotification$NSAccessibilityApplicationDeactivatedNotification$NSAccessibilityApplicationHiddenNotification$NSAccessibilityApplicationRole$NSAccessibilityApplicationShownNotification$NSAccessibilityAscendingSortDirectionValue$NSAccessibilityAttachmentTextAttribute$NSAccessibilityAttributedStringForRangeParameterizedAttribute$NSAccessibilityAutocorrectedTextAttribute$NSAccessibilityBackgroundColorTextAttribute$NSAccessibilityBoundsForRangeParameterizedAttribute$NSAccessibilityBrowserRole$NSAccessibilityBusyIndicatorRole$NSAccessibilityButtonRole$NSAccessibilityCancelAction$NSAccessibilityCancelButtonAttribute$NSAccessibilityCellForColumnAndRowParameterizedAttribute$NSAccessibilityCellRole$NSAccessibilityCenterTabStopMarkerTypeValue$NSAccessibilityCentimetersUnitValue$NSAccessibilityCheckBoxRole$NSAccessibilityChildrenAttribute$NSAccessibilityClearButtonAttribute$NSAccessibilityCloseButtonAttribute$NSAccessibilityCloseButtonSubrole$NSAccessibilityColorWellRole$NSAccessibilityColumnCountAttribute$NSAccessibilityColumnHeaderUIElementsAttribute$NSAccessibilityColumnIndexRangeAttribute$NSAccessibilityColumnRole$NSAccessibilityColumnTitlesAttribute$NSAccessibilityColumnsAttribute$NSAccessibilityComboBoxRole$NSAccessibilityConfirmAction$NSAccessibilityContentListSubrole$NSAccessibilityContentsAttribute$NSAccessibilityCreatedNotification$NSAccessibilityCriticalValueAttribute$NSAccessibilityDecimalTabStopMarkerTypeValue$NSAccessibilityDecrementAction$NSAccessibilityDecrementArrowSubrole$NSAccessibilityDecrementButtonAttribute$NSAccessibilityDecrementPageSubrole$NSAccessibilityDefaultButtonAttribute$NSAccessibilityDefinitionListSubrole$NSAccessibilityDeleteAction$NSAccessibilityDescendingSortDirectionValue$NSAccessibilityDescriptionAttribute$NSAccessibilityDialogSubrole$NSAccessibilityDisclosedByRowAttribute$NSAccessibilityDisclosedRowsAttribute$NSAccessibilityDisclosingAttribute$NSAccessibilityDisclosureLevelAttribute$NSAccessibilityDisclosureTriangleRole$NSAccessibilityDocumentAttribute$NSAccessibilityDrawerCreatedNotification$NSAccessibilityDrawerRole$NSAccessibilityEditedAttribute$NSAccessibilityEnabledAttribute$NSAccessibilityErrorCodeExceptionInfo$NSAccessibilityException$NSAccessibilityExpandedAttribute$NSAccessibilityExtrasMenuBarAttribute$NSAccessibilityFilenameAttribute$NSAccessibilityFirstLineIndentMarkerTypeValue$NSAccessibilityFloatingWindowSubrole$NSAccessibilityFocusedAttribute$NSAccessibilityFocusedUIElementAttribute$NSAccessibilityFocusedUIElementChangedNotification$NSAccessibilityFocusedWindowAttribute$NSAccessibilityFocusedWindowChangedNotification$NSAccessibilityFontFamilyKey$NSAccessibilityFontNameKey$NSAccessibilityFontSizeKey$NSAccessibilityFontTextAttribute$NSAccessibilityForegroundColorTextAttribute$NSAccessibilityFrontmostAttribute$NSAccessibilityFullScreenButtonAttribute$NSAccessibilityFullScreenButtonSubrole$NSAccessibilityGridRole$NSAccessibilityGroupRole$NSAccessibilityGrowAreaAttribute$NSAccessibilityGrowAreaRole$NSAccessibilityHandleRole$NSAccessibilityHandlesAttribute$NSAccessibilityHeadIndentMarkerTypeValue$NSAccessibilityHeaderAttribute$NSAccessibilityHelpAttribute$NSAccessibilityHelpTagCreatedNotification$NSAccessibilityHelpTagRole$NSAccessibilityHiddenAttribute$NSAccessibilityHorizontalOrientationValue$NSAccessibilityHorizontalScrollBarAttribute$NSAccessibilityHorizontalUnitDescriptionAttribute$NSAccessibilityHorizontalUnitsAttribute$NSAccessibilityHorizontialUnitDescriptionAttribute$NSAccessibilityHorizontialUnitsAttribute$NSAccessibilityIdentifierAttribute$NSAccessibilityImageRole$NSAccessibilityInchesUnitValue$NSAccessibilityIncrementAction$NSAccessibilityIncrementArrowSubrole$NSAccessibilityIncrementButtonAttribute$NSAccessibilityIncrementPageSubrole$NSAccessibilityIncrementorRole$NSAccessibilityIndexAttribute$NSAccessibilityInsertionPointLineNumberAttribute$NSAccessibilityLabelUIElementsAttribute$NSAccessibilityLabelValueAttribute$NSAccessibilityLayoutAreaRole$NSAccessibilityLayoutItemRole$NSAccessibilityLayoutPointForScreenPointParameterizedAttribute$NSAccessibilityLayoutSizeForScreenSizeParameterizedAttribute$NSAccessibilityLeftTabStopMarkerTypeValue$NSAccessibilityLevelIndicatorRole$NSAccessibilityLineForIndexParameterizedAttribute$NSAccessibilityLinkRole$NSAccessibilityLinkTextAttribute$NSAccessibilityLinkedUIElementsAttribute$NSAccessibilityListRole$NSAccessibilityMainAttribute$NSAccessibilityMainWindowAttribute$NSAccessibilityMainWindowChangedNotification$NSAccessibilityMarkerGroupUIElementAttribute$NSAccessibilityMarkerTypeAttribute$NSAccessibilityMarkerTypeDescriptionAttribute$NSAccessibilityMarkerUIElementsAttribute$NSAccessibilityMarkerValuesAttribute$NSAccessibilityMatteContentUIElementAttribute$NSAccessibilityMatteHoleAttribute$NSAccessibilityMatteRole$NSAccessibilityMaxValueAttribute$NSAccessibilityMenuBarAttribute$NSAccessibilityMenuBarRole$NSAccessibilityMenuButtonRole$NSAccessibilityMenuItemRole$NSAccessibilityMenuRole$NSAccessibilityMinValueAttribute$NSAccessibilityMinimizeButtonAttribute$NSAccessibilityMinimizeButtonSubrole$NSAccessibilityMinimizedAttribute$NSAccessibilityMisspelledTextAttribute$NSAccessibilityModalAttribute$NSAccessibilityMovedNotification$NSAccessibilityNextContentsAttribute$NSAccessibilityNumberOfCharactersAttribute$NSAccessibilityOrderedByRowAttribute$NSAccessibilityOrientationAttribute$NSAccessibilityOutlineRole$NSAccessibilityOutlineRowSubrole$NSAccessibilityOverflowButtonAttribute$NSAccessibilityParentAttribute$NSAccessibilityPicasUnitValue$NSAccessibilityPickAction$NSAccessibilityPlaceholderValueAttribute$NSAccessibilityPointsUnitValue$NSAccessibilityPopUpButtonRole$NSAccessibilityPopoverRole$NSAccessibilityPositionAttribute$NSAccessibilityPressAction$NSAccessibilityPreviousContentsAttribute$NSAccessibilityProgressIndicatorRole$NSAccessibilityProxyAttribute$NSAccessibilityRTFForRangeParameterizedAttribute$NSAccessibilityRadioButtonRole$NSAccessibilityRadioGroupRole$NSAccessibilityRaiseAction$NSAccessibilityRangeForIndexParameterizedAttribute$NSAccessibilityRangeForLineParameterizedAttribute$NSAccessibilityRangeForPositionParameterizedAttribute$NSAccessibilityRatingIndicatorSubrole$NSAccessibilityRelevanceIndicatorRole$NSAccessibilityResizedNotification$NSAccessibilityRightTabStopMarkerTypeValue$NSAccessibilityRoleAttribute$NSAccessibilityRoleDescriptionAttribute$NSAccessibilityRowCollapsedNotification$NSAccessibilityRowCountAttribute$NSAccessibilityRowCountChangedNotification$NSAccessibilityRowExpandedNotification$NSAccessibilityRowHeaderUIElementsAttribute$NSAccessibilityRowIndexRangeAttribute$NSAccessibilityRowRole$NSAccessibilityRowsAttribute$NSAccessibilityRulerMarkerRole$NSAccessibilityRulerRole$NSAccessibilityScreenPointForLayoutPointParameterizedAttribute$NSAccessibilityScreenSizeForLayoutSizeParameterizedAttribute$NSAccessibilityScrollAreaRole$NSAccessibilityScrollBarRole$NSAccessibilitySearchButtonAttribute$NSAccessibilitySearchFieldSubrole$NSAccessibilitySearchMenuAttribute$NSAccessibilitySecureTextFieldSubrole$NSAccessibilitySelectedAttribute$NSAccessibilitySelectedCellsAttribute$NSAccessibilitySelectedCellsChangedNotification$NSAccessibilitySelectedChildrenAttribute$NSAccessibilitySelectedChildrenChangedNotification$NSAccessibilitySelectedChildrenMovedNotification$NSAccessibilitySelectedColumnsAttribute$NSAccessibilitySelectedColumnsChangedNotification$NSAccessibilitySelectedRowsAttribute$NSAccessibilitySelectedRowsChangedNotification$NSAccessibilitySelectedTextAttribute$NSAccessibilitySelectedTextChangedNotification$NSAccessibilitySelectedTextRangeAttribute$NSAccessibilitySelectedTextRangesAttribute$NSAccessibilityServesAsTitleForUIElementsAttribute$NSAccessibilityShadowTextAttribute$NSAccessibilitySharedCharacterRangeAttribute$NSAccessibilitySharedTextUIElementsAttribute$NSAccessibilitySheetCreatedNotification$NSAccessibilitySheetRole$NSAccessibilityShowMenuAction$NSAccessibilityShownMenuAttribute$NSAccessibilitySizeAttribute$NSAccessibilitySliderRole$NSAccessibilitySortButtonRole$NSAccessibilitySortButtonSubrole$NSAccessibilitySortDirectionAttribute$NSAccessibilitySplitGroupRole$NSAccessibilitySplitterRole$NSAccessibilitySplittersAttribute$NSAccessibilityStandardWindowSubrole$NSAccessibilityStaticTextRole$NSAccessibilityStrikethroughColorTextAttribute$NSAccessibilityStrikethroughTextAttribute$NSAccessibilityStringForRangeParameterizedAttribute$NSAccessibilityStyleRangeForIndexParameterizedAttribute$NSAccessibilitySubroleAttribute$NSAccessibilitySuperscriptTextAttribute$NSAccessibilitySystemDialogSubrole$NSAccessibilitySystemFloatingWindowSubrole$NSAccessibilitySystemWideRole$NSAccessibilityTabGroupRole$NSAccessibilityTableRole$NSAccessibilityTableRowSubrole$NSAccessibilityTabsAttribute$NSAccessibilityTailIndentMarkerTypeValue$NSAccessibilityTextAreaRole$NSAccessibilityTextAttachmentSubrole$NSAccessibilityTextFieldRole$NSAccessibilityTextLinkSubrole$NSAccessibilityTimelineSubrole$NSAccessibilityTitleAttribute$NSAccessibilityTitleChangedNotification$NSAccessibilityTitleUIElementAttribute$NSAccessibilityToolbarButtonAttribute$NSAccessibilityToolbarButtonSubrole$NSAccessibilityToolbarRole$NSAccessibilityTopLevelUIElementAttribute$NSAccessibilityUIElementDestroyedNotification$NSAccessibilityURLAttribute$NSAccessibilityUnderlineColorTextAttribute$NSAccessibilityUnderlineTextAttribute$NSAccessibilityUnitDescriptionAttribute$NSAccessibilityUnitsAttribute$NSAccessibilityUnitsChangedNotification$NSAccessibilityUnknownMarkerTypeValue$NSAccessibilityUnknownOrientationValue$NSAccessibilityUnknownRole$NSAccessibilityUnknownSortDirectionValue$NSAccessibilityUnknownSubrole$NSAccessibilityUnknownUnitValue$NSAccessibilityValueAttribute$NSAccessibilityValueChangedNotification$NSAccessibilityValueDescriptionAttribute$NSAccessibilityValueIndicatorRole$NSAccessibilityVerticalOrientationValue$NSAccessibilityVerticalScrollBarAttribute$NSAccessibilityVerticalUnitDescriptionAttribute$NSAccessibilityVerticalUnitsAttribute$NSAccessibilityVisibleCellsAttribute$NSAccessibilityVisibleCharacterRangeAttribute$NSAccessibilityVisibleChildrenAttribute$NSAccessibilityVisibleColumnsAttribute$NSAccessibilityVisibleNameKey$NSAccessibilityVisibleRowsAttribute$NSAccessibilityWarningValueAttribute$NSAccessibilityWindowAttribute$NSAccessibilityWindowCreatedNotification$NSAccessibilityWindowDeminiaturizedNotification$NSAccessibilityWindowMiniaturizedNotification$NSAccessibilityWindowMovedNotification$NSAccessibilityWindowResizedNotification$NSAccessibilityWindowRole$NSAccessibilityWindowsAttribute$NSAccessibilityZoomButtonAttribute$NSAccessibilityZoomButtonSubrole$NSAlignmentBinding$NSAllRomanInputSourcesLocaleIdentifier$NSAllowsEditingMultipleValuesSelectionBindingOption$NSAllowsNullArgumentBindingOption$NSAlternateImageBinding$NSAlternateTitleBinding$NSAlwaysPresentsApplicationModalAlertsBindingOption$NSAnimateBinding$NSAnimationDelayBinding$NSAnimationProgressMark$NSAnimationProgressMarkNotification$NSAnimationTriggerOrderIn$NSAnimationTriggerOrderOut$NSAntialiasThresholdChangedNotification$NSApp$NSAppKitIgnoredException$NSAppKitVersionNumber@d$NSAppKitVirtualMemoryException$NSApplicationDidBecomeActiveNotification$NSApplicationDidChangeScreenParametersNotification$NSApplicationDidFinishLaunchingNotification$NSApplicationDidFinishRestoringWindowsNotification$NSApplicationDidHideNotification$NSApplicationDidResignActiveNotification$NSApplicationDidUnhideNotification$NSApplicationDidUpdateNotification$NSApplicationFileType$NSApplicationLaunchIsDefaultLaunchKey$NSApplicationLaunchRemoteNotificationKey$NSApplicationLaunchUserNotificationKey$NSApplicationWillBecomeActiveNotification$NSApplicationWillFinishLaunchingNotification$NSApplicationWillHideNotification$NSApplicationWillResignActiveNotification$NSApplicationWillTerminateNotification$NSApplicationWillUnhideNotification$NSApplicationWillUpdateNotification$NSArgumentBinding$NSAttachmentAttributeName$NSAttributedStringBinding$NSAuthorDocumentAttribute$NSBackgroundColorAttributeName$NSBackgroundColorDocumentAttribute$NSBackingPropertyOldColorSpaceKey$NSBackingPropertyOldScaleFactorKey$NSBadBitmapParametersException$NSBadComparisonException$NSBadRTFColorTableException$NSBadRTFDirectiveException$NSBadRTFFontTableException$NSBadRTFStyleSheetException$NSBaseURLDocumentOption$NSBaselineOffsetAttributeName$NSBottomMarginDocumentAttribute$NSBrowserColumnConfigurationDidChangeNotification$NSBrowserIllegalDelegateException$NSCalibratedBlackColorSpace$NSCalibratedRGBColorSpace$NSCalibratedWhiteColorSpace$NSCategoryDocumentAttribute$NSCharacterEncodingDocumentAttribute$NSCharacterEncodingDocumentOption$NSCharacterShapeAttributeName$NSCocoaVersionDocumentAttribute$NSColorListDidChangeNotification$NSColorListIOException$NSColorListNotEditableException$NSColorPanelColorDidChangeNotification$NSColorPboardType$NSComboBoxSelectionDidChangeNotification$NSComboBoxSelectionIsChangingNotification$NSComboBoxWillDismissNotification$NSComboBoxWillPopUpNotification$NSCommentDocumentAttribute$NSCompanyDocumentAttribute$NSConditionallySetsEditableBindingOption$NSConditionallySetsEnabledBindingOption$NSConditionallySetsHiddenBindingOption$NSContentArrayBinding$NSContentArrayForMultipleSelectionBinding$NSContentBinding$NSContentDictionaryBinding$NSContentHeightBinding$NSContentObjectBinding$NSContentObjectsBinding$NSContentPlacementTagBindingOption$NSContentSetBinding$NSContentValuesBinding$NSContentWidthBinding$NSContextHelpModeDidActivateNotification$NSContextHelpModeDidDeactivateNotification$NSContinuouslyUpdatesValueBindingOption$NSControlTextDidBeginEditingNotification$NSControlTextDidChangeNotification$NSControlTextDidEndEditingNotification$NSControlTintDidChangeNotification$NSConvertedDocumentAttribute$NSCopyrightDocumentAttribute$NSCreatesSortDescriptorBindingOption$NSCreationTimeDocumentAttribute$NSCriticalValueBinding$NSCursorAttributeName$NSCustomColorSpace$NSDataBinding$NSDefaultAttributesDocumentOption$NSDefaultTabIntervalDocumentAttribute$NSDefinitionPresentationTypeDictionaryApplication$NSDefinitionPresentationTypeKey$NSDefinitionPresentationTypeOverlay$NSDeletesObjectsOnRemoveBindingsOption$NSDeviceBitsPerSample$NSDeviceBlackColorSpace$NSDeviceCMYKColorSpace$NSDeviceColorSpaceName$NSDeviceIsPrinter$NSDeviceIsScreen$NSDeviceRGBColorSpace$NSDeviceResolution$NSDeviceSize$NSDeviceWhiteColorSpace$NSDirectoryFileType$NSDisplayNameBindingOption$NSDisplayPatternBindingOption$NSDisplayPatternTitleBinding$NSDisplayPatternValueBinding$NSDocFormatTextDocumentType$NSDocumentEditedBinding$NSDocumentTypeDocumentAttribute$NSDocumentTypeDocumentOption$NSDoubleClickArgumentBinding$NSDoubleClickTargetBinding$NSDragPboard$NSDraggingException$NSDraggingImageComponentIconKey$NSDraggingImageComponentLabelKey$NSDrawerDidCloseNotification$NSDrawerDidOpenNotification$NSDrawerWillCloseNotification$NSDrawerWillOpenNotification$NSEditableBinding$NSEditorDocumentAttribute$NSEnabledBinding$NSEventTrackingRunLoopMode$NSExcludedElementsDocumentAttribute$NSExcludedKeysBinding$NSExpansionAttributeName$NSFileContentsPboardType$NSFileTypeDocumentAttribute$NSFileTypeDocumentOption$NSFilenamesPboardType$NSFilesPromisePboardType$NSFilesystemFileType$NSFilterPredicateBinding$NSFindPanelCaseInsensitiveSearch$NSFindPanelSearchOptionsPboardType$NSFindPanelSubstringMatch$NSFindPboard$NSFontAttributeName$NSFontBinding$NSFontBoldBinding$NSFontCascadeListAttribute$NSFontCharacterSetAttribute$NSFontCollectionActionKey$NSFontCollectionAllFonts$NSFontCollectionDidChangeNotification$NSFontCollectionDisallowAutoActivationOption$NSFontCollectionFavorites$NSFontCollectionIncludeDisabledFontsOption$NSFontCollectionNameKey$NSFontCollectionOldNameKey$NSFontCollectionRecentlyUsed$NSFontCollectionRemoveDuplicatesOption$NSFontCollectionUser$NSFontCollectionVisibilityKey$NSFontCollectionWasHidden$NSFontCollectionWasRenamed$NSFontCollectionWasShown$NSFontColorAttribute$NSFontFaceAttribute$NSFontFamilyAttribute$NSFontFamilyNameBinding$NSFontFeatureSelectorIdentifierKey$NSFontFeatureSettingsAttribute$NSFontFeatureTypeIdentifierKey$NSFontFixedAdvanceAttribute$NSFontItalicBinding$NSFontMatrixAttribute$NSFontNameAttribute$NSFontNameBinding$NSFontPboard$NSFontPboardType$NSFontSetChangedNotification$NSFontSizeAttribute$NSFontSizeBinding$NSFontSlantTrait$NSFontSymbolicTrait$NSFontTraitsAttribute$NSFontUnavailableException$NSFontVariationAttribute$NSFontVariationAxisDefaultValueKey$NSFontVariationAxisIdentifierKey$NSFontVariationAxisMaximumValueKey$NSFontVariationAxisMinimumValueKey$NSFontVariationAxisNameKey$NSFontVisibleNameAttribute$NSFontWeightTrait$NSFontWidthTrait$NSForegroundColorAttributeName$NSFullScreenModeAllScreens$NSFullScreenModeApplicationPresentationOptions$NSFullScreenModeSetting$NSFullScreenModeWindowLevel$NSGeneralPboard$NSGlyphInfoAttributeName$NSGraphicsContextDestinationAttributeName$NSGraphicsContextPDFFormat$NSGraphicsContextPSFormat$NSGraphicsContextRepresentationFormatAttributeName$NSHTMLPboardType$NSHTMLTextDocumentType$NSHandlesContentAsCompoundValueBindingOption$NSHeaderTitleBinding$NSHiddenBinding$NSHyphenationFactorDocumentAttribute$NSIllegalSelectorException$NSImageBinding$NSImageCacheException$NSImageColorSyncProfileData$NSImageCompressionFactor$NSImageCompressionMethod$NSImageCurrentFrame$NSImageCurrentFrameDuration$NSImageDitherTransparency$NSImageEXIFData$NSImageFallbackBackgroundColor$NSImageFrameCount$NSImageGamma$NSImageHintCTM$NSImageHintInterpolation$NSImageInterlaced$NSImageLoopCount$NSImageNameActionTemplate$NSImageNameAddTemplate$NSImageNameAdvanced$NSImageNameApplicationIcon$NSImageNameBluetoothTemplate$NSImageNameBonjour$NSImageNameBookmarksTemplate$NSImageNameCaution$NSImageNameColorPanel$NSImageNameColumnViewTemplate$NSImageNameComputer$NSImageNameDotMac$NSImageNameEnterFullScreenTemplate$NSImageNameEveryone$NSImageNameExitFullScreenTemplate$NSImageNameFlowViewTemplate$NSImageNameFolder$NSImageNameFolderBurnable$NSImageNameFolderSmart$NSImageNameFollowLinkFreestandingTemplate$NSImageNameFontPanel$NSImageNameGoLeftTemplate$NSImageNameGoRightTemplate$NSImageNameHomeTemplate$NSImageNameIChatTheaterTemplate$NSImageNameIconViewTemplate$NSImageNameInfo$NSImageNameInvalidDataFreestandingTemplate$NSImageNameLeftFacingTriangleTemplate$NSImageNameListViewTemplate$NSImageNameLockLockedTemplate$NSImageNameLockUnlockedTemplate$NSImageNameMenuMixedStateTemplate$NSImageNameMenuOnStateTemplate$NSImageNameMobileMe$NSImageNameMultipleDocuments$NSImageNameNetwork$NSImageNamePathTemplate$NSImageNamePreferencesGeneral$NSImageNameQuickLookTemplate$NSImageNameRefreshFreestandingTemplate$NSImageNameRefreshTemplate$NSImageNameRemoveTemplate$NSImageNameRevealFreestandingTemplate$NSImageNameRightFacingTriangleTemplate$NSImageNameShareTemplate$NSImageNameSlideshowTemplate$NSImageNameSmartBadgeTemplate$NSImageNameStatusAvailable$NSImageNameStatusNone$NSImageNameStatusPartiallyAvailable$NSImageNameStatusUnavailable$NSImageNameStopProgressFreestandingTemplate$NSImageNameStopProgressTemplate$NSImageNameTrashEmpty$NSImageNameTrashFull$NSImageNameUser$NSImageNameUserAccounts$NSImageNameUserGroup$NSImageNameUserGuest$NSImageProgressive$NSImageRGBColorTable$NSImageRepRegistryDidChangeNotification$NSIncludedKeysBinding$NSInitialKeyBinding$NSInitialValueBinding$NSInkTextPboardType$NSInsertsNullPlaceholderBindingOption$NSInterfaceStyleDefault$NSInvokesSeparatelyWithArrayObjectsBindingOption$NSIsIndeterminateBinding$NSKernAttributeName$NSKeywordsDocumentAttribute$NSLabelBinding$NSLeftMarginDocumentAttribute$NSLigatureAttributeName$NSLinkAttributeName$NSLocalizedKeyDictionaryBinding$NSMacSimpleTextDocumentType$NSManagedObjectContextBinding$NSManagerDocumentAttribute$NSMarkedClauseSegmentAttributeName$NSMaxValueBinding$NSMaxWidthBinding$NSMaximumRecentsBinding$NSMenuDidAddItemNotification$NSMenuDidBeginTrackingNotification$NSMenuDidChangeItemNotification$NSMenuDidEndTrackingNotification$NSMenuDidRemoveItemNotification$NSMenuDidSendActionNotification$NSMenuWillSendActionNotification$NSMinValueBinding$NSMinWidthBinding$NSMixedStateImageBinding$NSModalPanelRunLoopMode$NSModificationTimeDocumentAttribute$NSMultipleTextSelectionPboardType$NSMultipleValuesMarker$NSMultipleValuesPlaceholderBindingOption$NSNamedColorSpace$NSNibLoadingException$NSNibOwner$NSNibTopLevelObjects$NSNoSelectionMarker$NSNoSelectionPlaceholderBindingOption$NSNotApplicableMarker$NSNotApplicablePlaceholderBindingOption$NSNullPlaceholderBindingOption$NSObliquenessAttributeName$NSObservedKeyPathKey$NSObservedObjectKey$NSOffStateImageBinding$NSOfficeOpenXMLTextDocumentType$NSOnStateImageBinding$NSOpenDocumentTextDocumentType$NSOptionsKey$NSOutlineViewColumnDidMoveNotification$NSOutlineViewColumnDidResizeNotification$NSOutlineViewItemDidCollapseNotification$NSOutlineViewItemDidExpandNotification$NSOutlineViewItemWillCollapseNotification$NSOutlineViewItemWillExpandNotification$NSOutlineViewSelectionDidChangeNotification$NSOutlineViewSelectionIsChangingNotification$NSPDFPboardType$NSPICTPboardType$NSPPDIncludeNotFoundException$NSPPDIncludeStackOverflowException$NSPPDIncludeStackUnderflowException$NSPPDParseException$NSPaperSizeDocumentAttribute$NSParagraphStyleAttributeName$NSPasteboardCommunicationException$NSPasteboardTypeColor$NSPasteboardTypeFindPanelSearchOptions$NSPasteboardTypeFont$NSPasteboardTypeHTML$NSPasteboardTypeMultipleTextSelection$NSPasteboardTypePDF$NSPasteboardTypePNG$NSPasteboardTypeRTF$NSPasteboardTypeRTFD$NSPasteboardTypeRuler$NSPasteboardTypeSound$NSPasteboardTypeString$NSPasteboardTypeTIFF$NSPasteboardTypeTabularText$NSPasteboardTypeTextFinderOptions$NSPasteboardURLReadingContentsConformToTypesKey$NSPasteboardURLReadingFileURLsOnlyKey$NSPatternColorSpace$NSPlainFileType$NSPlainTextDocumentType$NSPopUpButtonCellWillPopUpNotification$NSPopUpButtonWillPopUpNotification$NSPopoverCloseReasonDetachToWindow$NSPopoverCloseReasonKey$NSPopoverCloseReasonStandard$NSPopoverDidCloseNotification$NSPopoverDidShowNotification$NSPopoverWillCloseNotification$NSPopoverWillShowNotification$NSPositioningRectBinding$NSPostScriptPboardType$NSPredicateBinding$NSPredicateFormatBindingOption$NSPreferredScrollerStyleDidChangeNotification$NSPrefixSpacesDocumentAttribute$NSPrintAllPages$NSPrintAllPresetsJobStyleHint$NSPrintBottomMargin$NSPrintCancelJob$NSPrintCopies$NSPrintDetailedErrorReporting$NSPrintFaxCoverSheetName$NSPrintFaxHighResolution$NSPrintFaxJob$NSPrintFaxModem$NSPrintFaxNumber$NSPrintFaxReceiverNames$NSPrintFaxReceiverNumbers$NSPrintFaxReturnReceipt$NSPrintFaxSendTime$NSPrintFaxTrimPageEnds$NSPrintFaxUseCoverSheet$NSPrintFirstPage$NSPrintFormName$NSPrintHeaderAndFooter$NSPrintHorizontalPagination$NSPrintHorizontallyCentered$NSPrintJobDisposition$NSPrintJobFeatures$NSPrintJobSavingFileNameExtensionHidden$NSPrintJobSavingURL$NSPrintLastPage$NSPrintLeftMargin$NSPrintManualFeed$NSPrintMustCollate$NSPrintNoPresetsJobStyleHint$NSPrintOperationExistsException$NSPrintOrientation$NSPrintPackageException$NSPrintPagesAcross$NSPrintPagesDown$NSPrintPagesPerSheet$NSPrintPanelAccessorySummaryItemDescriptionKey$NSPrintPanelAccessorySummaryItemNameKey$NSPrintPaperFeed$NSPrintPaperName$NSPrintPaperSize$NSPrintPhotoJobStyleHint$NSPrintPreviewJob$NSPrintPrinter$NSPrintPrinterName$NSPrintReversePageOrder$NSPrintRightMargin$NSPrintSaveJob$NSPrintSavePath$NSPrintScalingFactor$NSPrintSelectionOnly$NSPrintSpoolJob$NSPrintTime$NSPrintTopMargin$NSPrintVerticalPagination$NSPrintVerticallyCentered$NSPrintingCommunicationException$NSRTFDPboardType$NSRTFDTextDocumentType$NSRTFPboardType$NSRTFPropertyStackOverflowException$NSRTFTextDocumentType$NSRaisesForNotApplicableKeysBindingOption$NSReadOnlyDocumentAttribute$NSRecentSearchesBinding$NSRepresentedFilenameBinding$NSRightMarginDocumentAttribute$NSRowHeightBinding$NSRuleEditorPredicateComparisonModifier$NSRuleEditorPredicateCompoundType$NSRuleEditorPredicateCustomSelector$NSRuleEditorPredicateLeftExpression$NSRuleEditorPredicateOperatorType$NSRuleEditorPredicateOptions$NSRuleEditorPredicateRightExpression$NSRuleEditorRowsDidChangeNotification$NSRulerPboard$NSRulerPboardType$NSScreenColorSpaceDidChangeNotification$NSScrollViewDidEndLiveMagnifyNotification$NSScrollViewWillStartLiveMagnifyNotification$NSSelectedIdentifierBinding$NSSelectedIndexBinding$NSSelectedLabelBinding$NSSelectedObjectBinding$NSSelectedObjectsBinding$NSSelectedTagBinding$NSSelectedValueBinding$NSSelectedValuesBinding$NSSelectionIndexPathsBinding$NSSelectionIndexesBinding$NSSelectorNameBindingOption$NSSelectsAllWhenSettingContentBindingOption$NSShadowAttributeName$NSSharingServiceNameAddToAperture$NSSharingServiceNameAddToIPhoto$NSSharingServiceNameAddToSafariReadingList$NSSharingServiceNameComposeEmail$NSSharingServiceNameComposeMessage$NSSharingServiceNamePostImageOnFlickr$NSSharingServiceNamePostOnFacebook$NSSharingServiceNamePostOnSinaWeibo$NSSharingServiceNamePostOnTwitter$NSSharingServiceNamePostVideoOnTudou$NSSharingServiceNamePostVideoOnVimeo$NSSharingServiceNamePostVideoOnYouku$NSSharingServiceNameSendViaAirDrop$NSSharingServiceNameUseAsDesktopPicture$NSSharingServiceNameUseAsTwitterProfileImage$NSShellCommandFileType$NSSortDescriptorsBinding$NSSoundPboardType$NSSpeechCharacterModeProperty$NSSpeechCommandDelimiterProperty$NSSpeechCommandPrefix$NSSpeechCommandSuffix$NSSpeechCurrentVoiceProperty$NSSpeechDictionaryAbbreviations$NSSpeechDictionaryEntryPhonemes$NSSpeechDictionaryEntrySpelling$NSSpeechDictionaryLocaleIdentifier$NSSpeechDictionaryModificationDate$NSSpeechDictionaryPronunciations$NSSpeechErrorCount$NSSpeechErrorNewestCharacterOffset$NSSpeechErrorNewestCode$NSSpeechErrorOldestCharacterOffset$NSSpeechErrorOldestCode$NSSpeechErrorsProperty$NSSpeechInputModeProperty$NSSpeechModeLiteral$NSSpeechModeNormal$NSSpeechModePhoneme$NSSpeechModeText$NSSpeechNumberModeProperty$NSSpeechOutputToFileURLProperty$NSSpeechPhonemeInfoExample$NSSpeechPhonemeInfoHiliteEnd$NSSpeechPhonemeInfoHiliteStart$NSSpeechPhonemeInfoOpcode$NSSpeechPhonemeInfoSymbol$NSSpeechPhonemeSymbolsProperty$NSSpeechPitchBaseProperty$NSSpeechPitchModProperty$NSSpeechRateProperty$NSSpeechRecentSyncProperty$NSSpeechResetProperty$NSSpeechStatusNumberOfCharactersLeft$NSSpeechStatusOutputBusy$NSSpeechStatusOutputPaused$NSSpeechStatusPhonemeCode$NSSpeechStatusProperty$NSSpeechSynthesizerInfoIdentifier$NSSpeechSynthesizerInfoProperty$NSSpeechSynthesizerInfoVersion$NSSpeechVolumeProperty$NSSpellCheckerDidChangeAutomaticSpellingCorrectionNotification$NSSpellCheckerDidChangeAutomaticTextReplacementNotification$NSSpellingStateAttributeName$NSSplitViewDidResizeSubviewsNotification$NSSplitViewWillResizeSubviewsNotification$NSStrikethroughColorAttributeName$NSStrikethroughStyleAttributeName$NSStringPboardType$NSStrokeColorAttributeName$NSStrokeWidthAttributeName$NSSubjectDocumentAttribute$NSSuperscriptAttributeName$NSSystemColorsDidChangeNotification$NSTIFFException$NSTIFFPboardType$NSTabColumnTerminatorsAttributeName$NSTableViewColumnDidMoveNotification$NSTableViewColumnDidResizeNotification$NSTableViewRowViewKey$NSTableViewSelectionDidChangeNotification$NSTableViewSelectionIsChangingNotification$NSTabularTextPboardType$NSTargetBinding$NSTextAlternativesAttributeName$NSTextAlternativesSelectedAlternativeStringNotification$NSTextCheckingDocumentAuthorKey$NSTextCheckingDocumentTitleKey$NSTextCheckingDocumentURLKey$NSTextCheckingOrthographyKey$NSTextCheckingQuotesKey$NSTextCheckingReferenceDateKey$NSTextCheckingReferenceTimeZoneKey$NSTextCheckingRegularExpressionsKey$NSTextCheckingReplacementsKey$NSTextColorBinding$NSTextDidBeginEditingNotification$NSTextDidChangeNotification$NSTextDidEndEditingNotification$NSTextEncodingNameDocumentAttribute$NSTextEncodingNameDocumentOption$NSTextFinderCaseInsensitiveKey$NSTextFinderMatchingTypeKey$NSTextInputContextKeyboardSelectionDidChangeNotification$NSTextLayoutSectionOrientation$NSTextLayoutSectionRange$NSTextLayoutSectionsAttribute$NSTextLineTooLongException$NSTextNoSelectionException$NSTextReadException$NSTextSizeMultiplierDocumentOption$NSTextStorageDidProcessEditingNotification$NSTextStorageWillProcessEditingNotification$NSTextViewDidChangeSelectionNotification$NSTextViewDidChangeTypingAttributesNotification$NSTextViewWillChangeNotifyingTextViewNotification$NSTextWriteException$NSTimeoutDocumentOption$NSTitleBinding$NSTitleDocumentAttribute$NSToolTipAttributeName$NSToolTipBinding$NSToolbarCustomizeToolbarItemIdentifier$NSToolbarDidRemoveItemNotification$NSToolbarFlexibleSpaceItemIdentifier$NSToolbarPrintItemIdentifier$NSToolbarSeparatorItemIdentifier$NSToolbarShowColorsItemIdentifier$NSToolbarShowFontsItemIdentifier$NSToolbarSpaceItemIdentifier$NSToolbarWillAddItemNotification$NSTopMarginDocumentAttribute$NSTransparentBinding$NSTypedStreamVersionException$NSURLPboardType$NSUnderlineColorAttributeName$NSUnderlineStyleAttributeName$NSUsesScreenFontsDocumentAttribute$NSVCardPboardType$NSValidatesImmediatelyBindingOption$NSValueBinding$NSValuePathBinding$NSValueTransformerBindingOption$NSValueTransformerNameBindingOption$NSValueURLBinding$NSVerticalGlyphFormAttributeName$NSViewAnimationEffectKey$NSViewAnimationEndFrameKey$NSViewAnimationFadeInEffect$NSViewAnimationFadeOutEffect$NSViewAnimationStartFrameKey$NSViewAnimationTargetKey$NSViewBoundsDidChangeNotification$NSViewDidUpdateTrackingAreasNotification$NSViewFocusDidChangeNotification$NSViewFrameDidChangeNotification$NSViewGlobalFrameDidChangeNotification$NSViewModeDocumentAttribute$NSViewSizeDocumentAttribute$NSViewZoomDocumentAttribute$NSVisibleBinding$NSVoiceAge$NSVoiceDemoText$NSVoiceGender$NSVoiceGenderFemale$NSVoiceGenderMale$NSVoiceGenderNeuter$NSVoiceIdentifier$NSVoiceIndividuallySpokenCharacters$NSVoiceLanguage$NSVoiceLocaleIdentifier$NSVoiceName$NSVoiceSupportedCharacters$NSWarningValueBinding$NSWebArchiveTextDocumentType$NSWebPreferencesDocumentOption$NSWebResourceLoadDelegateDocumentOption$NSWidthBinding$NSWindowDidBecomeKeyNotification$NSWindowDidBecomeMainNotification$NSWindowDidChangeBackingPropertiesNotification$NSWindowDidChangeScreenNotification$NSWindowDidChangeScreenProfileNotification$NSWindowDidDeminiaturizeNotification$NSWindowDidEndLiveResizeNotification$NSWindowDidEndSheetNotification$NSWindowDidEnterFullScreenNotification$NSWindowDidEnterVersionBrowserNotification$NSWindowDidExitFullScreenNotification$NSWindowDidExitVersionBrowserNotification$NSWindowDidExposeNotification$NSWindowDidMiniaturizeNotification$NSWindowDidMoveNotification$NSWindowDidResignKeyNotification$NSWindowDidResignMainNotification$NSWindowDidResizeNotification$NSWindowDidUpdateNotification$NSWindowServerCommunicationException$NSWindowWillBeginSheetNotification$NSWindowWillCloseNotification$NSWindowWillEnterFullScreenNotification$NSWindowWillEnterVersionBrowserNotification$NSWindowWillExitFullScreenNotification$NSWindowWillExitVersionBrowserNotification$NSWindowWillMiniaturizeNotification$NSWindowWillMoveNotification$NSWindowWillStartLiveResizeNotification$NSWordMLTextDocumentType$NSWordTablesReadException$NSWordTablesWriteException$NSWorkspaceActiveSpaceDidChangeNotification$NSWorkspaceApplicationKey$NSWorkspaceCompressOperation$NSWorkspaceCopyOperation$NSWorkspaceDecompressOperation$NSWorkspaceDecryptOperation$NSWorkspaceDesktopImageAllowClippingKey$NSWorkspaceDesktopImageFillColorKey$NSWorkspaceDesktopImageScalingKey$NSWorkspaceDestroyOperation$NSWorkspaceDidActivateApplicationNotification$NSWorkspaceDidChangeFileLabelsNotification$NSWorkspaceDidDeactivateApplicationNotification$NSWorkspaceDidHideApplicationNotification$NSWorkspaceDidLaunchApplicationNotification$NSWorkspaceDidMountNotification$NSWorkspaceDidPerformFileOperationNotification$NSWorkspaceDidRenameVolumeNotification$NSWorkspaceDidTerminateApplicationNotification$NSWorkspaceDidUnhideApplicationNotification$NSWorkspaceDidUnmountNotification$NSWorkspaceDidWakeNotification$NSWorkspaceDuplicateOperation$NSWorkspaceEncryptOperation$NSWorkspaceLaunchConfigurationAppleEvent$NSWorkspaceLaunchConfigurationArchitecture$NSWorkspaceLaunchConfigurationArguments$NSWorkspaceLaunchConfigurationEnvironment$NSWorkspaceLinkOperation$NSWorkspaceMoveOperation$NSWorkspaceRecycleOperation$NSWorkspaceScreensDidSleepNotification$NSWorkspaceScreensDidWakeNotification$NSWorkspaceSessionDidBecomeActiveNotification$NSWorkspaceSessionDidResignActiveNotification$NSWorkspaceVolumeLocalizedNameKey$NSWorkspaceVolumeOldLocalizedNameKey$NSWorkspaceVolumeOldURLKey$NSWorkspaceVolumeURLKey$NSWorkspaceWillLaunchApplicationNotification$NSWorkspaceWillPowerOffNotification$NSWorkspaceWillSleepNotification$NSWorkspaceWillUnmountNotification$NSWritingDirectionAttributeName$$NSBlack@d$$NSViewNoInstrinsicMetric@d$$NSDarkGray@d$$NSWhite@d$$NSFontIdentityMatrix@^d$$NSLightGray@d$$NSUnderlineStrikethroughMask@Q$$NSUnderlineByWordMask@Q$' >>> _metadata.aliases.keys() ['NSModalPanelWindowLevel', 'NSSubmenuWindowLevel', 'NSNormalWindowLevel', 'NSFloatingWindowLevel', 'NSTornOffMenuWindowLevel', 'NSDockWindowLevel', 'NSStatusWindowLevel', 'NSPopUpMenuWindowLevel', 'NSMainMenuWindowLevel', 'NSScreenSaverWindowLevel'] >>> _metadata.expressions.keys() [] >>> _metadata.functions.keys() ['NSRectClipList', 'NSApplicationLoad', 'NSCountWindows', 'NSGetAlertPanel', 'NSApplicationMain', 'NSOpenGLGetVersion', 'NSAccessibilityActionDescription', 'NSRunAlertPanelRelativeToWindow', 'NSCreateFileContentsPboardType', 'NSDrawNinePartImage', 'NSOpenGLSetOption', 'NSRectClip', 'NSDottedFrameRect', 'NSDrawBitmap', 'NSConvertGlyphsToPackedGlyphs', 'NSGetFileType', 'NSWindowList', 'NSAccessibilityRaiseBadArgumentException', 'NSAccessibilityUnignoredDescendant', 'NSRectFill', 'NSGetCriticalAlertPanel', 'NSDrawThreePartImage', 'NSAccessibilityRoleDescription', 'NSRunCriticalAlertPanel', 'NSFrameRect', 'NSDrawColorTiledRects', 'NSWindowListForContext', 'NSBeginAlertSheet', 'NSCountWindowsForContext', 'NSGetWindowServerMemory', 'NSShowAnimationEffect', 'NSRunCriticalAlertPanelRelativeToWindow', 'NSAccessibilityUnignoredChildren', 'NSRectFillListUsingOperation', 'NSCreateFilenamePboardType', 'NSInterfaceStyleForKey', 'NSAvailableWindowDepths', 'NSBeginInformationalAlertSheet', 'NSUnregisterServicesProvider', 'NSEventMaskFromType', 'NSRectFillUsingOperation', 'NSBitsPerSampleFromDepth', 'NSEnableScreenUpdates', 'NSDrawDarkBezel', 'NSRunInformationalAlertPanelRelativeToWindow', 'NSPerformService', 'NSGetFileTypes', 'NSDrawWhiteBezel', 'NSReleaseAlertPanel', 'NSAccessibilityUnignoredAncestor', 'NSSetFocusRingStyle', 'NSAccessibilityPostNotification', 'NSDrawTiledRects', 'NSUpdateDynamicServices', 'NSIsControllerMarker', 'NSDrawButton', 'NSSetShowsServicesMenuItem', 'NSAccessibilityUnignoredChildrenForOnlyChild', 'NSDrawLightBezel', 'NSCopyBits', 'NSDisableScreenUpdates', 'NSEdgeInsetsMake', 'NSReadPixel', 'NSBeginCriticalAlertSheet', 'NSAccessibilityRoleDescriptionForUIElement', 'NSDrawWindowBackground', 'NSShowsServicesMenuItem', 'NSPlanarFromDepth', 'NSHighlightRect', 'NSFrameRectWithWidthUsingOperation', 'NSRectFillListWithColorsUsingOperation', 'NSDrawGroove', 'NSNumberOfColorComponents', 'NSFrameRectWithWidth', 'NSEraseRect', 'NSRectFillListWithColors', 'NSBestDepth', 'NSColorSpaceFromDepth', 'NSBeep', 'NSBitsPerPixelFromDepth', 'NSOpenGLGetOption', 'NSDrawGrayBezel', 'NSRectFillList', 'NSGetInformationalAlertPanel', 'NSRectFillListWithGrays', 'NSRunInformationalAlertPanel', 'NSRegisterServicesProvider'] >>> filter(lambda k: k.startswith('NSColor'), _metadata.functions.keys()( ... ) ... ) Traceback (most recent call last): File "", line 1, in TypeError: 'list' object is not callable >>> filter(lambda k: k.startswith('NSColor'), _metadata.functions.keys()) ['NSColorSpaceFromDepth'] >>> from Foundation import _metadata >>> _metadata.aliases.keys() ['NSURLErrorBadURL', 'NSURLErrorCannotCreateFile', 'NSURLErrorFileIsDirectory', 'NSURLErrorRequestBodyStreamExhausted', 'NSURLErrorCannotLoadFromNetwork', 'NSMaxXEdge', 'NSURLErrorHTTPTooManyRedirects', 'NSURLErrorDataNotAllowed', 'NSURLErrorCallIsActive', 'NSURLErrorSecureConnectionFailed', 'NSURLErrorServerCertificateUntrusted', 'NSURLErrorCannotFindHost', 'NSURLErrorNoPermissionsToReadFile', 'NSIntegerMin', 'NSURLErrorClientCertificateRequired', 'NSURLErrorUserCancelledAuthentication', 'NSURLErrorCannotConnectToHost', 'NSURLErrorDNSLookupFailed', 'NSURLErrorZeroByteResource', 'NSMinYEdge', 'NSURLErrorClientCertificateRejected', 'NSURLErrorCannotRemoveFile', 'NSURLErrorResourceUnavailable', 'NSURLErrorNetworkConnectionLost', 'NSURLErrorRedirectToNonExistentLocation', 'NSURLErrorNotConnectedToInternet', 'NSURLErrorCannotDecodeRawData', 'NSURLErrorCannotMoveFile', 'NSURLErrorCancelled', 'NSURLErrorTimedOut', 'NSMinXEdge', 'NSURLErrorCannotDecodeContentData', 'NSURLErrorDownloadDecodingFailedMidStream', 'NSURLErrorInternationalRoamingOff', 'NSURLErrorCannotParseResponse', 'NSURLErrorCannotWriteToFile', 'NSURLErrorServerCertificateHasBadDate', 'NSURLErrorDataLengthExceedsMaximum', 'NSURLErrorCannotOpenFile', 'NSURLErrorUserAuthenticationRequired', 'NSURLErrorDownloadDecodingFailedToComplete', 'NSURLErrorServerCertificateNotYetValid', 'NSMaxYEdge', 'NSURLErrorFileDoesNotExist', 'NSIntegerMax', 'NSURLErrorUnsupportedURL', 'NSURLErrorServerCertificateHasUnknownRoot', 'NSURLErrorBadServerResponse', 'NSUIntegerMax', 'NSURLErrorCannotCloseFile'] >>> NSColorSpace.__class__ >>> NSColorSpace.className() u'NSColorSpace' >>> srgb sRGB IEC61966-2.1 colorspace >>> srgb.colorProfile.definingClass() Traceback (most recent call last): File "", line 1, in TypeError: Use class methods to instantiate new Objective-C objects >>> srgb.colorProfile.definingClass >>> from CoreFoundation import _metadata >>> _metadata.enums '$CFByteOrderBigEndian@2$CFByteOrderLittleEndian@1$CFByteOrderUnknown@0$CFNotificationSuspensionBehaviorCoalesce@2$CFNotificationSuspensionBehaviorDeliverImmediately@4$CFNotificationSuspensionBehaviorDrop@1$CFNotificationSuspensionBehaviorHold@3$CF_USE_OSBYTEORDER_H@1$COREFOUNDATION_CFPLUGINCOM_SEPARATE@1$FALSE@0$TRUE@1$kCFBookmarkResolutionWithoutMountingMask@512$kCFBookmarkResolutionWithoutUIMask@256$kCFBundleExecutableArchitectureI386@7$kCFBundleExecutableArchitecturePPC@18$kCFBundleExecutableArchitecturePPC64@16777234$kCFBundleExecutableArchitectureX86_64@16777223$kCFCalendarComponentsWrap@1$kCFCalendarUnitDay@16$kCFCalendarUnitEra@2$kCFCalendarUnitHour@32$kCFCalendarUnitMinute@64$kCFCalendarUnitMonth@8$kCFCalendarUnitQuarter@2048$kCFCalendarUnitSecond@128$kCFCalendarUnitWeek@256$kCFCalendarUnitWeekOfMonth@4096$kCFCalendarUnitWeekOfYear@8192$kCFCalendarUnitWeekday@512$kCFCalendarUnitWeekdayOrdinal@1024$kCFCalendarUnitYear@4$kCFCalendarUnitYearForWeekOfYear@16384$kCFCharacterSetAlphaNumeric@10$kCFCharacterSetCapitalizedLetter@13$kCFCharacterSetControl@1$kCFCharacterSetDecimalDigit@4$kCFCharacterSetDecomposable@9$kCFCharacterSetIllegal@12$kCFCharacterSetLetter@5$kCFCharacterSetLowercaseLetter@6$kCFCharacterSetNewline@15$kCFCharacterSetNonBase@8$kCFCharacterSetPunctuation@11$kCFCharacterSetSymbol@14$kCFCharacterSetUppercaseLetter@7$kCFCharacterSetWhitespace@2$kCFCharacterSetWhitespaceAndNewline@3$kCFCompareAnchored@8$kCFCompareBackwards@4$kCFCompareCaseInsensitive@1$kCFCompareDiacriticInsensitive@128$kCFCompareEqualTo@0$kCFCompareForcedOrdering@512$kCFCompareGreaterThan@1$kCFCompareLessThan@-1$kCFCompareLocalized@32$kCFCompareNonliteral@16$kCFCompareNumerically@64$kCFCompareWidthInsensitive@256$kCFDataSearchAnchored@2$kCFDataSearchBackwards@1$kCFDateFormatterFullStyle@4$kCFDateFormatterLongStyle@3$kCFDateFormatterMediumStyle@2$kCFDateFormatterNoStyle@0$kCFDateFormatterShortStyle@1$kCFFileDescriptorReadCallBack@1$kCFFileDescriptorWriteCallBack@2$kCFFileSecurityClearAccessControlList@32$kCFFileSecurityClearGroup@2$kCFFileSecurityClearGroupUUID@16$kCFFileSecurityClearMode@4$kCFFileSecurityClearOwner@1$kCFFileSecurityClearOwnerUUID@8$kCFGregorianAllUnits@16777215$kCFGregorianUnitsDays@4$kCFGregorianUnitsHours@8$kCFGregorianUnitsMinutes@16$kCFGregorianUnitsMonths@2$kCFGregorianUnitsSeconds@32$kCFGregorianUnitsYears@1$kCFLocaleLanguageDirectionBottomToTop@4$kCFLocaleLanguageDirectionLeftToRight@1$kCFLocaleLanguageDirectionRightToLeft@2$kCFLocaleLanguageDirectionTopToBottom@3$kCFLocaleLanguageDirectionUnknown@0$kCFMessagePortBecameInvalidError@-5$kCFMessagePortIsInvalid@-3$kCFMessagePortReceiveTimeout@-2$kCFMessagePortSendTimeout@-1$kCFMessagePortSuccess@0$kCFMessagePortTransportError@-4$kCFNotFound@-1$kCFNotificationDeliverImmediately@1$kCFNotificationPostToAllSessions@2$kCFNumberCFIndexType@14$kCFNumberCGFloatType@16$kCFNumberCharType@7$kCFNumberDoubleType@13$kCFNumberFloat32Type@5$kCFNumberFloat64Type@6$kCFNumberFloatType@12$kCFNumberFormatterCurrencyStyle@2$kCFNumberFormatterDecimalStyle@1$kCFNumberFormatterNoStyle@0$kCFNumberFormatterPadAfterPrefix@1$kCFNumberFormatterPadAfterSuffix@3$kCFNumberFormatterPadBeforePrefix@0$kCFNumberFormatterPadBeforeSuffix@2$kCFNumberFormatterParseIntegersOnly@1$kCFNumberFormatterPercentStyle@3$kCFNumberFormatterRoundCeiling@0$kCFNumberFormatterRoundDown@2$kCFNumberFormatterRoundFloor@1$kCFNumberFormatterRoundHalfDown@5$kCFNumberFormatterRoundHalfEven@4$kCFNumberFormatterRoundHalfUp@6$kCFNumberFormatterRoundUp@3$kCFNumberFormatterScientificStyle@4$kCFNumberFormatterSpellOutStyle@5$kCFNumberIntType@9$kCFNumberLongLongType@11$kCFNumberLongType@10$kCFNumberMaxType@16$kCFNumberNSIntegerType@15$kCFNumberSInt16Type@2$kCFNumberSInt32Type@3$kCFNumberSInt64Type@4$kCFNumberSInt8Type@1$kCFNumberShortType@8$kCFPropertyListBinaryFormat_v1_0@200$kCFPropertyListImmutable@0$kCFPropertyListMutableContainers@1$kCFPropertyListMutableContainersAndLeaves@2$kCFPropertyListOpenStepFormat@1$kCFPropertyListReadCorruptError@3840$kCFPropertyListReadStreamError@3842$kCFPropertyListReadUnknownVersionError@3841$kCFPropertyListWriteStreamError@3851$kCFPropertyListXMLFormat_v1_0@100$kCFRunLoopAfterWaiting@64$kCFRunLoopAllActivities@268435455$kCFRunLoopBeforeSources@4$kCFRunLoopBeforeTimers@2$kCFRunLoopBeforeWaiting@32$kCFRunLoopEntry@1$kCFRunLoopExit@128$kCFRunLoopRunFinished@1$kCFRunLoopRunHandledSource@4$kCFRunLoopRunStopped@2$kCFRunLoopRunTimedOut@3$kCFSocketAcceptCallBack@2$kCFSocketAutomaticallyReenableAcceptCallBack@2$kCFSocketAutomaticallyReenableDataCallBack@3$kCFSocketAutomaticallyReenableReadCallBack@1$kCFSocketAutomaticallyReenableWriteCallBack@8$kCFSocketCloseOnInvalidate@128$kCFSocketConnectCallBack@4$kCFSocketDataCallBack@3$kCFSocketError@-1$kCFSocketLeaveErrors@64$kCFSocketNoCallBack@0$kCFSocketReadCallBack@1$kCFSocketSuccess@0$kCFSocketTimeout@-2$kCFSocketWriteCallBack@8$kCFStreamErrorDomainCustom@-1$kCFStreamErrorDomainMacOSStatus@2$kCFStreamErrorDomainPOSIX@1$kCFStreamEventCanAcceptBytes@4$kCFStreamEventEndEncountered@16$kCFStreamEventErrorOccurred@8$kCFStreamEventHasBytesAvailable@2$kCFStreamEventNone@0$kCFStreamEventOpenCompleted@1$kCFStreamStatusAtEnd@5$kCFStreamStatusClosed@6$kCFStreamStatusError@7$kCFStreamStatusNotOpen@0$kCFStreamStatusOpen@2$kCFStreamStatusOpening@1$kCFStreamStatusReading@3$kCFStreamStatusWriting@4$kCFStringEncodingANSEL@1537$kCFStringEncodingASCII@1536$kCFStringEncodingBig5@2563$kCFStringEncodingBig5_E@2569$kCFStringEncodingBig5_HKSCS_1999@2566$kCFStringEncodingCNS_11643_92_P1@1617$kCFStringEncodingCNS_11643_92_P2@1618$kCFStringEncodingCNS_11643_92_P3@1619$kCFStringEncodingDOSArabic@1049$kCFStringEncodingDOSBalticRim@1030$kCFStringEncodingDOSCanadianFrench@1048$kCFStringEncodingDOSChineseSimplif@1057$kCFStringEncodingDOSChineseTrad@1059$kCFStringEncodingDOSCyrillic@1043$kCFStringEncodingDOSGreek@1029$kCFStringEncodingDOSGreek1@1041$kCFStringEncodingDOSGreek2@1052$kCFStringEncodingDOSHebrew@1047$kCFStringEncodingDOSIcelandic@1046$kCFStringEncodingDOSJapanese@1056$kCFStringEncodingDOSKorean@1058$kCFStringEncodingDOSLatin1@1040$kCFStringEncodingDOSLatin2@1042$kCFStringEncodingDOSLatinUS@1024$kCFStringEncodingDOSNordic@1050$kCFStringEncodingDOSPortuguese@1045$kCFStringEncodingDOSRussian@1051$kCFStringEncodingDOSThai@1053$kCFStringEncodingDOSTurkish@1044$kCFStringEncodingEBCDIC_CP037@3074$kCFStringEncodingEBCDIC_US@3073$kCFStringEncodingEUC_CN@2352$kCFStringEncodingEUC_JP@2336$kCFStringEncodingEUC_KR@2368$kCFStringEncodingEUC_TW@2353$kCFStringEncodingGBK_95@1585$kCFStringEncodingGB_18030_2000@1586$kCFStringEncodingGB_2312_80@1584$kCFStringEncodingHZ_GB_2312@2565$kCFStringEncodingISOLatin1@513$kCFStringEncodingISOLatin10@528$kCFStringEncodingISOLatin2@514$kCFStringEncodingISOLatin3@515$kCFStringEncodingISOLatin4@516$kCFStringEncodingISOLatin5@521$kCFStringEncodingISOLatin6@522$kCFStringEncodingISOLatin7@525$kCFStringEncodingISOLatin8@526$kCFStringEncodingISOLatin9@527$kCFStringEncodingISOLatinArabic@518$kCFStringEncodingISOLatinCyrillic@517$kCFStringEncodingISOLatinGreek@519$kCFStringEncodingISOLatinHebrew@520$kCFStringEncodingISOLatinThai@523$kCFStringEncodingISO_2022_CN@2096$kCFStringEncodingISO_2022_CN_EXT@2097$kCFStringEncodingISO_2022_JP@2080$kCFStringEncodingISO_2022_JP_1@2082$kCFStringEncodingISO_2022_JP_2@2081$kCFStringEncodingISO_2022_JP_3@2083$kCFStringEncodingISO_2022_KR@2112$kCFStringEncodingInvalidId@4294967295$kCFStringEncodingJIS_C6226_78@1572$kCFStringEncodingJIS_X0201_76@1568$kCFStringEncodingJIS_X0208_83@1569$kCFStringEncodingJIS_X0208_90@1570$kCFStringEncodingJIS_X0212_90@1571$kCFStringEncodingKOI8_R@2562$kCFStringEncodingKOI8_U@2568$kCFStringEncodingKSC_5601_87@1600$kCFStringEncodingKSC_5601_92_Johab@1601$kCFStringEncodingMacArabic@4$kCFStringEncodingMacArmenian@24$kCFStringEncodingMacBengali@13$kCFStringEncodingMacBurmese@19$kCFStringEncodingMacCeltic@39$kCFStringEncodingMacCentralEurRoman@29$kCFStringEncodingMacChineseSimp@25$kCFStringEncodingMacChineseTrad@2$kCFStringEncodingMacCroatian@36$kCFStringEncodingMacCyrillic@7$kCFStringEncodingMacDevanagari@9$kCFStringEncodingMacDingbats@34$kCFStringEncodingMacEthiopic@28$kCFStringEncodingMacExtArabic@31$kCFStringEncodingMacFarsi@140$kCFStringEncodingMacGaelic@40$kCFStringEncodingMacGeorgian@23$kCFStringEncodingMacGreek@6$kCFStringEncodingMacGujarati@11$kCFStringEncodingMacGurmukhi@10$kCFStringEncodingMacHFS@255$kCFStringEncodingMacHebrew@5$kCFStringEncodingMacIcelandic@37$kCFStringEncodingMacInuit@236$kCFStringEncodingMacJapanese@1$kCFStringEncodingMacKannada@16$kCFStringEncodingMacKhmer@20$kCFStringEncodingMacKorean@3$kCFStringEncodingMacLaotian@22$kCFStringEncodingMacMalayalam@17$kCFStringEncodingMacMongolian@27$kCFStringEncodingMacOriya@12$kCFStringEncodingMacRoman@0$kCFStringEncodingMacRomanLatin1@2564$kCFStringEncodingMacRomanian@38$kCFStringEncodingMacSinhalese@18$kCFStringEncodingMacSymbol@33$kCFStringEncodingMacTamil@14$kCFStringEncodingMacTelugu@15$kCFStringEncodingMacThai@21$kCFStringEncodingMacTibetan@26$kCFStringEncodingMacTurkish@35$kCFStringEncodingMacUkrainian@152$kCFStringEncodingMacVT100@252$kCFStringEncodingMacVietnamese@30$kCFStringEncodingNextStepJapanese@2818$kCFStringEncodingNextStepLatin@2817$kCFStringEncodingNonLossyASCII@3071$kCFStringEncodingShiftJIS@2561$kCFStringEncodingShiftJIS_X0213@1576$kCFStringEncodingShiftJIS_X0213_00@1576$kCFStringEncodingShiftJIS_X0213_MenKuTen@1577$kCFStringEncodingUTF16@256$kCFStringEncodingUTF16BE@268435712$kCFStringEncodingUTF16LE@335544576$kCFStringEncodingUTF32@201326848$kCFStringEncodingUTF32BE@402653440$kCFStringEncodingUTF32LE@469762304$kCFStringEncodingUTF7@67109120$kCFStringEncodingUTF7_IMAP@2576$kCFStringEncodingUTF8@134217984$kCFStringEncodingUnicode@256$kCFStringEncodingVISCII@2567$kCFStringEncodingWindowsArabic@1286$kCFStringEncodingWindowsBalticRim@1287$kCFStringEncodingWindowsCyrillic@1282$kCFStringEncodingWindowsGreek@1283$kCFStringEncodingWindowsHebrew@1285$kCFStringEncodingWindowsKoreanJohab@1296$kCFStringEncodingWindowsLatin1@1280$kCFStringEncodingWindowsLatin2@1281$kCFStringEncodingWindowsLatin5@1284$kCFStringEncodingWindowsVietnamese@1288$kCFStringNormalizationFormC@2$kCFStringNormalizationFormD@0$kCFStringNormalizationFormKC@3$kCFStringNormalizationFormKD@1$kCFStringTokenizerAttributeLanguage@131072$kCFStringTokenizerAttributeLatinTranscription@65536$kCFStringTokenizerTokenHasDerivedSubTokensMask@4$kCFStringTokenizerTokenHasHasNumbersMask@8$kCFStringTokenizerTokenHasNonLettersMask@16$kCFStringTokenizerTokenHasSubTokensMask@2$kCFStringTokenizerTokenIsCJWordMask@32$kCFStringTokenizerTokenNone@0$kCFStringTokenizerTokenNormal@1$kCFStringTokenizerUnitLineBreak@3$kCFStringTokenizerUnitParagraph@2$kCFStringTokenizerUnitSentence@1$kCFStringTokenizerUnitWord@0$kCFStringTokenizerUnitWordBoundary@4$kCFTimeZoneNameStyleDaylightSaving@2$kCFTimeZoneNameStyleGeneric@4$kCFTimeZoneNameStyleShortDaylightSaving@3$kCFTimeZoneNameStyleShortGeneric@5$kCFTimeZoneNameStyleShortStandard@1$kCFTimeZoneNameStyleStandard@0$kCFURLBookmarkCreationMinimalBookmarkMask@512$kCFURLBookmarkCreationPreferFileIDResolutionMask@256$kCFURLBookmarkCreationSecurityScopeAllowOnlyReadAccess@4096$kCFURLBookmarkCreationSuitableForBookmarkFile@1024$kCFURLBookmarkCreationWithSecurityScope@2048$kCFURLBookmarkResolutionWithSecurityScope@1024$kCFURLComponentFragment@12$kCFURLComponentHost@8$kCFURLComponentNetLocation@2$kCFURLComponentParameterString@10$kCFURLComponentPassword@6$kCFURLComponentPath@3$kCFURLComponentPort@9$kCFURLComponentQuery@11$kCFURLComponentResourceSpecifier@4$kCFURLComponentScheme@1$kCFURLComponentUser@5$kCFURLComponentUserInfo@7$kCFURLEnumeratorDefaultBehavior@0$kCFURLEnumeratorDescendRecursively@1$kCFURLEnumeratorDirectoryPostOrderSuccess@4$kCFURLEnumeratorEnd@2$kCFURLEnumeratorError@3$kCFURLEnumeratorGenerateFileReferenceURLs@4$kCFURLEnumeratorIncludeDirectoriesPostOrder@32$kCFURLEnumeratorIncludeDirectoriesPreOrder@16$kCFURLEnumeratorSkipInvisibles@2$kCFURLEnumeratorSkipPackageContents@8$kCFURLEnumeratorSuccess@1$kCFURLHFSPathStyle@1$kCFURLImproperArgumentsError@-15$kCFURLPOSIXPathStyle@0$kCFURLPropertyKeyUnavailableError@-17$kCFURLRemoteHostUnavailableError@-14$kCFURLResourceAccessViolationError@-13$kCFURLResourceNotFoundError@-12$kCFURLTimeoutError@-18$kCFURLUnknownError@-10$kCFURLUnknownPropertyKeyError@-16$kCFURLUnknownSchemeError@-11$kCFURLWindowsPathStyle@2$kCFUserNotificationAlternateResponse@1$kCFUserNotificationCancelResponse@3$kCFUserNotificationCautionAlertLevel@2$kCFUserNotificationDefaultResponse@0$kCFUserNotificationNoDefaultButtonFlag@32$kCFUserNotificationNoteAlertLevel@1$kCFUserNotificationOtherResponse@2$kCFUserNotificationPlainAlertLevel@3$kCFUserNotificationStopAlertLevel@0$kCFUserNotificationUseRadioButtonsFlag@64$kCFXMLEntityTypeCharacter@4$kCFXMLEntityTypeParameter@0$kCFXMLEntityTypeParsedExternal@2$kCFXMLEntityTypeParsedInternal@1$kCFXMLEntityTypeUnparsed@3$kCFXMLErrorElementlessDocument@11$kCFXMLErrorEncodingConversionFailure@3$kCFXMLErrorMalformedCDSect@7$kCFXMLErrorMalformedCharacterReference@13$kCFXMLErrorMalformedCloseTag@8$kCFXMLErrorMalformedComment@12$kCFXMLErrorMalformedDTD@5$kCFXMLErrorMalformedDocument@10$kCFXMLErrorMalformedName@6$kCFXMLErrorMalformedParsedCharacterData@14$kCFXMLErrorMalformedProcessingInstruction@4$kCFXMLErrorMalformedStartTag@9$kCFXMLErrorNoData@15$kCFXMLErrorUnexpectedEOF@1$kCFXMLErrorUnknownEncoding@2$kCFXMLNodeCurrentVersion@1$kCFXMLNodeTypeAttribute@3$kCFXMLNodeTypeAttributeListDeclaration@15$kCFXMLNodeTypeCDATASection@7$kCFXMLNodeTypeComment@5$kCFXMLNodeTypeDocument@1$kCFXMLNodeTypeDocumentFragment@8$kCFXMLNodeTypeDocumentType@11$kCFXMLNodeTypeElement@2$kCFXMLNodeTypeElementTypeDeclaration@14$kCFXMLNodeTypeEntity@9$kCFXMLNodeTypeEntityReference@10$kCFXMLNodeTypeNotation@13$kCFXMLNodeTypeProcessingInstruction@4$kCFXMLNodeTypeText@6$kCFXMLNodeTypeWhitespace@12$kCFXMLParserAddImpliedAttributes@32$kCFXMLParserAllOptions@16777215$kCFXMLParserNoOptions@0$kCFXMLParserReplacePhysicalEntities@4$kCFXMLParserResolveExternalEntities@16$kCFXMLParserSkipMetaData@2$kCFXMLParserSkipWhitespace@8$kCFXMLParserValidateDocument@1$kCFXMLStatusParseInProgress@-1$kCFXMLStatusParseNotBegun@-2$kCFXMLStatusParseSuccessful@0$' >>> _metadata.misc.keys() ['kCFCoreFoundationVersionNumber10_4_4_Intel', 'CFXMLAttributeDeclarationInfo', 'CFXMLDocumentTypeInfo', 'kCFCoreFoundationVersionNumber10_4_8', 'CFXMLDocumentInfo', 'CFXMLElementInfo', 'kCFCoreFoundationVersionNumber10_7_2', 'kCFCoreFoundationVersionNumber10_5_8', 'kCFCoreFoundationVersionNumber10_5_7', 'kCFCoreFoundationVersionNumber10_5_6', 'kCFCoreFoundationVersionNumber10_5_5', 'kCFCoreFoundationVersionNumber10_5_4', 'kCFCoreFoundationVersionNumber10_5_3', 'kCFCoreFoundationVersionNumber10_5_2', 'kCFCoreFoundationVersionNumber10_5_1', 'kCFCoreFoundationVersionNumber10_4_11', 'kCFCoreFoundationVersionNumber10_6_1', 'kCFCoreFoundationVersionNumber10_3_9', 'kCFCoreFoundationVersionNumber10_3_8', 'CFXMLProcessingInstructionInfo', 'kCFCoreFoundationVersionNumber10_3_5', 'CFRange', 'kCFCoreFoundationVersionNumber10_3_7', 'kCFCoreFoundationVersionNumber10_3_6', 'kCFCoreFoundationVersionNumber10_3_1', 'kCFCoreFoundationVersionNumber10_3_3', 'kCFCoreFoundationVersionNumber10_3_2', 'kCFCoreFoundationVersionNumber10_1_3', 'kCFCoreFoundationVersionNumber10_1_2', 'kCFCoreFoundationVersionNumber10_1_1', 'kCFCoreFoundationVersionNumber10_2_2', 'kCFCoreFoundationVersionNumber10_1_4', 'CFStreamError', 'kCFCoreFoundationVersionNumber10_3_4', 'kCFCoreFoundationVersionNumber10_7_1', 'kCFCoreFoundationVersionNumber10_7_3', 'CFXMLAttributeListDeclarationInfo', 'kCFCoreFoundationVersionNumber10_4_10', 'kCFCoreFoundationVersionNumber10_7_4', 'CFGregorianUnits', 'CFXMLElementTypeDeclarationInfo', 'kCFCoreFoundationVersionNumber10_4_5_PowerPC', 'CFGregorianDate', 'CFXMLExternalID', 'CFSocketSignature', 'kCFCoreFoundationVersionNumber10_4_7', 'kCFCoreFoundationVersionNumber10_4_4_PowerPC', 'kCFCoreFoundationVersionNumber10_4_2', 'kCFCoreFoundationVersionNumber10_4_3', 'kCFCoreFoundationVersionNumber10_4_1', 'CFUUIDBytes', 'kCFCoreFoundationVersionNumber10_4_6_Intel', 'CFSwappedFloat32', 'kCFCoreFoundationVersionNumber10_4_9', 'kCFCoreFoundationVersionNumber10_2_4', 'kCFCoreFoundationVersionNumber10_2_5', 'kCFCoreFoundationVersionNumber10_2_6', 'kCFCoreFoundationVersionNumber10_2_7', 'kCFCoreFoundationVersionNumber10_2_1', 'CFXMLEntityReferenceInfo', 'kCFCoreFoundationVersionNumber10_2_3', 'kCFCoreFoundationVersionNumber10_2_8', 'kCFCoreFoundationVersionNumber10_4_6_PowerPC', 'kCFCoreFoundationVersionNumber10_6_2', 'kCFCoreFoundationVersionNumber10_6_3', 'kCFCoreFoundationVersionNumber10_6_4', 'kCFCoreFoundationVersionNumber10_6_5', 'kCFCoreFoundationVersionNumber10_6_6', 'kCFCoreFoundationVersionNumber10_6_7', 'kCFCoreFoundationVersionNumber10_6_8', 'kCFCoreFoundationVersionNumber10_0_3', 'CFXMLEntityInfo', 'CFXMLNotationInfo', 'CFSwappedFloat64', 'kCFCoreFoundationVersionNumber10_4_5_Intel', 'kCFCoreFoundationVersionNumber10_5', 'kCFCoreFoundationVersionNumber10_4', 'kCFCoreFoundationVersionNumber10_7', 'kCFCoreFoundationVersionNumber10_6', 'kCFCoreFoundationVersionNumber10_1', 'kCFCoreFoundationVersionNumber10_0', 'kCFCoreFoundationVersionNumber10_3', 'kCFCoreFoundationVersionNumber10_2'] >>> _metadata.cftypes [('CFAllocatorRef', '^{__CFAllocator=}', 'CFAllocatorGetTypeID', None), ('CFArrayRef', '^{__CFArray=}', 'CFArrayGetTypeID', 'NSArray'), ('CFAttributedStringRef', '^{__CFAttributedString=}', 'CFAttributedStringGetTypeID', '__NSCFAttributedString,NSCFAttributedString'), ('CFBagRef', '^{__CFBag=}', 'CFBagGetTypeID', None), ('CFBinaryHeapRef', '^{__CFBinaryHeap=}', 'CFBinaryHeapGetTypeID', None), ('CFBitVectorRef', '^{__CFBitVector=}', 'CFBitVectorGetTypeID', None), ('CFBooleanRef', '^{__CFBoolean=}', 'CFBooleanGetTypeID', '__NSCFBoolean,NSCFBoolean'), ('CFBundleRef', '^{__CFBundle=}', 'CFBundleGetTypeID', None), ('CFCalendarRef', '^{__CFCalendar=}', 'CFCalendarGetTypeID', '__NSCFCalendar,NSCFCalendar'), ('CFCharacterSetRef', '^{__CFCharacterSet=}', 'CFCharacterSetGetTypeID', '__NSCFCharacterSet,NSCFCharacterSet'), ('CFDataRef', '^{__CFData=}', 'CFDataGetTypeID', '__NSCFData,NSCFData'), ('CFDateFormatterRef', '^{__CFDateFormatter=}', 'CFDateFormatterGetTypeID', None), ('CFDateRef', '^{__CFDate=}', 'CFDateGetTypeID', '__NSCFDate,NSCFDate,__NSDate'), ('CFDictionaryRef', '^{__CFDictionary=}', 'CFDictionaryGetTypeID', 'NSDictionary'), ('CFErrorRef', '^{__CFError=}', 'CFErrorGetTypeID', '__NSCFError,NSCFError'), ('CFFileDescriptorRef', '^{__CFFileDescriptor=}', 'CFFileDescriptorGetTypeID', None), ('CFFileSecurityRef', '^{__CFFileSecurity=}', 'CFFileSecurityGetTypeID', '__NSFileSecurity'), ('CFLocaleRef', '^{__CFLocale=}', 'CFLocaleGetTypeID', '__NSCFLocale,NSCFLocale'), ('CFMachPortRef', '^{__CFMachPort=}', 'CFMachPortGetTypeID', 'NSMachPort'), ('CFMessagePortRef', '^{__CFMessagePort=}', 'CFMessagePortGetTypeID', None), ('CFMutableArrayRef', '^{__CFArray=}', 'CFArrayGetTypeID', 'NSMutableArray'), ('CFMutableAttributedStringRef', '^{__CFAttributedString=}', 'CFAttributedStringGetTypeID', '__NSCFAttributedString,NSCFAttributedString'), ('CFMutableBagRef', '^{__CFBag=}', 'CFBagGetTypeID', None), ('CFMutableBitVectorRef', '^{__CFBitVector=}', 'CFBitVectorGetTypeID', None), ('CFMutableCharacterSetRef', '^{__CFCharacterSet=}', 'CFCharacterSetGetTypeID', None), ('CFMutableDataRef', '^{__CFData=}', 'CFDataGetTypeID', 'NSMutableData'), ('CFMutableDictionaryRef', '^{__CFDictionary=}', 'CFDictionaryGetTypeID', 'NSMutableDictionary'), ('CFMutableSetRef', '^{__CFSet=}', 'CFSetGetTypeID', 'NSMutableSet'), ('CFMutableStringRef', '^{__CFString=}', 'CFStringGetTypeID', None), ('CFNotificationCenterRef', '^{__CFNotificationCenter=}', 'CFNotificationCenterGetTypeID', None), ('CFNullRef', '^{__CFNull=}', 'CFNullGetTypeID', 'NSNull'), ('CFNumberFormatterRef', '^{__CFNumberFormatter=}', 'CFNumberFormatterGetTypeID', None), ('CFNumberRef', '^{__CFNumber=}', 'CFNumberGetTypeID', '__NSCFNumber,NSCFNumber'), ('CFPlugInInstanceRef', '^{__CFPlugInInstance=}', 'CFPlugInInstanceGetTypeID', None), ('CFReadStreamRef', '^{__CFReadStream=}', 'CFReadStreamGetTypeID', '__NSCFInputStream,NSCFInputStream'), ('CFRunLoopObserverRef', '^{__CFRunLoopObserver=}', 'CFRunLoopObserverGetTypeID', None), ('CFRunLoopRef', '^{__CFRunLoop=}', 'CFRunLoopGetTypeID', None), ('CFRunLoopSourceRef', '^{__CFRunLoopSource=}', 'CFRunLoopSourceGetTypeID', None), ('CFRunLoopTimerRef', '^{__CFRunLoopTimer=}', 'CFRunLoopTimerGetTypeID', '__NSCFTimer,NSCFTimer'), ('CFSetRef', '^{__CFSet=}', 'CFSetGetTypeID', 'NSSet'), ('CFSocketRef', '^{__CFSocket=}', 'CFSocketGetTypeID', None), ('CFStringRef', '^{__CFString=}', 'CFStringGetTypeID', 'NSString'), ('CFStringTokenizerRef', '^{__CFStringTokenizer=}', 'CFStringTokenizerGetTypeID', None), ('CFTimeZoneRef', '^{__CFTimeZone=}', 'CFTimeZoneGetTypeID', 'NSTimeZone'), ('CFTreeRef', '^{__CFTree=}', 'CFTreeGetTypeID', None), ('CFURLEnumeratorRef', '^{__CFURLEnumerator=}', 'CFURLEnumeratorGetTypeID', None), ('CFURLRef', '^{__CFURL=}', 'CFURLGetTypeID', 'NSURL'), ('CFUUIDRef', '^{__CFUUID=}', 'CFUUIDGetTypeID', None), ('CFUserNotificationRef', '^{__CFUserNotification=}', 'CFUserNotificationGetTypeID', None), ('CFWriteStreamRef', '^{__CFWriteStream=}', 'CFWriteStreamGetTypeID', '__NSCFOutputStream,NSCFOutputStream'), ('CFXMLNodeRef', '^{__CFXMLNode=}', 'CFXMLNodeGetTypeID', None), ('CFXMLParserRef', '^{__CFXMLParser=}', 'CFXMLParserGetTypeID', None)] >>> _metadata.expressions.keys() [] >>> _metadata.functions.keys() ['CFURLCreateByResolvingBookmarkData', 'CFDictionaryContainsKey', 'CFGetAllocator', 'CFSetCreateMutable', 'CFReadStreamClose', 'CFStringGetFileSystemRepresentation', 'CFLocaleGetTypeID', 'CFTreeInsertSibling', 'CFWriteStreamScheduleWithRunLoop', 'CFXMLTreeCreateWithDataFromURL', 'CFBitVectorCreateMutable', 'CFLocaleCreateCanonicalLocaleIdentifierFromString', 'CFStringTokenizerCopyBestStringLanguage', 'CFSwapInt32', 'CFLocaleCopyCommonISOCurrencyCodes', 'CFCalendarGetOrdinalityOfUnit', 'CFCalendarGetMinimumDaysInFirstWeek', 'CFStringIsSurrogateLowCharacter', 'CFLocaleGetSystem', 'CFRunLoopTimerInvalidate', 'CFGetRetainCount', 'CFRunLoopObserverGetContext', 'CFURLCreateBookmarkDataFromFile', 'CFBundleCopyResourceURLForLocalization', 'CFStringGetMaximumSizeForEncoding', 'CFStringTransform', 'CFStringGetHyphenationLocationBeforeIndex', 'CFMessagePortCreateLocal', 'CFTimeZoneCopyDefault', 'CFArrayGetValueAtIndex', 'CFErrorCopyFailureReason', 'CFNumberFormatterGetStyle', 'CFLocaleCopyPreferredLanguages', 'CFBagCreateCopy', 'CFNotificationCenterGetDistributedCenter', 'CFErrorCopyDescription', 'CFAttributedStringGetLength', 'CFStringGetCStringPtr', 'CFMessagePortSetInvalidationCallBack', 'CFReadStreamSetProperty', 'CFLocaleCopyISOCurrencyCodes', 'CFCalendarGetTypeID', 'CFMachPortCreateRunLoopSource', 'CFAttributedStringCreateWithSubstring', 'CFStringAppend', 'CFWriteStreamCreateWithAllocatedBuffers', 'CFAttributedStringGetAttributeAndLongestEffectiveRange', 'CFFileDescriptorGetContext', 'CFUserNotificationPopUpSelection', 'CFStringCreateWithSubstring', 'CFStringCreateMutableCopy', 'CFBundleCopyExecutableArchitectures', 'CFStringPad', 'CFBooleanGetTypeID', 'CFBundleCopyAuxiliaryExecutableURL', 'CFURLEnumeratorCreateForMountedVolumes', 'CFFileSecurityGetMode', 'CFStringConvertEncodingToWindowsCodepage', 'CFMachPortGetInvalidationCallBack', 'CFRunLoopSourceSignal', 'CFDateFormatterCreateDateFromString', 'CFBinaryHeapGetMinimum', 'CFNotificationCenterAddObserver', 'CFCalendarCopyTimeZone', 'CFAttributedStringGetTypeID', 'CFPropertyListWriteToStream', 'CFBagAddValue', 'CFCharacterSetCreateMutable', 'CFURLGetByteRangeForComponent', 'CFURLCreateWithFileSystemPathRelativeToBase', 'CFStringReplace', 'CFStringSetExternalCharactersNoCopy', 'CFStringGetMaximumSizeOfFileSystemRepresentation', 'CFMachPortCreate', 'CFAttributedStringReplaceAttributedString', 'CFTimeZoneCreateWithName', 'CFURLGetString', 'CFXMLParserCreateWithDataFromURL', 'CFBitVectorGetCountOfBit', 'CFPropertyListWrite', 'CFDataAppendBytes', 'CFDictionaryGetCount', 'CFStringHasPrefix', 'CFTimeZoneSetDefault', 'CFArrayApplyFunction', 'CFMessagePortGetInvalidationCallBack', 'CFUserNotificationGetResponseDictionary', 'CFSwapInt32HostToLittle', 'CFSocketInvalidate', 'CFRunLoopObserverIsValid', 'CFStringInsert', 'CFURLCanBeDecomposed', 'CFStringCreateWithCStringNoCopy', 'CFRunLoopAddTimer', 'CFDictionaryGetValueIfPresent', 'CFTreeFindRoot', 'CFBitVectorGetLastIndexOfBit', 'CFDataCreateMutable', 'CFStringAppendCString', 'CFLocaleGetIdentifier', 'CFStringConvertWindowsCodepageToEncoding', 'CFTreeRemove', 'CFBundleCloseBundleResourceMap', 'CFRunLoopTimerCreateWithHandler', 'CFAllocatorSetDefault', 'CFPreferencesSetAppValue', 'CFLocaleCreateLocaleIdentifierFromComponents', 'CFPreferencesSynchronize', 'CFStringCreateWithCString', 'CFArrayGetLastIndexOfValue', 'CFSwapInt16LittleToHost', 'CFStringCreateWithFileSystemRepresentation', 'CFBundleGetPlugIn', 'CFUserNotificationUpdate', 'CFBinaryHeapApplyFunction', 'CFStringGetBytes', 'CFLocaleCopyAvailableLocaleIdentifiers', 'CFStringCreateArrayBySeparatingStrings', 'CFStringCreateMutable', 'CFSetGetCount', 'CFTimeZoneResetSystem', 'CFNumberFormatterGetValueFromString', 'CFTreeGetFirstChild', 'CFAbsoluteTimeGetDayOfYear', 'CFAttributedStringEndEditing', 'CFCharacterSetRemoveCharactersInRange', 'CFCharacterSetAddCharactersInString', 'CFURLCreateResourcePropertiesForKeysFromBookmarkData', 'CFCharacterSetIsLongCharacterMember', 'CFRunLoopAddSource', 'CFDictionaryContainsValue', 'CFCopyDescription', 'CFPropertyListCreateXMLData', 'CFURLCreateResourcePropertyForKeyFromBookmarkData', 'CFTreePrependChild', 'CFRunLoopWakeUp', 'CFSwapInt64LittleToHost', 'CFURLCopyResourceSpecifier', 'CFStringFold', 'CFNotificationCenterRemoveEveryObserver', 'CFURLCopyPassword', 'CFWriteStreamClose', 'CFBundleGetVersionNumber', 'CFPropertyListCreateData', 'CFXMLTreeGetNode', 'CFStringConvertEncodingToIANACharSetName', 'CFUserNotificationCreateRunLoopSource', 'CFNumberFormatterSetProperty', 'CFAttributedStringSetAttributes', 'CFSetGetCountOfValue', 'CFDictionarySetValue', 'CFWriteStreamCopyError', 'CFBitVectorSetBits', 'CFURLCreateBookmarkDataFromAliasRecord', 'CFURLCreateFromFileSystemRepresentationRelativeToBase', 'CFURLCreateFromFSRef', 'CFBitVectorFlipBits', 'CFRunLoopAddObserver', 'CFRunLoopSourceCreate', 'CFNumberGetType', 'CFXMLParserGetSourceURL', 'CFBinaryHeapGetCount', 'CFRunLoopContainsObserver', 'CFURLCopyNetLocation', 'CFBagReplaceValue', 'CFReadStreamCopyProperty', 'CFStringIsHyphenationAvailableForLocale', 'CFStringReplaceAll', 'CFBundleCopyLocalizationsForURL', 'CFTreeAppendChild', 'CFWriteStreamCanAcceptBytes', 'CFBitVectorSetCount', 'CFStringIsSurrogateHighCharacter', 'CFPropertyListCreateWithData', 'CFBundleCopyLocalizationsForPreferences', 'CFURLGetFSRef', 'CFURLCreateCopyDeletingLastPathComponent', 'CFSocketCreateConnectedToSocketSignature', 'CFStringFindCharacterFromSet', 'CFAttributedStringCreateMutable', 'CFTreeGetContext', 'CFSocketCopyAddress', 'CFBagGetValues', 'CFFileSecuritySetOwnerUUID', 'CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes', 'CFDictionaryRemoveValue', 'CFCharacterSetIsCharacterMember', 'CFURLSetTemporaryResourcePropertyForKey', 'CFSetGetTypeID', 'CFMessagePortSendRequest', 'CFURLGetFileSystemRepresentation', 'CFURLCopyAbsoluteURL', 'CFStringGetRangeOfComposedCharactersAtIndex', 'CFStringCompareWithOptions', 'CFWriteStreamGetError', 'CFAttributedStringGetString', 'CFConvertFloat64HostToSwapped', 'CFTreeCreate', 'CFURLCopyScheme', 'CFXMLParserParse', 'CFSocketCreate', 'CFBitVectorContainsBit', 'CFPreferencesCopyValue', 'CFURLCreateData', 'CFPreferencesAppSynchronize', 'CFHash', 'CFArrayCreate', 'CFArrayContainsValue', 'CFArrayInsertValueAtIndex', 'CFNumberFormatterSetFormat', 'CFReadStreamRead', 'CFStringCreateWithCharactersNoCopy', 'CFStringGetIntValue', 'CFDataGetMutableBytePtr', 'CFBundleOpenBundleResourceFiles', 'CFFileSecurityGetOwner', 'CFCalendarGetIdentifier', 'CFStringCompare', 'CFURLClearResourcePropertyCache', 'CFRunLoopSourceInvalidate', 'CFCalendarCreateWithIdentifier', 'CFBinaryHeapRemoveMinimumValue', 'CFBagRemoveValue', 'CFDataGetBytePtr', 'CFRunLoopObserverDoesRepeat', 'CFDateCompare', 'CFCharacterSetInvert', 'CFUserNotificationGetResponseValue', 'CFStringGetCharacterAtIndex', 'CFReadStreamCopyError', 'CFAttributedStringCreate', 'CFStringFindWithOptions', 'CFSetRemoveAllValues', 'CFXMLParserGetLocation', 'CFBagContainsValue', 'CFArrayCreateMutableCopy', 'CFSetSetValue', 'CFSwapInt64HostToBig', 'CFUserNotificationCheckBoxChecked', 'CFReadStreamOpen', 'CFSwapInt16', 'CFURLDestroyResource', 'CFStringCreateCopy', 'CFURLCopyFragment', 'CFSwapInt16HostToLittle', 'CFBundleCopyLocalizedString', 'CFStringCreateWithBytes', 'CFRunLoopSourceGetOrder', 'CFBundleLoadExecutable', 'CFURLCreateFilePathURL', 'CFRunLoopContainsTimer', 'CFPreferencesSetValue', 'CFReadStreamGetStatus', 'CFPreferencesGetAppIntegerValue', 'CFConvertFloatHostToSwapped', 'CFBinaryHeapCreate', 'CFStreamCreatePairWithSocket', 'CFStringCreateWithFormat', 'CFConvertFloat32HostToSwapped', 'CFRunLoopObserverCreateWithHandler', 'CFDataCreate', 'CFStringGetListOfAvailableEncodings', 'CFRunLoopTimerGetContext', 'CFURLSetResourcePropertiesForKeys', 'CFBundleUnloadExecutable', 'CFErrorCreateWithUserInfoKeysAndValues', 'CFRunLoopTimerIsValid', 'CFConvertFloat64SwappedToHost', 'CFDataSetLength', 'CFStringTokenizerCreate', 'CFSwapInt16BigToHost', 'CFStringCreateExternalRepresentation', 'CFLocaleGetLanguageLineDirection', 'CFErrorCopyUserInfo', 'CFAttributedStringCreateCopy', 'CFCalendarComposeAbsoluteTime', 'CFReadStreamUnscheduleFromRunLoop', 'CFDictionaryGetValue', 'CFReadStreamCreateWithBytesNoCopy', 'CFURLCreateFileReferenceURL', 'CFTimeZoneCreateWithTimeIntervalFromGMT', 'CFURLCopyResourcePropertyForKey', 'CFURLStartAccessingSecurityScopedResource', 'CFTreeSortChildren', 'CFTimeZoneSetAbbreviationDictionary', 'CFTimeZoneCopySystem', 'CFShowStr', 'CFFileSecuritySetGroup', 'CFNotificationCenterGetLocalCenter', 'CFUUIDCreateFromUUIDBytes', 'CFTimeZoneCopyAbbreviationDictionary', 'CFCalendarSetLocale', 'CFStreamCreatePairWithSocketToHost', 'CFNumberCreate', 'CFArrayGetFirstIndexOfValue', 'CFBagCreateMutableCopy', 'CFCalendarGetTimeRangeOfUnit', 'CFCharacterSetGetPredefined', 'CFArrayRemoveValueAtIndex', 'CFURLCopyHostName', 'CFAbsoluteTimeGetDayOfWeek', 'CFTimeZoneGetTypeID', 'CFRunLoopObserverCreate', 'CFStringGetLongCharacterForSurrogatePair', 'CFBinaryHeapCreateCopy', 'CFStringCreateFromExternalRepresentation', 'CFStringCreateArrayWithFindResults', 'CFArrayGetTypeID', 'CFBitVectorCreateMutableCopy', 'CFSocketSendData', 'CFSocketSetAddress', 'CFRunLoopCopyAllModes', 'CFRunLoopRun', 'CFMessagePortSetName', 'CFDateFormatterCreate', 'CFCharacterSetCreateInvertedSet', 'CFLocaleGetLanguageCharacterDirection', 'CFPreferencesGetAppBooleanValue', 'CFXMLNodeGetInfoPtr', 'CFURLCreateDataAndPropertiesFromResource', 'CFAbsoluteTimeGetWeekOfYear', 'CFDateFormatterSetProperty', 'CFRunLoopStop', 'CFBundleCopyBuiltInPlugInsURL', 'CFLocaleCreateComponentsFromLocaleIdentifier', 'CFPropertyListIsValid', 'CFNumberFormatterGetDecimalInfoForCurrencyCode', 'CFSocketEnableCallBacks', 'CFSetCreateCopy', 'CFReadStreamGetTypeID', 'CFDictionaryAddValue', 'CFCharacterSetRemoveCharactersInString', 'CFFileSecurityGetTypeID', 'CFXMLParserCopyErrorDescription', 'CFXMLParserGetCallBacks', 'CFTimeZoneGetData', 'CFMessagePortSetDispatchQueue', 'CFBitVectorSetAllBits', 'CFSocketGetContext', 'CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier', 'CFTimeZoneGetDaylightSavingTimeOffset', 'CFXMLCreateStringByUnescapingEntities', 'CFStringCapitalize', 'CFBinaryHeapGetMinimumIfPresent', 'CFURLCopyPathExtension', 'CFLocaleCreateCopy', 'CFURLEnumeratorSkipDescendents', 'CFBinaryHeapAddValue', 'CFNumberCompare', 'CFURLHasDirectoryPath', 'CFBundleGetBundleWithIdentifier', 'CFMakeCollectable', 'CFStringAppendFormat', 'CFStringTokenizerSetString', 'CFStringTokenizerCopyCurrentTokenAttribute', 'CFTimeZoneGetName', 'CFBundleIsExecutableLoaded', 'CFArrayAppendArray', 'CFStringGetCString', 'CFTimeZoneCopyLocalizedName', 'CFCalendarCopyLocale', 'CFAttributedStringGetAttribute', 'CFURLCopyLastPathComponent', 'CFBundleCopyResourcesDirectoryURL', 'CFStringGetSurrogatePairForLongCharacter', 'CFBundleCopySharedSupportURL', 'CFLocaleGetValue', 'CFArrayGetCount', 'CFArrayAppendValue', 'CFNumberFormatterGetFormat', 'CFURLCopyParameterString', 'CFAttributedStringGetAttributesAndLongestEffectiveRange', 'CFXMLParserGetContext', 'CFDataDeleteBytes', 'CFBitVectorGetFirstIndexOfBit', 'CFCharacterSetCreateCopy', 'CFURLEnumeratorGetSourceDidChange', 'CFBundleGetPackageInfo', 'CFStringGetFastestEncoding', 'CFTreeGetChildren', 'CFBundleGetLocalInfoDictionary', 'CFBagGetCount', 'CFBagRemoveAllValues', 'CFRunLoopRemoveObserver', 'CFArrayGetValues', 'CFBagGetValue', 'CFNotificationCenterRemoveObserver', 'CFURLCopyStrictPath', 'CFXMLNodeGetString', 'CFURLEnumeratorCreateForDirectoryURL', 'CFFileSecurityCopyAccessControlList', 'CFConvertDoubleSwappedToHost', 'CFURLCreateCopyAppendingPathComponent', 'CFBitVectorGetCount', 'CFErrorGetCode', 'CFDateFormatterCreateDateFormatFromTemplate', 'CFSocketConnectToAddress', 'CFDateFormatterCreateStringWithAbsoluteTime', 'CFReadStreamScheduleWithRunLoop', 'CFStringIsEncodingAvailable', 'CFSetRemoveValue', 'CFBundleCopyPrivateFrameworksURL', 'CFConvertFloatSwappedToHost', 'CFCalendarGetRangeOfUnit', 'CFStringFindWithOptionsAndLocale', 'CFURLSetResourcePropertyForKey', 'CFFileSecurityCopyOwnerUUID', 'CFCalendarAddComponents', 'CFPreferencesRemoveSuitePreferencesFromApp', 'CFBinaryHeapGetCountOfValue', 'CFStringTrim', 'CFDataGetLength', 'CFWriteStreamWrite', 'CFDataCreateWithBytesNoCopy', 'CFURLEnumeratorGetNextURL', 'CFRunLoopTimerGetTypeID', 'CFSwapInt32BigToHost', 'CFURLStopAccessingSecurityScopedResource', 'CFDataCreateMutableCopy', 'CFMachPortGetContext', 'CFDateFormatterGetDateStyle', 'CFRunLoopIsWaiting', 'CFAttributedStringReplaceString', 'CFDateCreate', 'CFWriteStreamCopyProperty', 'CFFileSecurityCreate', 'CFBagGetCountOfValue', 'CFAbsoluteTimeGetCurrent', 'CFBundleCopySharedFrameworksURL', 'CFRelease', 'CFAllocatorGetDefault', 'CFStringTokenizerAdvanceToNextToken', 'CFStringConvertIANACharSetNameToEncoding', 'CFDateFormatterGetTimeStyle', 'CFSocketSetSocketFlags', 'CFDictionaryCreateCopy', 'CFRunLoopPerformBlock', 'CFLocaleCopyISOLanguageCodes', 'CFDataIncreaseLength', 'CFBagGetValueIfPresent', 'CFReadStreamSetClient', 'CFLocaleCopyISOCountryCodes', 'CFBundleCopyInfoDictionaryInDirectory', 'CFURLClearResourcePropertyCacheForKey', 'CFTreeGetParent', 'CFCalendarGetComponentDifference', 'CFRunLoopRunInMode', 'CFBundleCopyExecutableURL', 'CFSocketGetNative', 'CFBundleOpenBundleResourceMap', 'CFDataFind', 'CFXMLParserCreate', 'CFBundleGetPackageInfoInDirectory', 'CFNumberFormatterCreateStringWithNumber', 'CFCalendarGetMaximumRangeOfUnit', 'CFDateFormatterGetAbsoluteTimeFromString', 'CFRunLoopTimerGetNextFireDate', 'CFNotificationCenterGetDarwinNotifyCenter', 'CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode', 'CFMessagePortInvalidate', 'CFURLCreateWithFileSystemPath', 'CFAttributedStringGetAttributes', 'CFSocketSetDefaultNameRegistryPortNumber', 'CFSwapInt64', 'CFBundleCopyResourceURLsOfType', 'CFConvertFloat32SwappedToHost', 'CFDictionaryReplaceValue', 'CFXMLTreeCreateFromDataWithError', 'CFAbsoluteTimeAddGregorianUnits', 'CFStringGetMostCompatibleMacStringEncoding', 'CFMessagePortGetContext', 'CFStringGetLength', 'CFBagCreate', 'CFArrayCreateCopy', 'CFFileSecuritySetAccessControlList', 'CFSocketCreateWithNative', 'CFTimeZoneGetNextDaylightSavingTimeTransition', 'CFDateFormatterGetFormat', 'CFURLWriteDataAndPropertiesToResource', 'CFURLGetPortNumber', 'CFStringAppendCharacters', 'CFRunLoopTimerCreate', 'CFLocaleCreate', 'CFEqual', 'CFRunLoopGetNextTimerFireDate', 'CFErrorCreate', 'CFStringCreateByCombiningStrings', 'CFAllocatorGetPreferredSizeForSize', 'CFDateFormatterSetFormat', 'CFStringGetDoubleValue', 'CFURLCreateWithBytes', 'CFPropertyListCreateFromStream', 'CFLocaleCopyCurrent', 'CFDateFormatterGetLocale', 'CFNullGetTypeID', 'CFStringUppercase', 'CFBundleGetInfoDictionary', 'CFByteOrderGetCurrent', 'CFURLCopyResourcePropertiesForKeys', 'CFDictionaryRemoveAllValues', 'CFBitVectorCreate', 'CFMachPortSetInvalidationCallBack', 'CFBitVectorGetBitAtIndex', 'CFURLCopyPath', 'CFCharacterSetCreateWithCharactersInRange', 'CFTimeZoneCopyKnownNames', 'CFBundleCopyPreferredLocalizationsFromArray', 'CFBitVectorFlipBitAtIndex', 'CFUUIDCreate', 'CFDateGetAbsoluteTime', 'CFNumberIsFloatType', 'CFDateFormatterCreateStringWithDate', 'CFCharacterSetHasMemberInPlane', 'CFRangeMake', 'CFMessagePortCreateRunLoopSource', '_CFAutoreleasePoolPrintPools', 'CFURLCopyQueryString', 'CFStreamCreateBoundPair', 'CFSocketCopyPeerAddress', 'CFNumberFormatterCopyProperty', 'CFURLGetBaseURL', 'CFAttributedStringRemoveAttribute', 'CFWriteStreamSetProperty', 'CFCalendarCopyCurrent', 'CFSetGetValue', 'CFMessagePortIsValid', 'CFBundleCopySupportFilesDirectoryURL', 'CFDataCreateCopy', 'CFDictionaryCreateMutableCopy', 'CFStringConvertEncodingToNSStringEncoding', 'CFBundleCopyInfoDictionaryForURL', 'CFTreeRemoveAllChildren', 'CFFileDescriptorIsValid', 'CFSetGetValueIfPresent', 'CFStringGetNameOfEncoding', 'CFRunLoopObserverGetOrder', 'CFTreeSetContext', 'CFMachPortInvalidate', 'CFDataReplaceBytes', 'CFURLGetTypeID', 'CFSocketDisableCallBacks', 'CFReadStreamGetBuffer', 'CFErrorGetDomain', 'CFTimeZoneIsDaylightSavingTime', 'CFWriteStreamOpen', 'CFArrayGetCountOfValue', 'CFUserNotificationCreate', 'CFRunLoopObserverInvalidate', 'CFBundleCreateBundlesFromDirectory', 'CFArrayCreateMutable', 'CFShow', 'CFFileSecuritySetOwner', 'CFTreeGetChildAtIndex', 'CFBitVectorSetBitAtIndex', 'CFWriteStreamSetClient', 'CFRunLoopSourceIsValid', 'CFTreeGetChildCount', 'CFConvertDoubleHostToSwapped', 'CFStringLowercase', 'CFSocketCreateRunLoopSource', 'CFWriteStreamCreateWithBuffer', 'CFXMLTreeCreateXMLData', 'CFURLCopyUserName', 'CFNumberGetTypeID', 'CFDateGetTimeIntervalSinceDate', 'CFStringFind', 'CFSetReplaceValue', 'CFURLCreateCopyAppendingPathExtension', 'CFRunLoopRemoveTimer', 'CFPreferencesAppValueIsForced', 'CFArraySortValues', 'CFURLCreateStringByReplacingPercentEscapes', 'CFStringGetSystemEncoding', 'CFBundleCopyBundleLocalizations', 'CFFileDescriptorInvalidate', 'CFCharacterSetIntersect', 'CFXMLNodeCreateCopy', 'CFBooleanGetValue', 'CFSwapInt32HostToBig', 'CFDictionaryCreateMutable', 'CFDataGetBytes', 'CFSetAddValue', 'CFFileSecuritySetMode', 'CFDictionaryGetCountOfValue', 'CFURLCreateAbsoluteURLWithBytes', 'CFRunLoopTimerGetInterval', 'CFStringHasSuffix', 'CFMessagePortGetName', 'CFMachPortGetPort', 'CFArraySetValueAtIndex', 'CFBundleCopyExecutableArchitecturesForURL', 'CFSetContainsValue', 'CFGregorianDateIsValid', 'CFDictionaryGetCountOfKey', 'CFBundleCreate', 'CFNumberFormatterCreateStringWithValue', 'CFCharacterSetUnion', 'CFTimeZoneCreate', 'CFUUIDGetUUIDBytes', 'CFCalendarGetFirstWeekday', 'CFStreamCreatePairWithPeerSocketSignature', 'CFStringTokenizerGetCurrentTokenRange', 'CFUUIDCreateWithBytes', 'CFBundleGetAllBundles', 'CFFileSecuritySetGroupUUID', 'CFFileSecurityCopyGroupUUID', 'CFAttributedStringSetAttribute', 'CFXMLNodeGetVersion', 'CFStringCreateWithBytesNoCopy', 'CFBagSetValue', 'CFURLWriteBookmarkDataToFile', 'CFFileDescriptorCreateRunLoopSource', 'CFGetTypeID', 'CFWriteStreamCreateWithFile', 'CFAbsoluteTimeGetDifferenceAsGregorianUnits', 'CFReadStreamCreateWithFile', 'CFErrorCopyRecoverySuggestion', 'CFURLCreateBookmarkData', 'CFUUIDCreateFromString', 'CFPropertyListCreateDeepCopy', 'CFUserNotificationDisplayNotice', 'CFStringGetCharactersPtr', 'CFCopyTypeIDDescription', 'CFAttributedStringCreateMutableCopy', 'CFCalendarDecomposeAbsoluteTime', 'CFSwapInt16HostToBig', 'CFBundleCopyResourceURLsOfTypeForLocalization', 'CFGregorianDateGetAbsoluteTime', 'CFXMLParserAbort', 'CFPropertyListCreateFromXMLData', 'CFStringFindAndReplace', 'CFDictionaryGetTypeID', 'CFBundleGetDevelopmentRegion', 'CFMachPortCreateWithPort', 'CFBundleGetMainBundle', 'CFXMLNodeCreate', 'CFFileDescriptorDisableCallBacks', 'CFErrorGetTypeID', 'CFMachPortGetTypeID', 'CFStringCreateWithCharacters', 'CFStringTrimWhitespace', 'CFMessagePortCreateRemote', 'CFStringDelete', 'CFBundleCopyResourceURLInDirectory', 'CFLocaleCopyDisplayNameForPropertyValue', 'CFCopyHomeDirectoryURL', 'CFSetCreate', 'CFMachPortIsValid', 'CFFileDescriptorEnableCallBacks', 'CFSwapInt32LittleToHost', 'CFBinaryHeapRemoveAllValues', 'CFRunLoopObserverGetActivities', 'CFPropertyListCreateWithStream', 'CFFileSecurityClearProperties', 'CFDateFormatterCopyProperty', 'CFNumberFormatterGetLocale', 'CFURLGetBytes', 'CFFileDescriptorGetNativeDescriptor', 'CFWriteStreamGetStatus', 'CFBundleCopyResourceURL', 'CFBitVectorGetBits', 'CFSocketGetDefaultNameRegistryPortNumber', 'CFArrayReplaceValues', 'CFUserNotificationSecureTextField', 'CFStringTokenizerGoToTokenAtIndex', 'CFBundleGetIdentifier', 'CFTreeApplyFunctionToChildren', 'CFDataGetTypeID', 'CFRunLoopAddCommonMode', 'CFCharacterSetAddCharactersInRange', 'CFMessagePortIsRemote', 'CFReadStreamGetError', 'CFBundlePreflightExecutable', 'CFArrayRemoveAllValues', 'CFStringGetLineBounds', 'CFTimeZoneCopyAbbreviation', 'CFFileSecurityGetGroup', 'CFBinaryHeapContainsValue', 'CFURLCreatePropertyFromResource', 'CFRunLoopCopyCurrentMode', 'CFSwapInt64HostToLittle', 'CFArrayExchangeValuesAtIndices', 'CFURLCreateStringByAddingPercentEscapes', 'CFStringCompareWithOptionsAndLocale', 'CFStringNormalize', 'CFRunLoopContainsSource', 'CFLocaleCreateCanonicalLanguageIdentifierFromString', 'CFDictionaryApplyFunction', 'CFURLCreateStringByReplacingPercentEscapesUsingEncoding', 'CFUUIDCreateString', 'CFNumberFormatterCreate', 'CFXMLParserGetStatusCode', 'CFCalendarGetMinimumRangeOfUnit', 'CFBitVectorCreateCopy', 'CFTimeZoneGetSecondsFromGMT', 'CFRunLoopTimerDoesRepeat', 'CFStringGetParagraphBounds', 'CFBundleCopyResourceURLsOfTypeInDirectory', 'CFStringTokenizerGetCurrentSubTokens', 'CFBundleCopyBundleURL', 'CFNotificationCenterPostNotification', 'CFXMLTreeCreateFromData', 'CFRunLoopGetMain', 'CFSwapInt64BigToHost', 'CFFileDescriptorCreate', 'CFBagCreateMutable', 'CFURLCreateWithString', 'CFRunLoopSourceGetContext', 'CFFileSecurityCreateCopy', 'CFStringCreateMutableWithExternalCharactersNoCopy', 'CFAttributedStringGetMutableString', 'CFDictionaryCreate', 'CFNumberGetByteSize', 'CFCharacterSetCreateWithBitmapRepresentation', 'CFBundleGetValueForInfoDictionaryKey', 'CFWriteStreamUnscheduleFromRunLoop', 'CFURLCreateFromFileSystemRepresentation', 'CFStringConvertNSStringEncodingToEncoding', 'CFRunLoopTimerSetNextFireDate', 'CFXMLParserGetLineNumber', 'CFPreferencesAddSuitePreferencesToApp', 'CFSetApplyFunction', 'CFURLCopyFileSystemPath', 'CFBinaryHeapGetValues', 'CFRunLoopRemoveSource', 'CFXMLCreateStringByEscapingEntities', 'CFPreferencesSetMultiple', 'CFStringGetSmallestEncoding', 'CFNumberGetValue', 'CFUserNotificationCancel', 'CFWriteStreamGetTypeID', 'CFNotificationCenterPostNotificationWithOptions', 'CFCalendarSetMinimumDaysInFirstWeek', 'CFRetain', 'CFStringGetCharacters', 'CFDateGetTypeID', 'CFPreferencesCopyMultiple', 'CFBundleLoadExecutableAndReturnError', 'CFNumberFormatterCreateNumberFromString', 'CFRunLoopGetCurrent', 'CFURLEnumeratorGetDescendentLevel', 'CFBagApplyFunction', 'CFCharacterSetCreateWithCharactersInString', 'CFPreferencesCopyKeyList', 'CFUUIDGetConstantUUIDWithBytes', 'CFCharacterSetCreateMutableCopy', 'CFAttributedStringBeginEditing', 'CFSocketGetSocketFlags', 'CFReadStreamHasBytesAvailable', 'CFPreferencesCopyApplicationList', 'CFUserNotificationReceiveResponse', 'CFUserNotificationDisplayAlert', 'CFURLResourceIsReachable', 'CFCalendarSetFirstWeekday', 'CFSocketIsValid', 'CFArrayBSearchValues', 'CFTreeGetNextSibling', 'CFURLCreateCopyDeletingPathExtension', 'CFCharacterSetCreateBitmapRepresentation', 'CFXMLParserGetDocument', 'CFXMLNodeGetTypeCode', 'CFCharacterSetIsSupersetOfSet', 'CFAbsoluteTimeGetGregorianDate', 'CFCalendarSetTimeZone', 'CFSetCreateMutableCopy', 'CFXMLTreeCreateWithNode', 'CFRunLoopTimerGetOrder', 'CFPreferencesCopyAppValue', 'CFSocketCreateWithSocketSignature'] >>> 'NSRGBColorSpaceModel' 'NSRGBColorSpaceModel' >>> s = 'NSRGBColorSpaceModel' >>> s.replace('NS', '') 'RGBColorSpaceModel' >>> s.replace('NS', '').replace('ColorSpaceModel', '') 'RGB' >>> imgrep.getBitmapDataPlanes_() (, None, None, None, None) >>> imgrep.getBitmapDataPlanes_()[0] >>> imgmemory = imgrep.getBitmapDataPlanes_()[0] >>> imgmemory.ndim 1L >>> type(imgmemory) >>> import numpy >>> numpy.array(imgmemory) array([203, 200, 211, ..., 20, 11, 255], dtype=uint8) >>> numpy.array(imgmemory).shape (1492000,) >>> imgrep.size CGImageSource=0x7fb2cd85aba0> >>> imgrep.size() >>> imgrep.size().width 500.0 >>> numpy.array(imgmemory).reshape(imgrep.size().width, imgrep.size().height) Traceback (most recent call last): File "", line 1, in ValueError: total size of new array must be unchanged >>> numpy.array(imgmemory, dtype="float32").reshape(imgrep.size().width, imgrep.size().height) Traceback (most recent call last): File "", line 1, in ValueError: total size of new array must be unchanged >>> numpy.array(imgmemory, dtype="uint32").reshape(imgrep.size().width, imgrep.size().height) Traceback (most recent call last): File "", line 1, in ValueError: total size of new array must be unchanged >>> numpy.array(imgmemory, dtype="uint8").reshape(imgrep.size().width, imgrep.size().height) Traceback (most recent call last): File "", line 1, in ValueError: total size of new array must be unchanged >>> numpy.array(imgmemory, dtype="int").reshape(imgrep.size().width, imgrep.size().height) Traceback (most recent call last): File "", line 1, in ValueError: total size of new array must be unchanged >>> int(imgrep.size().width * imgrep.size().height) 373000 >>> numpy.array(imgmemory, dtype="int").reshape(imgrep.size().width, imgrep.size().height, 3) Traceback (most recent call last): File "", line 1, in ValueError: total size of new array must be unchanged >>> numpy.array(imgmemory, dtype="int").reshape(imgrep.size().width, imgrep.size().height, 4) array([[[203, 200, 211, 255], [204, 201, 212, 255], [204, 201, 212, 255], ..., [225, 220, 226, 255], [225, 220, 226, 255], [225, 220, 226, 255]], [[226, 221, 227, 255], [226, 221, 227, 255], [225, 220, 226, 255], ..., [ 42, 33, 38, 255], [ 45, 36, 41, 255], [ 47, 38, 43, 255]], [[ 49, 40, 45, 255], [ 52, 43, 48, 255], [ 53, 44, 49, 255], ..., [227, 222, 228, 255], [227, 222, 228, 255], [227, 222, 228, 255]], ..., [[180, 180, 192, 255], [180, 180, 192, 255], [182, 185, 194, 255], ..., [152, 154, 175, 255], [146, 151, 171, 255], [149, 154, 174, 255]], [[155, 160, 180, 255], [151, 156, 176, 255], [149, 154, 173, 255], ..., [186, 189, 194, 255], [183, 186, 191, 255], [180, 183, 190, 255]], [[180, 182, 197, 255], [178, 180, 195, 255], [181, 181, 193, 255], ..., [ 29, 20, 11, 255], [ 29, 20, 11, 255], [ 29, 20, 11, 255]]]) >>> ndimage = numpy.array(imgmemory, dtype="int").reshape(imgrep.size().width, imgrep.size().height, 4) >>> import scipy.misc Traceback (most recent call last): File "", line 1, in ImportError: No module named scipy.misc >>> import scipy.misc >>> import scipy.ndimage >>> from scipy import misc, ndimage >>> from PIL import Image Traceback (most recent call last): File "", line 1, in ImportError: No module named PIL >>> ndimage = numpy.array(imgmemory, dtype="int").reshape(imgrep.size().width, imgrep.size().height, 4) >>> from PIL import Image >>> Image.fromarray(ndimage).show() Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 2137, in fromarray raise TypeError("Cannot handle this data type") TypeError: Cannot handle this data type >>> ndimage.dtype dtype('int64') >>> Image.fromarray(ndimage.astype('uint32')).show() Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 2137, in fromarray raise TypeError("Cannot handle this data type") TypeError: Cannot handle this data type >>> Image.fromarray(ndimage.astype('uint8')).show() >>> Image.fromarray(ndimage.astype('int')).show() Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 2137, in fromarray raise TypeError("Cannot handle this data type") TypeError: Cannot handle this data type >>> ndimage.max >>> ndimage.max() 255 >>> ndimage.min() 0 >>> ndimage.astype('uint8').max() 255 >>> ndimage.astype('uint8').min() 0 >>> ndimage.astype('int32').min() 0 >>> ndimage.astype('int32').min() 0 >>> Image.fromarray(ndimage.astype('int32')).show() Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 2137, in fromarray raise TypeError("Cannot handle this data type") TypeError: Cannot handle this data type >>> Image.fromarray(ndimage.astype('int32'), mode='RGBA') >>> Image.fromarray(ndimage.astype('int32'), mode='RGBA').show() >>> Image.fromarray(ndimage.astype('int32'), mode='ARGB').show() Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 2156, in fromarray return frombuffer(mode, size, obj, "raw", rawmode, 0, 1) File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 2107, in frombuffer return frombytes(mode, size, data, decoder_name, args) File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 2032, in frombytes im = new(mode, size) File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 1998, in new return Image()._new(core.fill(mode, size, color)) ValueError: unrecognized mode >>> Image.fromarray(ndimage.astype('int32'), mode='RGBa').show() Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 2156, in fromarray return frombuffer(mode, size, obj, "raw", rawmode, 0, 1) File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 2107, in frombuffer return frombytes(mode, size, data, decoder_name, args) File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 2033, in frombytes im.frombytes(data, decoder_name, args) File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 710, in frombytes d = _getdecoder(self.mode, decoder_name, args) File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 411, in _getdecoder return decoder(mode, *args + extra) ValueError: unknown raw mode >>> Image.fromarray(ndimage.astype('int32'), mode='RGBA').show() >>> Image.fromarray(ndimage.astype('int32').T, mode='RGBA').show() >>> img CGImageSource=0x7fb2cd85aba0" )> >>> from PIL import ImageMode >>> ImageMode.ModeDescriptor >>> ImageMode._modes {'CMYK': , 'I;16': , 'PA': , 'I;16L': , 'F': , 'I': , 'LA': , 'L': , 'LAB': , 'RGBX': , 'YCbCr': , 'P': , 'RGB': , '1': , 'RGBA': , 'I;16B': } >>> Image.fromarray(ndimage.astype('int32').T, mode='RGBX').show() >>> Image.fromarray(ndimage.astype('int32'), mode='RGBX').show() >>> Image.fromarray(ndimage.astype('uint32'), mode='RGBX').show() >>> Image.fromarray(ndimage.astype('uint32'), mode='RGB').show() >>> Image.fromarray(ndimage.astype('uint32'), mode='RGBA').show() >>> Image.fromarray(ndimage.astype('uint32'), mode='L').show() Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 2147, in fromarray raise ValueError("Too many dimensions: %d > %d." % (ndim, ndmax)) ValueError: Too many dimensions: 3 > 2. >>> Image.fromarray(ndimage.astype('uint32'), mode='LA').show() >>> Image.fromarray(ndimage.astype('uint32'), mode='I;16').show() >>> Image.fromarray(ndimage.astype('uint32'), mode='I;16L').show() >>> Image.fromarray(ndimage.astype('uint32'), mode='I').show() Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 2147, in fromarray raise ValueError("Too many dimensions: %d > %d." % (ndim, ndmax)) ValueError: Too many dimensions: 3 > 2. >>> Image.fromarray(ndimage.astype('uint32'), mode='I;16B').show() >>> imgmemory >>> imgmemory.itemsize 1L >>> imgmemory.ndim 1L >>> imgmemory.shape (1492000L,) >>> imgmemory.strides (1L,) >>> imgmemory.suboffsets >>> imgmemory.readonly False >>> imgrep.bitmapData CGImageSource=0x7fb2cd85aba0> >>> imgrep.bitmapData() >>> imgrep.bitmapData().shape (1492000L,) >>> imgrep.bitsPerPixel CGImageSource=0x7fb2cd85aba0> >>> imgrep.bitsPerPixel() 32 >>> imgrep.bitsPerSample() 8 >>> imgrep.bytesPerPlane() 1492000 >>> imgrep.bytesPerRow() 2000 >>> imgrep.bitmapFormat() 0 >>> imgrep.hasAlpha() False >>> imgrep.numberOfPlanes() 1 >>> imgrep.pixelsHigh() 746 >>> imgrep.pixelsWide() 500 >>> imgrep.bitmapData().shape (1492000L,) >>> imgrep.bitmapData().shape / 3 Traceback (most recent call last): File "", line 1, in TypeError: unsupported operand type(s) for /: 'tuple' and 'int' >>> imgrep.bitmapData().shape // 3 Traceback (most recent call last): File "", line 1, in TypeError: unsupported operand type(s) for //: 'tuple' and 'int' >>> imgrep.bitmapData().shape[0] // 3 497333L >>> imgrep.bitmapData().shape[0] // 3 // 500 994L >>> imgrep.bitmapData().shape[0] // 4 // 500 746L >>> imgrep.numberOfPlanes() 1 >>> imgrep.setAlpha_(True) >>> imgrep.bitmapData().shape[0] // 4 // 500 746L >>> numpy.array(imgrep.bitmapData(), dtype='uint32') array([203, 200, 211, ..., 20, 11, 255], dtype=uint32) >>> ndimage = numpy.array(imgrep.bitmapData(), dtype='uint32') >>> ndimage.shape (1492000,) >>> ndimage.reshape(imgrep.pixelsHigh(), imgrep.pixelsWide(), 4) array([[[203, 200, 211, 255], [204, 201, 212, 255], [204, 201, 212, 255], ..., [ 46, 41, 48, 255], [ 52, 47, 54, 255], [ 55, 50, 57, 255]], [[203, 200, 211, 255], [204, 201, 212, 255], [204, 201, 212, 255], ..., [ 41, 36, 43, 255], [ 42, 37, 44, 255], [ 43, 38, 45, 255]], [[206, 200, 212, 255], [207, 201, 213, 255], [205, 202, 213, 255], ..., [ 48, 45, 52, 255], [ 46, 43, 50, 255], [ 45, 42, 49, 255]], ..., [[152, 155, 174, 255], [147, 150, 169, 255], [150, 152, 173, 255], ..., [ 31, 22, 13, 255], [ 30, 21, 12, 255], [ 30, 21, 12, 255]], [[150, 153, 172, 255], [148, 151, 170, 255], [151, 153, 174, 255], ..., [ 30, 21, 12, 255], [ 30, 21, 12, 255], [ 29, 20, 11, 255]], [[148, 151, 170, 255], [146, 149, 168, 255], [149, 151, 172, 255], ..., [ 29, 20, 11, 255], [ 29, 20, 11, 255], [ 29, 20, 11, 255]]], dtype=uint32) >>> Image.fromarray(ndimage.reshape(imgrep.pixelsHigh(), imgrep.pixelsWide(), 4)).show() Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 2137, in fromarray raise TypeError("Cannot handle this data type") TypeError: Cannot handle this data type >>> Image.fromarray(ndimage.reshape(imgrep.pixelsHigh(), imgrep.pixelsWide(), 4), mode='RGBA').show() >>> Image.fromarray(ndimage.reshape(imgrep.pixelsHigh(), imgrep.pixelsWide(), 4), mode='RGBX').show() >>> ndimage = numpy.array(imgrep.bitmapData(), dtype='uint32', order='C') >>> Image.fromarray(ndimage.reshape(imgrep.pixelsHigh(), imgrep.pixelsWide(), 4), mode='RGBX').show() >>> Image.fromarray(ndimage.reshape(imgrep.pixelsHigh(), imgrep.pixelsWide(), 4), mode='RGBA').show() >>> ndimage = numpy.array(imgrep.bitmapData(), dtype='uint32', order='F') >>> Image.fromarray(ndimage.reshape(imgrep.pixelsHigh(), imgrep.pixelsWide(), 4), mode='RGBA').show() >>> img CGImageSource=0x7fb2cd85aba0" )> >>> img.size CGImageSource=0x7fb2cd85aba0" )>> >>> img.size() >>> imgrep.bitmapFormat() 0 >>> imgrep.bitsPerPixel() 32 >>> imgrep.bitsPerSample() 8 >>> imgrep.allPropertyKeys() ( ) >>> imgrep.getBitmapDataPlanes_() (, None, None, None, None) >>> imgrep.getBitmapDataPlanes_(0) Traceback (most recent call last): File "", line 1, in TypeError: function takes exactly 0 arguments (1 given) >>> imgrep.isPlanar() False >>> imgrep.isPlanar() False >>> imgrep NSBitmapImageRep 0x7fb2cd85c750 Size={500, 746} ColorSpace=sRGB IEC61966-2.1 colorspace BPS=8 BPP=32 Pixels=500x746 Alpha=YES Planar=NO Format=0 CurrentBacking= CGImageSource=0x7fb2cd85aba0 >>> Image.fromarray(imgrep.bitmapData()) Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 2124, in fromarray arr = obj.__array_interface__ AttributeError: 'memoryview' object has no attribute '__array_interface__' >>> imgrep.bitmapData() >>> type(imgmemory) >>> imgmemory.tobytes >>> imgmemory.tobytes() '\xcb\xc8\xd3\xff\xcc\xc9\xd4\xff\xcc\xc9\xd4\xff\xcb\xc8\xd3\xff\xcb\xc8\xd3\xff\xcd\xca\xd5\xff [...]' >>> imgmemory.itemsize 1L >>> Image.fromarray(imgmemory) Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 2124, in fromarray arr = obj.__array_interface__ AttributeError: 'memoryview' object has no attribute '__array_interface__' >>> Image.frombuffer('RGBA', (imgrep.pixelsWide(), imgrep.pixelsHigh()), imgmemory) /usr/local/bin/bpython:2: RuntimeWarning: the frombuffer defaults may change in a future release; for portability, change the call to read: frombuffer(mode, size, data, 'raw', mode, 0, 1) # EASY-INSTALL-ENTRY-SCRIPT: 'bpython==0.13','console_scripts','bpython' >>> Image.frombuffer('RGBA', (imgrep.pixelsWide(), imgrep.pixelsHigh()), imgmemory).show() >>> imgmemory >>> >>> quit() ASIO-OTUS:tmp$