1 ! Copyright (C) 2006, 2007 Slava Pestov
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: alien.c-types alien.syntax classes.struct ;
10 FUNCTION: c-string sel_getName ( SEL aSelector ) ;
12 FUNCTION: char sel_isMapped ( SEL aSelector ) ;
14 FUNCTION: SEL sel_registerName ( c-string str ) ;
18 TYPEDEF: void* Protocol
24 CONSTANT: CLS_CLASS 0x1
25 CONSTANT: CLS_META 0x2
26 CONSTANT: CLS_INITIALIZED 0x4
27 CONSTANT: CLS_POSING 0x8
28 CONSTANT: CLS_MAPPED 0x10
29 CONSTANT: CLS_FLUSH_CACHE 0x20
30 CONSTANT: CLS_GROW_CACHE 0x40
31 CONSTANT: CLS_NEED_BIND 0x80
32 CONSTANT: CLS_METHOD_ARRAY 0x100
34 FUNCTION: int objc_getClassList ( void* buffer, int bufferLen ) ;
36 FUNCTION: Class objc_getClass ( c-string class ) ;
38 FUNCTION: Class objc_getMetaClass ( c-string class ) ;
40 FUNCTION: Protocol objc_getProtocol ( c-string class ) ;
42 FUNCTION: Class objc_allocateClassPair ( Class superclass, c-string name, size_t extraBytes ) ;
43 FUNCTION: void objc_registerClassPair ( Class cls ) ;
45 FUNCTION: id class_createInstance ( Class class, uint additionalByteCount ) ;
47 FUNCTION: id class_createInstanceFromZone ( Class class, uint additionalByteCount, void* zone ) ;
49 FUNCTION: Method class_getInstanceMethod ( Class class, SEL selector ) ;
51 FUNCTION: Method class_getClassMethod ( Class class, SEL selector ) ;
53 FUNCTION: Method* class_copyMethodList ( Class class, uint* outCount ) ;
55 FUNCTION: Class class_getSuperclass ( Class cls ) ;
57 FUNCTION: c-string class_getName ( Class cls ) ;
59 FUNCTION: char class_addMethod ( Class class, SEL name, void* imp, void* types ) ;
61 FUNCTION: char class_addProtocol ( Class class, Protocol protocol ) ;
63 FUNCTION: uint method_getNumberOfArguments ( Method method ) ;
65 FUNCTION: void* method_copyReturnType ( Method method ) ;
67 FUNCTION: void* method_copyArgumentType ( Method method, uint index ) ;
69 FUNCTION: void* method_getTypeEncoding ( Method method ) ;
71 FUNCTION: SEL method_getName ( Method method ) ;
73 FUNCTION: void* method_setImplementation ( Method method, void* imp ) ;
74 FUNCTION: void* method_getImplementation ( Method method ) ;
76 FUNCTION: Class object_getClass ( id object ) ;