home *** CD-ROM | disk | FTP | other *** search
- /* NSObjCRuntime.h
- Language terminology
- Copyright 1994, NeXT Computer, Inc.
- */
-
- #if defined(WIN32)
- #undef FOUNDATION_EXPORT
- #if defined(NSBUILDINGFOUNDATION)
- #define FOUNDATION_EXPORT __declspec(dllexport)
- #else
- #define FOUNDATION_EXPORT __declspec(dllimport)
- #endif
- #if !defined(FOUNDATION_IMPORT)
- #define FOUNDATION_IMPORT __declspec(dllimport)
- #endif
- #endif
-
- #if !defined(FOUNDATION_EXPORT)
- #define FOUNDATION_EXPORT
- #endif
-
- #if !defined(FOUNDATION_IMPORT)
- #define FOUNDATION_IMPORT
- #endif
-
- /*************** Types ***************/
-
- #import <objc/objc.h>
-
- /*************** Functions ***************/
-
- @class NSString;
-
- FOUNDATION_EXPORT
- extern NSString *NSStringFromSelector(SEL aSelector);
- FOUNDATION_EXPORT
- extern SEL NSSelectorFromString(NSString *aSelectorName);
- FOUNDATION_EXPORT
- extern Class NSClassFromString(NSString *aClassName);
- FOUNDATION_EXPORT
- extern NSString *NSStringFromClass(Class aClass);
- FOUNDATION_EXPORT
- extern const char *NSGetSizeAndAlignment(const char *typePtr, unsigned int *sizep, unsigned int *alignp);
-
- /*************** Constants ***************/
-
- #if !defined(YES)
- #define YES (BOOL)1
- #endif
-
- #if !defined(NO)
- #define NO (BOOL)0
- #endif
-
- #if !defined(nil)
- #define nil (id)0
- #endif
-
- #if !defined(Nil)
- #define Nil (Class)0
- #endif
-