OSDN Git Service

In libobjc/:
[pf3gnuchains/gcc-fork.git] / libobjc / objc / deprecated / Object.h
1 /* The following methods were deprecated in GCC 4.6.0 and will be
2    removed in the next GCC release.  */
3 @interface Object (Deprecated)
4 /* Initializing classes and instances */
5 + initialize;
6 - init;
7
8 /* Creating, freeing, and copying instances */
9 + new;
10 + alloc;
11 - free;
12 - copy;
13 - shallowCopy;
14 - deepen;
15 - deepCopy;
16
17 /* Identifying classes */
18 - (Class)superClass;
19 - (MetaClass)metaClass;
20 - (const char *)name;
21
22 /* Identifying and comparing objects */
23 - self;
24 - (unsigned int)hash;
25 - (int)compare:(id)anotherObject;
26
27 /* Testing object type */
28 - (BOOL)isMetaClass;
29 - (BOOL)isClass;
30 - (BOOL)isInstance;
31
32 /* Testing inheritance relationships */
33 - (BOOL)isKindOf:(Class)aClassObject;
34 - (BOOL)isMemberOf:(Class)aClassObject;
35 - (BOOL)isKindOfClassNamed:(const char *)aClassName;
36 - (BOOL)isMemberOfClassNamed:(const char *)aClassName;
37
38 /* Testing class functionality */
39 + (BOOL)instancesRespondTo:(SEL)aSel;
40 - (BOOL)respondsTo:(SEL)aSel;
41
42 /* Testing protocol conformance */
43 - (BOOL)conformsTo:(Protocol*)aProtocol;
44
45 /* Introspection */
46 + (IMP)instanceMethodFor:(SEL)aSel;
47 - (IMP)methodFor:(SEL)aSel;
48 + (struct objc_method_description *)descriptionForInstanceMethod:(SEL)aSel;
49 - (struct objc_method_description *)descriptionForMethod:(SEL)aSel;
50
51 /* Forwarding */
52 - (retval_t)forward:(SEL)aSel :(arglist_t)argFrame;
53 - (retval_t)performv:(SEL)aSel :(arglist_t)argFrame;
54
55 /* Posing */
56 + poseAs:(Class)aClassObject;
57 - (Class)transmuteClassTo:(Class)aClassObject;
58
59 /* Archiving */
60 + (int)version;
61 + setVersion:(int)aVersion;
62
63 + (int)streamVersion: (TypedStream*)aStream; /* __attribute__ ((deprecated)) */
64
65 - read: (TypedStream*)aStream; /* __attribute__ ((deprecated)) */
66 - write: (TypedStream*)aStream; /* __attribute__ ((deprecated)) */
67 - awake; /* __attribute__ ((deprecated)) */
68
69 @end
70