home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.2 (Developer)
/
NS_dev_3.2.iso
/
NextDeveloper
/
Headers
/
objc
/
Protocol.h
< prev
next >
Wrap
Text File
|
1991-12-20
|
884b
|
44 lines
/*
Protocol.h
Copyright 1991 NeXT, Inc.
*/
#ifndef _OBJC_PROTOCOL_H_
#define _OBJC_PROTOCOL_H_
#import <objc/Object.h>
struct objc_method_description {
SEL name;
char *types;
};
struct objc_method_description_list {
int count;
struct objc_method_description list[1];
};
@interface Protocol : Object
{
@private
char *protocol_name;
struct objc_protocol_list *protocol_list;
struct objc_method_description_list *instance_methods, *class_methods;
}
/* Obtaining attributes intrinsic to the protocol */
- (const char *)name;
/* Testing protocol conformance */
- (BOOL) conformsTo: (Protocol *)aProtocolObject;
/* Looking up information specific to a protocol */
- (struct objc_method_description *) descriptionForInstanceMethod:(SEL)aSel;
- (struct objc_method_description *) descriptionForClassMethod:(SEL)aSel;
@end
#endif /* _OBJC_PROTOCOL_H_ */