mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Define NSString and NSMutableString as protocols. Make the classes
conform to them. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@239 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6434193cab
commit
335dbd060a
1 changed files with 8 additions and 2 deletions
|
@ -54,7 +54,7 @@ typedef enum _NSStringEncoding
|
|||
NSNonLossyASCIIStringEncoding
|
||||
} NSStringEncoding;
|
||||
|
||||
@interface NSString : NSObject <NSCoding, NSCopying, NSMutableCopying>
|
||||
@protocol NSString <NSCoding, NSCopying, NSMutableCopying>
|
||||
|
||||
// Creating Temporary Strings
|
||||
|
||||
|
@ -221,13 +221,17 @@ typedef enum _NSStringEncoding
|
|||
|
||||
@end
|
||||
|
||||
@interface NSString : NSObject <NSString>
|
||||
@end
|
||||
|
||||
/* This private method will go away later. */
|
||||
@interface NSString (NSCStringAccess)
|
||||
- (const char *) _cStringContents;
|
||||
@end
|
||||
|
||||
@class NSMutableString;
|
||||
|
||||
@interface NSMutableString : NSString
|
||||
@protocol NSMutableString <NSString>
|
||||
|
||||
// Creating Temporary Strings
|
||||
|
||||
|
@ -261,6 +265,8 @@ compiler warning.
|
|||
|
||||
@end
|
||||
|
||||
@interface NSMutableString : NSString <NSMutableString>
|
||||
@end
|
||||
|
||||
/* Because the compiler thinks that @".." strings are NXConstantString's. */
|
||||
#include <foundation/NSCString.h>
|
||||
|
|
Loading…
Reference in a new issue