Un aperçu du format Mach-O, en particulier où sont situées les chaînes de caractères constantes et où sont définies les classes, méthodes ObjC 1.0/2.0. Mais tout cela avec un besoin concret effectivement rencontré : pouvoir réusiner du code après sa compilation.
73. 0000dcf0 84 01 00 00 88 00 00 00 b0 00 00 00 00 00 00 00
0000dd00 55 a6 00 00 00 00 00 00 3f a6 00 00 00 00 00 00
0000dd10 18 db 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000dd20 10 dc 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000dd30 b8 dc 00 00 00 00 00 00 81 00 00 00 28 00 00 00
........
__DATA, __objc_const
0000a63f R S S C o l l e c t i o n V i e
0000a64f w I t e m 00 04 10 00 R S S W i n d
0000a65f o w 00 R S S S o l a r W i n d s
0000a66f V i e w 00 11 11 00 R S S S o l a r
0000a67f W i n d s S e t t i n g s 00 R S
0000a68f S C o l l e c t i o n V i e w I
0000a69f t e m L a b e l 00 R S S S o l a
0000a6af r W i n d s C o n f i g u r a t
........
__TEXT, __objc_classname
79. 0000d4a0 00 00 00 00 00 00 00 00 c8 07 00 00 00 00 00 00
0000d4b0 b6 88 00 00 00 00 00 00 09 00 00 00 00 00 00 00
0000d4c0 00 00 00 00 00 00 00 00 c8 07 00 00 00 00 00 00
0000d4d0 c0 88 00 00 00 00 00 00 04 00 00 00 00 00 00 00
0000d4e0 00 00 00 00 00 00 00 00 c8 07 00 00 00 00 00 00
........
__DATA, __cfstring
000088b6 t h u m b n a i l 00 n a m e 00 t
000088c6 a g 00 00 54 40 " N S S t r i n g "
000088d6 2c 26 2c 4e 2c 56 _ t h u m b n a i l
........
........
00008d16 51 38 5e 63 31 36 00 R S S A b o u t B
00008d26 o x W i n d o w C o n t r o l l
00008d36 e r 00 C F B u n d l e N a m e 00
........
__TEXT, __cstring
80. Références
• OS X ABI Mach-O File Format Reference
developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/MachORuntime/
• mach-o header files
/usr/include/mach-o/
• class-dump
github.com/nygard/class-dump
• otool
www.opensource.apple.com/source/cctools/cctools-829/otool/
• Really Slick Screen Savers OS X Ports
s.sudre.free.fr/Software.html