mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Substitute (NSString*) for (id <String>)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1945 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ed85bf15d5
commit
79194a56fa
34 changed files with 212 additions and 212 deletions
|
@ -59,14 +59,14 @@ NSString* StreamException = @"StreamException";
|
|||
return 0;
|
||||
}
|
||||
|
||||
- (int) writeFormat: (id <String>)format
|
||||
- (int) writeFormat: (NSString*)format
|
||||
arguments: (va_list)arg
|
||||
{
|
||||
[self subclassResponsibility:_cmd];
|
||||
return 0;
|
||||
}
|
||||
|
||||
- (int) writeFormat: (id <String>)format, ...
|
||||
- (int) writeFormat: (NSString*)format, ...
|
||||
{
|
||||
int ret;
|
||||
va_list ap;
|
||||
|
@ -77,27 +77,27 @@ NSString* StreamException = @"StreamException";
|
|||
return ret;
|
||||
}
|
||||
|
||||
- (int) readFormat: (id <String>)format
|
||||
- (int) readFormat: (NSString*)format
|
||||
arguments: (va_list)arg
|
||||
{
|
||||
[self subclassResponsibility:_cmd];
|
||||
return 0;
|
||||
}
|
||||
|
||||
- (int) readFormat: (id <String>)format, ...
|
||||
- (int) readFormat: (NSString*)format, ...
|
||||
{
|
||||
[self subclassResponsibility:_cmd];
|
||||
return 0;
|
||||
}
|
||||
|
||||
- (void) writeLine: (id <String>)l
|
||||
- (void) writeLine: (NSString*)l
|
||||
{
|
||||
const char *s = [l cStringNoCopy];
|
||||
[self writeBytes:s length:strlen(s)];
|
||||
[self writeBytes:"\n" length:1];
|
||||
}
|
||||
|
||||
- (id <String>) readLine
|
||||
- (NSString*) readLine
|
||||
{
|
||||
char *l;
|
||||
[self readFormat: @"%a[^\n]\n", &l];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue