X-Git-Url: https://git.saurik.com/apple/objc4.git/blobdiff_plain/7af964d1562d70f51a8e9aca24215ac3d83d0624..8070259c3936ee823b758fc1ad1645ae016ba500:/runtime/Protocol.h diff --git a/runtime/Protocol.h b/runtime/Protocol.h index 1b133b8..0e78850 100644 --- a/runtime/Protocol.h +++ b/runtime/Protocol.h @@ -28,10 +28,29 @@ #ifndef _OBJC_PROTOCOL_H_ #define _OBJC_PROTOCOL_H_ -#include +#if !__OBJC__ + +// typedef Protocol is here: +#include + + +#elif __OBJC2__ + +#include + +// All methods of class Protocol are unavailable. +// Use the functions in objc/runtime.h instead. -/* Warning: All of these methods will disappear in 64-bit. */ +__OSX_AVAILABLE_STARTING(__MAC_10_0, __IPHONE_2_0) +@interface Protocol : NSObject +@end + + +#else +#include + +__OSX_AVAILABLE_STARTING(__MAC_10_0, __IPHONE_2_0) @interface Protocol : Object { @private @@ -51,9 +70,13 @@ /* Looking up information specific to a protocol */ -- (struct objc_method_description *) descriptionForInstanceMethod:(SEL)aSel DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER; -- (struct objc_method_description *) descriptionForClassMethod:(SEL)aSel DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER; +- (struct objc_method_description *) descriptionForInstanceMethod:(SEL)aSel + __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5, __IPHONE_2_0,__IPHONE_2_0); +- (struct objc_method_description *) descriptionForClassMethod:(SEL)aSel + __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5, __IPHONE_2_0,__IPHONE_2_0); @end +#endif + #endif /* _OBJC_PROTOCOL_H_ */