mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28787 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c132d1a95b
commit
6bf3a906e9
13 changed files with 53 additions and 509 deletions
|
@ -107,12 +107,6 @@ extern BOOL GSScanDouble(unichar*, unsigned, double*);
|
|||
@end
|
||||
@class GSMutableArray;
|
||||
@class GSMutableDictionary;
|
||||
@class NSImmutableString;
|
||||
@interface NSImmutableString : NSObject // Help the compiler
|
||||
@end
|
||||
@class GSImmutableString;
|
||||
@interface GSImmutableString : NSObject // Help the compiler
|
||||
@end
|
||||
|
||||
/*
|
||||
* Cache classes and method implementations for speed.
|
||||
|
@ -5068,31 +5062,3 @@ static NSFileManager *fm = nil;
|
|||
|
||||
@end
|
||||
|
||||
|
||||
/**
|
||||
* GNUstep specific (non-standard) additions to the NSMutableString class.
|
||||
* The methods in this category are not available in MacOS-X
|
||||
*/
|
||||
@implementation NSMutableString (GNUstep)
|
||||
|
||||
/**
|
||||
* Returns a proxy to the receiver which will allow access to the
|
||||
* receiver as an NSString, but which will not allow any of the
|
||||
* extra NSMutableString methods to be used. You can use this method
|
||||
* to provide other code with read-only access to a mutable string
|
||||
* you own.
|
||||
*/
|
||||
- (NSString*) immutableProxy
|
||||
{
|
||||
if ([self isKindOfClass: GSMutableStringClass])
|
||||
{
|
||||
return AUTORELEASE([[GSImmutableString alloc] initWithString: self]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return AUTORELEASE([[NSImmutableString alloc] initWithString: self]);
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue