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:
mccallum 1996-11-24 17:30:39 +00:00
parent 182592f4a1
commit 7202be0561
34 changed files with 212 additions and 212 deletions

View file

@ -40,19 +40,19 @@
It reads the CStream signature at the beginning of the file, and It reads the CStream signature at the beginning of the file, and
automatically creates the appropriate subclass of CStream with automatically creates the appropriate subclass of CStream with
the correct format version. */ the correct format version. */
+ cStreamReadingFromFile: (id <String>) filename; + cStreamReadingFromFile: (NSString*) filename;
+ cStreamReadingFromStream: (id <Streaming>) stream; + cStreamReadingFromStream: (id <Streaming>) stream;
/* These are standard ways to create a new CStream with a Stream /* These are standard ways to create a new CStream with a Stream
that is open for writing. */ that is open for writing. */
- initForWritingToFile: (id <String>) filename; - initForWritingToFile: (NSString*) filename;
- initForWritingToStream: (id <Streaming>) stream; - initForWritingToStream: (id <Streaming>) stream;
- initForWritingToStream: (id <Streaming>) s - initForWritingToStream: (id <Streaming>) s
withFormatVersion: (int)version; withFormatVersion: (int)version;
+ cStreamWritingToStream: (id <Streaming>) stream; + cStreamWritingToStream: (id <Streaming>) stream;
+ cStreamWritingToFile: (id <String>) filename; + cStreamWritingToFile: (NSString*) filename;
@end @end

View file

@ -31,18 +31,18 @@
- (void) encodeValueOfCType: (const char*) type - (void) encodeValueOfCType: (const char*) type
at: (const void*) d at: (const void*) d
withName: (id <String>) name; withName: (NSString*) name;
- (void) decodeValueOfCType: (const char*) type - (void) decodeValueOfCType: (const char*) type
at: (void*) d at: (void*) d
withName: (id <String> *) namePtr; withName: (NSString* *) namePtr;
- (void) encodeWithName: (id <String>) name - (void) encodeWithName: (NSString*) name
valuesOfCTypes: (const char *) types, ...; valuesOfCTypes: (const char *) types, ...;
- (void) decodeWithName: (id <String> *)name - (void) decodeWithName: (NSString* *)name
valuesOfCTypes: (const char *)types, ...; valuesOfCTypes: (const char *)types, ...;
- (void) encodeName: (id <String>) name; - (void) encodeName: (NSString*) name;
- (void) decodeName: (id <String> *) name; - (void) decodeName: (NSString* *) name;
- (void) encodeIndent; - (void) encodeIndent;
- (void) decodeIndent; - (void) decodeIndent;

View file

@ -64,10 +64,10 @@
unsigned fref_counter; /* Keep track of unused fref numbers */ unsigned fref_counter; /* Keep track of unused fref numbers */
} }
- initForWritingToFile: (id <String>) filename; - initForWritingToFile: (NSString*) filename;
- initForWritingToFile: (id <String>) filename - initForWritingToFile: (NSString*) filename
withCStreamClass: (Class) cStreamClass; withCStreamClass: (Class) cStreamClass;
- initForWritingToFile: (id <String>) filename - initForWritingToFile: (NSString*) filename
withFormatVersion: (int) version withFormatVersion: (int) version
cStreamClass: (Class)scc cStreamClass: (Class)scc
cStreamFormatVersion: (int) cStreamFormatVersion; cStreamFormatVersion: (int) cStreamFormatVersion;
@ -81,10 +81,10 @@
cStreamFormatVersion: (int) cStreamFormatVersion; cStreamFormatVersion: (int) cStreamFormatVersion;
+ (BOOL) encodeRootObject: anObject + (BOOL) encodeRootObject: anObject
withName: (id <String>) name withName: (NSString*) name
toFile: (id <String>) filename; toFile: (NSString*) filename;
+ (BOOL) encodeRootObject: anObject + (BOOL) encodeRootObject: anObject
withName: (id <String>) name withName: (NSString*) name
toStream: (id <Streaming>)stream; toStream: (id <Streaming>)stream;
/* Defaults */ /* Defaults */
@ -118,12 +118,12 @@
header of the file or stream determines which subclass of Decoder header of the file or stream determines which subclass of Decoder
is created. */ is created. */
+ newReadingFromFile: (id <String>) filename; + newReadingFromFile: (NSString*) filename;
+ newReadingFromStream: (id <Streaming>)stream; + newReadingFromStream: (id <Streaming>)stream;
+ decodeObjectWithName: (id <String> *) name + decodeObjectWithName: (NSString* *) name
fromFile: (id <String>) filename; fromFile: (NSString*) filename;
+ decodeObjectWithName: (id <String> *) name + decodeObjectWithName: (NSString* *) name
fromStream: (id <Streaming>)stream; fromStream: (id <Streaming>)stream;
@end @end

View file

@ -92,12 +92,12 @@
it's unclear if we're connecting to another Connection that already it's unclear if we're connecting to another Connection that already
registered with that name. */ registered with that name. */
+ (Connection*) newWithRootObject: anObj; + (Connection*) newWithRootObject: anObj;
+ (Connection*) newRegisteringAtName: (id <String>)n withRootObject: anObj; + (Connection*) newRegisteringAtName: (NSString*)n withRootObject: anObj;
/* Get a proxy to a remote server object. /* Get a proxy to a remote server object.
A new connection is created if necessary. */ A new connection is created if necessary. */
+ (Proxy*) rootProxyAtName: (id <String>)name onHost: (id <String>)host; + (Proxy*) rootProxyAtName: (NSString*)name onHost: (NSString*)host;
+ (Proxy*) rootProxyAtName: (id <String>)name; + (Proxy*) rootProxyAtName: (NSString*)name;
+ (Proxy*) rootProxyAtPort: (OutPort*)anOutPort; + (Proxy*) rootProxyAtPort: (OutPort*)anOutPort;
+ (Proxy*) rootProxyAtPort: (OutPort*)anOutPort withInPort: (InPort*)anInPort; + (Proxy*) rootProxyAtPort: (OutPort*)anOutPort withInPort: (InPort*)anInPort;

View file

@ -30,7 +30,7 @@
#include <gnustep/base/NotificationDispatcher.h> #include <gnustep/base/NotificationDispatcher.h>
@protocol Notifying @protocol Notifying
- (id <String>) name; - (NSString*) name;
- object; - object;
- userInfo; - userInfo;
@end @end
@ -46,10 +46,10 @@
id _info; id _info;
} }
+ notificationWithName: (id <String>)name + notificationWithName: (NSString*)name
object: object; object: object;
+ notificationWithName: (id <String>)name + notificationWithName: (NSString*)name
object: object object: object
userInfo: info; userInfo: info;

View file

@ -109,7 +109,7 @@
INVOCATION and NAME, however, are retained. */ INVOCATION and NAME, however, are retained. */
- (void) addInvocation: (id <Invoking>)invocation - (void) addInvocation: (id <Invoking>)invocation
name: (id <String>)name name: (NSString*)name
object: object; object: object;
/* Register OBSERVER to receive future notifications that match NAME /* Register OBSERVER to receive future notifications that match NAME
@ -132,18 +132,18 @@
- (void) addObserver: observer - (void) addObserver: observer
selector: (SEL)sel selector: (SEL)sel
name: (id <String>)name name: (NSString*)name
object: object; object: object;
/* Class versions of the above two methods that send these messages /* Class versions of the above two methods that send these messages
to the default NotificationDispatcher for the class. */ to the default NotificationDispatcher for the class. */
+ (void) addInvocation: (id <Invoking>)invocation + (void) addInvocation: (id <Invoking>)invocation
name: (id <String>)name name: (NSString*)name
object: object; object: object;
+ (void) addObserver: observer + (void) addObserver: observer
selector: (SEL)sel selector: (SEL)sel
name: (id <String>)name name: (NSString*)name
object: object; object: object;
@ -159,7 +159,7 @@
request, nil NAME or OBJECT act as wildcards. */ request, nil NAME or OBJECT act as wildcards. */
- (void) removeInvocation: invocation - (void) removeInvocation: invocation
name: (id <String>)name name: (NSString*)name
object: object; object: object;
/* Remove all records pertaining to OBSERVER. For instance, this /* Remove all records pertaining to OBSERVER. For instance, this
@ -172,7 +172,7 @@
OBJECT act as wildcards. */ OBJECT act as wildcards. */
- (void) removeObserver: observer - (void) removeObserver: observer
name: (id <String>)name name: (NSString*)name
object: object; object: object;
/* Class versions of the above four methods that send these messages /* Class versions of the above four methods that send these messages
@ -180,11 +180,11 @@
+ (void) removeInvocation: invocation; + (void) removeInvocation: invocation;
+ (void) removeInvocation: invocation + (void) removeInvocation: invocation
name: (id <String>)name name: (NSString*)name
object: object; object: object;
+ (void) removeObserver: observer; + (void) removeObserver: observer;
+ (void) removeObserver: observer + (void) removeObserver: observer
name: (id <String>)name name: (NSString*)name
object: object; object: object;
@ -195,9 +195,9 @@
pass that single object instead of a Dictionary containing the object. */ pass that single object instead of a Dictionary containing the object. */
- (void) postNotification: notification; - (void) postNotification: notification;
- (void) postNotificationName: (id <String>)name - (void) postNotificationName: (NSString*)name
object: object; object: object;
- (void) postNotificationName: (id <String>)name - (void) postNotificationName: (NSString*)name
object: object object: object
userInfo: info; userInfo: info;
@ -205,9 +205,9 @@
to the default NotificationDispatcher for the class. */ to the default NotificationDispatcher for the class. */
+ (void) postNotification: notification; + (void) postNotification: notification;
+ (void) postNotificationName: (id <String>)name + (void) postNotificationName: (NSString*)name
object: object; object: object;
+ (void) postNotificationName: (id <String>)name + (void) postNotificationName: (NSString*)name
object: object object: object
userInfo: info; userInfo: info;

View file

@ -55,12 +55,12 @@
} }
+ newForReceiving; + newForReceiving;
+ newForReceivingFromRegisteredName: (id <String>)name; + newForReceivingFromRegisteredName: (NSString*)name;
/* Register/Unregister this port for input handling through RunLoop /* Register/Unregister this port for input handling through RunLoop
RUN_LOOP in mode MODE. */ RUN_LOOP in mode MODE. */
- (void) addToRunLoop: run_loop forMode: (id <String>)mode; - (void) addToRunLoop: run_loop forMode: (NSString*)mode;
- (void) removeFromRunLoop: run_loop forMode: (id <String>)mode; - (void) removeFromRunLoop: run_loop forMode: (NSString*)mode;
/* When a RunLoop is handling this InPort, and a new incoming /* When a RunLoop is handling this InPort, and a new incoming
packet arrives, INVOCATION will be invoked with the new packet packet arrives, INVOCATION will be invoked with the new packet
@ -79,8 +79,8 @@
@interface OutPort : Port @interface OutPort : Port
+ newForSendingToRegisteredName: (id <String>)name + newForSendingToRegisteredName: (NSString*)name
onHost: (id <String>)hostname; onHost: (NSString*)hostname;
- (BOOL) sendPacket: packet; - (BOOL) sendPacket: packet;
@end @end

View file

@ -17,30 +17,30 @@
} }
- (void) addPort: port - (void) addPort: port
forMode: (id <String>)mode; forMode: (NSString*)mode;
- (void) removePort: port - (void) removePort: port
forMode: (id <String>)mode; forMode: (NSString*)mode;
- (void) addTimer: timer forMode: (id <String>)mode; - (void) addTimer: timer forMode: (NSString*)mode;
- limitDateForMode: (id <String>)mode; - limitDateForMode: (NSString*)mode;
- (void) acceptInputForMode: (id <String>)mode - (void) acceptInputForMode: (NSString*)mode
beforeDate: date; beforeDate: date;
- (id <String>) currentMode; - (NSString*) currentMode;
- (void) run; - (void) run;
- (void) runUntilDate: limit_date; - (void) runUntilDate: limit_date;
- (BOOL) runOnceBeforeDate: date; - (BOOL) runOnceBeforeDate: date;
- (BOOL) runOnceBeforeDate: date forMode: (id <String>)mode; - (BOOL) runOnceBeforeDate: date forMode: (NSString*)mode;
+ (void) run; + (void) run;
+ (void) runUntilDate: date; + (void) runUntilDate: date;
+ (void) runUntilDate: date forMode: (id <String>)mode; + (void) runUntilDate: date forMode: (NSString*)mode;
+ (BOOL) runOnceBeforeDate: date; + (BOOL) runOnceBeforeDate: date;
+ (BOOL) runOnceBeforeDate: date forMode: (id <String>)mode; + (BOOL) runOnceBeforeDate: date forMode: (NSString*)mode;
+ currentInstance; + currentInstance;
+ (id <String>) currentMode; + (NSString*) currentMode;
@end @end
@ -64,16 +64,16 @@ extern id RunLoopDefaultMode;
message whenever the descriptor (fd) is readable. */ message whenever the descriptor (fd) is readable. */
- (void) addReadDescriptor: (int)fd - (void) addReadDescriptor: (int)fd
object: (id <FdListening>)listener object: (id <FdListening>)listener
forMode: (id <String>)mode; forMode: (NSString*)mode;
/* Register an object (speaker) to receive 'readyForWritingOnFileDescriptor:' /* Register an object (speaker) to receive 'readyForWritingOnFileDescriptor:'
message whenever the descriptor (fd) is writable. */ message whenever the descriptor (fd) is writable. */
- (void) addWriteDescriptor: (int)fd - (void) addWriteDescriptor: (int)fd
object: (id <FdSpeaking>)speaker object: (id <FdSpeaking>)speaker
forMode: (id <String>)mode; forMode: (NSString*)mode;
- (void) removeReadDescriptor: (int)fd - (void) removeReadDescriptor: (int)fd
forMode: (id <String>)mode; forMode: (NSString*)mode;
- (void) removeWriteDescriptor: (int)fd - (void) removeWriteDescriptor: (int)fd
forMode: (id <String>)mode; forMode: (NSString*)mode;
@end @end
/* xxx This interface will probably change. */ /* xxx This interface will probably change. */

View file

@ -48,7 +48,7 @@ typedef struct sockaddr_in sockport_t;
+ newForSockPort: (sockport_t)s; + newForSockPort: (sockport_t)s;
+ newLocalWithNumber: (int)n; + newLocalWithNumber: (int)n;
+ newLocal; + newLocal;
+ newRemoteWithNumber: (int)n onHost: (id <String>)h; + newRemoteWithNumber: (int)n onHost: (NSString*)h;
- (sockport_t) sockPort; - (sockport_t) sockPort;

View file

@ -38,15 +38,15 @@
+ standardOut; + standardOut;
+ standardError; + standardError;
+ streamWithFilename: (id <String>)name fmode: (const char *)m; + streamWithFilename: (NSString*)name fmode: (const char *)m;
/* xxx Add the others too. */ /* xxx Add the others too. */
- initWithFilePointer: (FILE*)afp fmode: (const char *)m; - initWithFilePointer: (FILE*)afp fmode: (const char *)m;
- initWithFilename: (id <String>)name fmode: (const char *)m; - initWithFilename: (NSString*)name fmode: (const char *)m;
- initWithFileDescriptor: (int)fd fmode: (const char *)m; - initWithFileDescriptor: (int)fd fmode: (const char *)m;
- initWithPipeTo: (id <String>)systemCommand; - initWithPipeTo: (NSString*)systemCommand;
- initWithPipeFrom: (id <String>)systemCommand; - initWithPipeFrom: (NSString*)systemCommand;
@end @end

View file

@ -35,13 +35,13 @@
- (int) writeBytes: (const void*)b length: (int)l; - (int) writeBytes: (const void*)b length: (int)l;
- (int) readBytes: (void*)b length: (int)l; - (int) readBytes: (void*)b length: (int)l;
- (int) writeFormat: (id <String>)format, ...; - (int) writeFormat: (NSString*)format, ...;
- (int) readFormat: (id <String>)format, ...; - (int) readFormat: (NSString*)format, ...;
- (int) writeFormat: (id <String>)format arguments: (va_list)arg; - (int) writeFormat: (NSString*)format arguments: (va_list)arg;
- (int) readFormat: (id <String>)format arguments: (va_list)arg; - (int) readFormat: (NSString*)format arguments: (va_list)arg;
- (void) writeLine: (id <String>)l; - (void) writeLine: (NSString*)l;
- (id <String>) readLine; - (NSString*) readLine;
- (unsigned) streamPosition; - (unsigned) streamPosition;
- (BOOL) isAtEof; - (BOOL) isAtEof;

View file

@ -72,7 +72,7 @@
} }
+ newForSendingToPortNumber: (unsigned short)n + newForSendingToPortNumber: (unsigned short)n
onHost: (id <String>)hostname; onHost: (NSString*)hostname;
- (int) portNumber; - (int) portNumber;
@end @end

View file

@ -49,7 +49,7 @@
} }
- (int) portNumber; - (int) portNumber;
- (id <String>) hostname; - (NSString*) hostname;
@end @end

View file

@ -33,7 +33,7 @@
- (float) floatValue; - (float) floatValue;
- (double) doubleValue; - (double) doubleValue;
- (const char *) cStringValue; - (const char *) cStringValue;
- /* (id <String>) */ stringValue; - /* (NSString*) */ stringValue;
@end @end
@protocol ValueSetting @protocol ValueSetting
@ -41,7 +41,7 @@
- (void) setFloatValue: (float)aFloat; - (void) setFloatValue: (float)aFloat;
- (void) setDoubleValue: (double)aDouble; - (void) setDoubleValue: (double)aDouble;
- (void) setCStringValue: (const char *)aCString; - (void) setCStringValue: (const char *)aCString;
- (void) setStringValue: /* (id <String>) */ aString; - (void) setStringValue: /* (NSString*) */ aString;
@end @end
@protocol ValueHolding <ValueGetting, ValueSetting> @protocol ValueHolding <ValueGetting, ValueSetting>

View file

@ -92,7 +92,7 @@ static int debug_binary_coder = 0;
- (void) encodeValueOfCType: (const char*)type - (void) encodeValueOfCType: (const char*)type
at: (const void*)d at: (const void*)d
withName: (id <String>) name withName: (NSString*) name
{ {
/* Make sure we're not being asked to encode an "ObjC" type. */ /* Make sure we're not being asked to encode an "ObjC" type. */
assert(type); assert(type);
@ -319,7 +319,7 @@ static int debug_binary_coder = 0;
- (void) decodeValueOfCType: (const char*)type - (void) decodeValueOfCType: (const char*)type
at: (void*)d at: (void*)d
withName: (id <String> *)namePtr withName: (NSString* *)namePtr
{ {
char encoded_type; char encoded_type;
@ -488,14 +488,14 @@ static int debug_binary_coder = 0;
/* Encoding and decoding names. */ /* Encoding and decoding names. */
- (void) encodeName: (id <String>) name - (void) encodeName: (NSString*) name
{ {
if (debug_binary_coder) if (debug_binary_coder)
[[[self class] debugStderrCoder] [[[self class] debugStderrCoder]
encodeName:name]; encodeName:name];
} }
- (void) decodeName: (id <String> *)n - (void) decodeName: (NSString* *)n
{ {
#if 1 #if 1
if (n) if (n)

View file

@ -39,14 +39,14 @@ id CStreamSignatureMismatchException = @"CStreamSignatureMismatchException";
- (void) encodeValueOfCType: (const char*) type - (void) encodeValueOfCType: (const char*) type
at: (const void*) d at: (const void*) d
withName: (id <String>) name; withName: (NSString*) name;
{ {
[self subclassResponsibility:_cmd]; [self subclassResponsibility:_cmd];
} }
- (void) decodeValueOfCType: (const char*) type - (void) decodeValueOfCType: (const char*) type
at: (void*) d at: (void*) d
withName: (id <String> *) namePtr; withName: (NSString* *) namePtr;
{ {
[self subclassResponsibility:_cmd]; [self subclassResponsibility:_cmd];
} }
@ -140,7 +140,7 @@ id CStreamSignatureMismatchException = @"CStreamSignatureMismatchException";
return [new_cstream autorelease]; return [new_cstream autorelease];
} }
+ cStreamReadingFromFile: (id <String>) filename + cStreamReadingFromFile: (NSString*) filename
{ {
return [self cStreamReadingFromStream: return [self cStreamReadingFromStream:
[StdioStream streamWithFilename: filename fmode: "r"]]; [StdioStream streamWithFilename: filename fmode: "r"]];
@ -162,7 +162,7 @@ id CStreamSignatureMismatchException = @"CStreamSignatureMismatchException";
withFormatVersion: [[self class] defaultFormatVersion]]; withFormatVersion: [[self class] defaultFormatVersion]];
} }
- initForWritingToFile: (id <String>) file - initForWritingToFile: (NSString*) file
{ {
return [self initForWritingToStream: return [self initForWritingToStream:
[StdioStream streamWithFilename: file fmode: "w"]]; [StdioStream streamWithFilename: file fmode: "w"]];
@ -174,7 +174,7 @@ id CStreamSignatureMismatchException = @"CStreamSignatureMismatchException";
autorelease]; autorelease];
} }
+ cStreamWritingToFile: (id <String>) filename; + cStreamWritingToFile: (NSString*) filename;
{ {
return [[[self alloc] initForWritingToFile: filename] return [[[self alloc] initForWritingToFile: filename]
autorelease]; autorelease];
@ -183,7 +183,7 @@ id CStreamSignatureMismatchException = @"CStreamSignatureMismatchException";
/* Encoding/decoding indentation */ /* Encoding/decoding indentation */
- (void) encodeWithName: (id <String>) name - (void) encodeWithName: (NSString*) name
valuesOfCTypes: (const char *) types, ... valuesOfCTypes: (const char *) types, ...
{ {
va_list ap; va_list ap;
@ -200,7 +200,7 @@ id CStreamSignatureMismatchException = @"CStreamSignatureMismatchException";
va_end (ap); va_end (ap);
} }
- (void) decodeWithName: (id <String> *)name - (void) decodeWithName: (NSString* *)name
valuesOfCTypes: (const char *)types, ... valuesOfCTypes: (const char *)types, ...
{ {
va_list ap; va_list ap;
@ -237,12 +237,12 @@ id CStreamSignatureMismatchException = @"CStreamSignatureMismatchException";
/* Do nothing */ /* Do nothing */
} }
- (void) encodeName: (id <String>) n - (void) encodeName: (NSString*) n
{ {
/* Do nothing */ /* Do nothing */
} }
- (void) decodeName: (id <String> *) name - (void) decodeName: (NSString* *) name
{ {
/* Do nothing */ /* Do nothing */
} }

View file

@ -302,7 +302,7 @@ static int messages_received_count;
if we're connecting to another Connection that already registered if we're connecting to another Connection that already registered
with that name. */ with that name. */
+ (Connection*) newRegisteringAtName: (id <String>)n withRootObject: anObj + (Connection*) newRegisteringAtName: (NSString*)n withRootObject: anObj
{ {
id newPort; id newPort;
id newConn; id newConn;
@ -314,12 +314,12 @@ static int messages_received_count;
return newConn; return newConn;
} }
+ (Proxy*) rootProxyAtName: (id <String>)n + (Proxy*) rootProxyAtName: (NSString*)n
{ {
return [self rootProxyAtName: n onHost: @""]; return [self rootProxyAtName: n onHost: @""];
} }
+ (Proxy*) rootProxyAtName: (id <String>)n onHost: (id <String>)h + (Proxy*) rootProxyAtName: (NSString*)n onHost: (NSString*)h
{ {
id p = [default_out_port_class newForSendingToRegisteredName: n onHost: h]; id p = [default_out_port_class newForSendingToRegisteredName: n onHost: h];
return [self rootProxyAtPort: p]; return [self rootProxyAtPort: p];

View file

@ -81,14 +81,14 @@ static int debug_coder = 0;
return new_coder; return new_coder;
} }
+ newReadingFromFile: (id <String>) filename + newReadingFromFile: (NSString*) filename
{ {
return [self newReadingFromStream: return [self newReadingFromStream:
[StdioStream streamWithFilename: filename [StdioStream streamWithFilename: filename
fmode: "r"]]; fmode: "r"]];
} }
+ decodeObjectWithName: (id <String> *) name + decodeObjectWithName: (NSString* *) name
fromStream: (id <Streaming>)stream; fromStream: (id <Streaming>)stream;
{ {
id c, o; id c, o;
@ -98,8 +98,8 @@ static int debug_coder = 0;
return [o autorelease]; return [o autorelease];
} }
+ decodeObjectWithName: (id <String> *) name + decodeObjectWithName: (NSString* *) name
fromFile: (id <String>) filename; fromFile: (NSString*) filename;
{ {
return [self decodeObjectWithName: name return [self decodeObjectWithName: name
fromStream: fromStream:
@ -297,7 +297,7 @@ static int debug_coder = 0;
- (void) decodeValueOfCType: (const char*)type - (void) decodeValueOfCType: (const char*)type
at: (void*)d at: (void*)d
withName: (id <String> *)namePtr withName: (NSString* *)namePtr
{ {
[cstream decodeValueOfCType:type [cstream decodeValueOfCType:type
at:d at:d
@ -306,7 +306,7 @@ static int debug_coder = 0;
- (void) decodeBytes: (void *)b - (void) decodeBytes: (void *)b
count: (unsigned)c count: (unsigned)c
withName: (id <String> *) name withName: (NSString* *) name
{ {
int actual_count; int actual_count;
/* xxx Is this what we want? /* xxx Is this what we want?
@ -396,7 +396,7 @@ static int debug_coder = 0;
return ret; return ret;
} }
- (const char *) decodeAtomicStringWithName: (id <String> *) name - (const char *) decodeAtomicStringWithName: (NSString* *) name
{ {
char *s; char *s;
/* xxx Add repeat-string-ptr checking here */ /* xxx Add repeat-string-ptr checking here */
@ -405,7 +405,7 @@ static int debug_coder = 0;
return s; return s;
} }
- (SEL) decodeSelectorWithName: (id <String> *) name - (SEL) decodeSelectorWithName: (NSString* *) name
{ {
char tag; char tag;
SEL ret = NULL; SEL ret = NULL;
@ -529,7 +529,7 @@ static int debug_coder = 0;
[self _coderPopRootObjectTable]; [self _coderPopRootObjectTable];
} }
- (void) _decodeRootObjectAt: (id*)ret withName: (id <String> *) name - (void) _decodeRootObjectAt: (id*)ret withName: (NSString* *) name
{ {
[self startDecodingInterconnectedObjects]; [self startDecodingInterconnectedObjects];
[self decodeObjectAt:ret withName:name]; [self decodeObjectAt:ret withName:name];
@ -539,7 +539,7 @@ static int debug_coder = 0;
- (void) decodeValueOfObjCType: (const char*)type - (void) decodeValueOfObjCType: (const char*)type
at: (void*)d at: (void*)d
withName: (id <String> *)namePtr withName: (NSString* *)namePtr
{ {
switch (*type) switch (*type)
{ {
@ -570,7 +570,7 @@ static int debug_coder = 0;
} }
/* This is the designated (and one-and-only) object decoder */ /* This is the designated (and one-and-only) object decoder */
- (void) decodeObjectAt: (id*) anObjPtr withName: (id <String> *) name - (void) decodeObjectAt: (id*) anObjPtr withName: (NSString* *) name
{ {
unsigned char tag; unsigned char tag;
unsigned fref = 0; unsigned fref = 0;
@ -698,7 +698,7 @@ static int debug_coder = 0;
} }
- (void) decodeWithName: (id <String> *)name - (void) decodeWithName: (NSString* *)name
valuesOfObjCTypes: (const char *)types, ... valuesOfObjCTypes: (const char *)types, ...
{ {
va_list ap; va_list ap;
@ -717,7 +717,7 @@ static int debug_coder = 0;
- (void) decodeValueOfObjCTypes: (const char *)types - (void) decodeValueOfObjCTypes: (const char *)types
at: (void *)d at: (void *)d
withName: (id <String> *)name withName: (NSString* *)name
{ {
[self decodeName:name]; [self decodeName:name];
while (*types) while (*types)
@ -732,7 +732,7 @@ static int debug_coder = 0;
- (void) decodeArrayOfObjCType: (const char *)type - (void) decodeArrayOfObjCType: (const char *)type
count: (unsigned)c count: (unsigned)c
at: (void *)d at: (void *)d
withName: (id <String> *) name withName: (NSString* *) name
{ {
int i; int i;
int offset = objc_sizeof_type(type); int offset = objc_sizeof_type(type);
@ -758,7 +758,7 @@ static int debug_coder = 0;
[cstream decodeUnindent]; [cstream decodeUnindent];
} }
- (void) decodeName: (id <String> *)n - (void) decodeName: (NSString* *)n
{ {
[cstream decodeName: n]; [cstream decodeName: n];
} }

View file

@ -162,7 +162,7 @@ my_object_is_class(id object)
withCStreamClass: [[self class] defaultCStreamClass]]; withCStreamClass: [[self class] defaultCStreamClass]];
} }
- initForWritingToFile: (id <String>) filename - initForWritingToFile: (NSString*) filename
withFormatVersion: (int) version withFormatVersion: (int) version
cStreamClass: (Class) cStreamClass cStreamClass: (Class) cStreamClass
cStreamFormatVersion: (int) cStreamFormatVersion cStreamFormatVersion: (int) cStreamFormatVersion
@ -175,7 +175,7 @@ my_object_is_class(id object)
cStreamFormatVersion: cStreamFormatVersion]; cStreamFormatVersion: cStreamFormatVersion];
} }
- initForWritingToFile: (id <String>) filename - initForWritingToFile: (NSString*) filename
withCStreamClass: (Class) cStreamClass withCStreamClass: (Class) cStreamClass
{ {
return [self initForWritingToStream: [StdioStream return [self initForWritingToStream: [StdioStream
@ -184,7 +184,7 @@ my_object_is_class(id object)
withCStreamClass: cStreamClass]; withCStreamClass: cStreamClass];
} }
- initForWritingToFile: (id <String>) filename - initForWritingToFile: (NSString*) filename
{ {
return [self initForWritingToStream: return [self initForWritingToStream:
[StdioStream streamWithFilename: filename [StdioStream streamWithFilename: filename
@ -196,7 +196,7 @@ my_object_is_class(id object)
return [[self alloc] initForWritingToStream: s]; return [[self alloc] initForWritingToStream: s];
} }
+ newWritingToFile: (id <String>)filename + newWritingToFile: (NSString*)filename
{ {
return [self newWritingToStream: return [self newWritingToStream:
[StdioStream streamWithFilename: filename [StdioStream streamWithFilename: filename
@ -204,7 +204,7 @@ my_object_is_class(id object)
} }
+ (BOOL) encodeRootObject: anObject + (BOOL) encodeRootObject: anObject
withName: (id <String>) name withName: (NSString*) name
toStream: (id <Streaming>)stream toStream: (id <Streaming>)stream
{ {
id c = [[self alloc] initForWritingToStream: stream]; id c = [[self alloc] initForWritingToStream: stream];
@ -215,8 +215,8 @@ my_object_is_class(id object)
} }
+ (BOOL) encodeRootObject: anObject + (BOOL) encodeRootObject: anObject
withName: (id <String>) name withName: (NSString*) name
toFile: (id <String>) filename toFile: (NSString*) filename
{ {
return [self encodeRootObject: anObject return [self encodeRootObject: anObject
withName: name withName: name
@ -365,7 +365,7 @@ my_object_is_class(id object)
- (void) encodeValueOfCType: (const char*)type - (void) encodeValueOfCType: (const char*)type
at: (const void*)d at: (const void*)d
withName: (id <String>)name withName: (NSString*)name
{ {
[cstream encodeValueOfCType:type [cstream encodeValueOfCType:type
at:d at:d
@ -374,7 +374,7 @@ my_object_is_class(id object)
- (void) encodeBytes: (const void *)b - (void) encodeBytes: (const void *)b
count: (unsigned)c count: (unsigned)c
withName: (id <String>)name withName: (NSString*)name
{ {
/* xxx Is this what we want? /* xxx Is this what we want?
It won't be cleanly readable in TextCStream's. */ It won't be cleanly readable in TextCStream's. */
@ -450,14 +450,14 @@ my_object_is_class(id object)
} }
- (void) encodeAtomicString: (const char*) sp - (void) encodeAtomicString: (const char*) sp
withName: (id <String>) name withName: (NSString*) name
{ {
/* xxx Add repeat-string-ptr checking here. */ /* xxx Add repeat-string-ptr checking here. */
[self notImplemented:_cmd]; [self notImplemented:_cmd];
[self encodeValueOfCType:@encode(char*) at:&sp withName:name]; [self encodeValueOfCType:@encode(char*) at:&sp withName:name];
} }
- (void) encodeSelector: (SEL)sel withName: (id <String>) name - (void) encodeSelector: (SEL)sel withName: (NSString*) name
{ {
[self encodeName:name]; [self encodeName:name];
[self encodeIndent]; [self encodeIndent];
@ -520,7 +520,7 @@ my_object_is_class(id object)
- (void) encodeValueOfObjCType: (const char*) type - (void) encodeValueOfObjCType: (const char*) type
at: (const void*) d at: (const void*) d
withName: (id <String>) name withName: (NSString*) name
{ {
switch (*type) switch (*type)
{ {
@ -564,7 +564,7 @@ my_object_is_class(id object)
/* NOTE: Unlike NeXT's, this *can* be called recursively */ /* NOTE: Unlike NeXT's, this *can* be called recursively */
- (void) encodeRootObject: anObj - (void) encodeRootObject: anObj
withName: (id <String>)name withName: (NSString*)name
{ {
[self encodeName: @"Root Object"]; [self encodeName: @"Root Object"];
[self encodeIndent]; [self encodeIndent];
@ -618,7 +618,7 @@ my_object_is_class(id object)
/* This is the designated object encoder */ /* This is the designated object encoder */
- (void) _encodeObject: anObj - (void) _encodeObject: anObj
withName: (id <String>) name withName: (NSString*) name
isBycopy: (BOOL) bycopy_flag isBycopy: (BOOL) bycopy_flag
isForwardReference: (BOOL) forward_ref_flag isForwardReference: (BOOL) forward_ref_flag
{ {
@ -726,27 +726,27 @@ my_object_is_class(id object)
} }
- (void) encodeObject: anObj - (void) encodeObject: anObj
withName: (id <String>)name withName: (NSString*)name
{ {
[self _encodeObject:anObj withName:name isBycopy:NO isForwardReference:NO]; [self _encodeObject:anObj withName:name isBycopy:NO isForwardReference:NO];
} }
- (void) encodeBycopyObject: anObj - (void) encodeBycopyObject: anObj
withName: (id <String>)name withName: (NSString*)name
{ {
[self _encodeObject:anObj withName:name isBycopy:YES isForwardReference:NO]; [self _encodeObject:anObj withName:name isBycopy:YES isForwardReference:NO];
} }
- (void) encodeObjectReference: anObj - (void) encodeObjectReference: anObj
withName: (id <String>)name withName: (NSString*)name
{ {
[self _encodeObject:anObj withName:name isBycopy:NO isForwardReference:YES]; [self _encodeObject:anObj withName:name isBycopy:NO isForwardReference:YES];
} }
- (void) encodeWithName: (id <String>)name - (void) encodeWithName: (NSString*)name
valuesOfObjCTypes: (const char *)types, ... valuesOfObjCTypes: (const char *)types, ...
{ {
va_list ap; va_list ap;
@ -765,7 +765,7 @@ my_object_is_class(id object)
- (void) encodeValueOfObjCTypes: (const char *)types - (void) encodeValueOfObjCTypes: (const char *)types
at: (const void *)d at: (const void *)d
withName: (id <String>)name withName: (NSString*)name
{ {
[self encodeName:name]; [self encodeName:name];
while (*types) while (*types)
@ -780,7 +780,7 @@ my_object_is_class(id object)
- (void) encodeArrayOfObjCType: (const char *)type - (void) encodeArrayOfObjCType: (const char *)type
count: (unsigned)c count: (unsigned)c
at: (const void *)d at: (const void *)d
withName: (id <String>)name withName: (NSString*)name
{ {
int i; int i;
int offset = objc_sizeof_type(type); int offset = objc_sizeof_type(type);
@ -806,7 +806,7 @@ my_object_is_class(id object)
[cstream encodeUnindent]; [cstream encodeUnindent];
} }
- (void) encodeName: (id <String>)n - (void) encodeName: (NSString*)n
{ {
[cstream encodeName: n]; [cstream encodeName: n];
} }
@ -814,7 +814,7 @@ my_object_is_class(id object)
/* Substituting Classes */ /* Substituting Classes */
- (id <String>) classNameEncodedForTrueClassName: (id <String>) trueName - (NSString*) classNameEncodedForTrueClassName: (NSString*) trueName
{ {
[self notImplemented: _cmd]; [self notImplemented: _cmd];
return nil; return nil;
@ -826,8 +826,8 @@ my_object_is_class(id object)
#endif #endif
} }
- (void) encodeClassName: (id <String>) trueName - (void) encodeClassName: (NSString*) trueName
intoClassName: (id <String>) inArchiveName intoClassName: (NSString*) inArchiveName
{ {
[self notImplemented: _cmd]; [self notImplemented: _cmd];

View file

@ -231,7 +231,7 @@
OBJC_FREE(keys); OBJC_FREE(keys);
} }
- (id <String>) description - (NSString*) description
{ {
id s = [NSMutableString new]; id s = [NSMutableString new];
id o, k; id o, k;

View file

@ -182,7 +182,7 @@ static BOOL debug_memory_stream = NO;
return l; return l;
} }
- (id <String>) readLine - (NSString*) readLine
{ {
char *nl = memchr(buffer+prefix+position, '\n', eof_position-position); char *nl = memchr(buffer+prefix+position, '\n', eof_position-position);
char *ret = NULL; char *ret = NULL;
@ -224,7 +224,7 @@ void unchar_func(void *s, int c)
} }
#if HAVE_VSPRINTF #if HAVE_VSPRINTF
- (int) writeFormat: (id <String>)format - (int) writeFormat: (NSString*)format
arguments: (va_list)arg arguments: (va_list)arg
{ {
int ret; int ret;
@ -256,7 +256,7 @@ void unchar_func(void *s, int c)
} }
#endif #endif
- (int) readFormat: (id <String>)format, ... - (int) readFormat: (NSString*)format, ...
{ {
int ret; int ret;
va_list ap; va_list ap;

View file

@ -39,13 +39,13 @@
@implementation NSGArchiverNullCStream @implementation NSGArchiverNullCStream
- (void) encodeValueOfCType: (const char*)type - (void) encodeValueOfCType: (const char*)type
at: (const void*)d at: (const void*)d
withName: (id <String>) name withName: (NSString*) name
{ {
return; return;
} }
- (void) decodeValueOfCType: (const char*)type - (void) decodeValueOfCType: (const char*)type
at: (void*)d at: (void*)d
withName: (id <String> *)namePtr withName: (NSString* *)namePtr
{ {
[self shouldNotImplement: _cmd]; [self shouldNotImplement: _cmd];
} }
@ -80,7 +80,7 @@
/* Unlike the GNU version, this cannot be called recursively. */ /* Unlike the GNU version, this cannot be called recursively. */
- (void) encodeRootObject: anObj - (void) encodeRootObject: anObj
withName: (id <String>)name withName: (NSString*)name
{ {
id saved_cstream; id saved_cstream;

View file

@ -26,7 +26,7 @@
@implementation Notification @implementation Notification
/* This is the designated initializer. */ /* This is the designated initializer. */
- initWithName: (id <String>)name - initWithName: (NSString*)name
object: object object: object
userInfo: info userInfo: info
{ {
@ -48,7 +48,7 @@
/* Creating autoreleased Notification objects. */ /* Creating autoreleased Notification objects. */
+ notificationWithName: (id <String>)name + notificationWithName: (NSString*)name
object: object object: object
userInfo: info userInfo: info
{ {
@ -58,7 +58,7 @@
autorelease]; autorelease];
} }
+ notificationWithName: (id <String>)name + notificationWithName: (NSString*)name
object: object object: object
{ {
return [self notificationWithName: name return [self notificationWithName: name
@ -69,7 +69,7 @@
/* Querying a Notification object. */ /* Querying a Notification object. */
- (id <String>) name - (NSString*) name
{ {
return _name; return _name;
} }

View file

@ -55,7 +55,7 @@
} }
- initWithName: n object: o; - initWithName: n object: o;
- (id <String>) notificationName; - (NSString*) notificationName;
- notificationObject; - notificationObject;
- (void) postNotification: n; - (void) postNotification: n;
@end @end
@ -101,7 +101,7 @@
[super dealloc]; [super dealloc];
} }
- (id <String>) notificationName - (NSString*) notificationName
{ {
return _name; return _name;
} }
@ -243,7 +243,7 @@ static NotificationDispatcher *default_notification_dispatcher = nil;
- (void) _addObserver: observer - (void) _addObserver: observer
notificationRequest: nr notificationRequest: nr
name: (id <String>)name name: (NSString*)name
object: object object: object
{ {
/* If observer is nil, there is nothing to do; return. */ /* If observer is nil, there is nothing to do; return. */
@ -318,7 +318,7 @@ static NotificationDispatcher *default_notification_dispatcher = nil;
} }
- (void) addInvocation: (id <Invoking>)invocation - (void) addInvocation: (id <Invoking>)invocation
name: (id <String>)name name: (NSString*)name
object: object object: object
{ {
id nr; id nr;
@ -347,7 +347,7 @@ static NotificationDispatcher *default_notification_dispatcher = nil;
- (void) addObserver: observer - (void) addObserver: observer
selector: (SEL)sel selector: (SEL)sel
name: (id <String>)name name: (NSString*)name
object: object object: object
{ {
id nr; id nr;
@ -427,7 +427,7 @@ static NotificationDispatcher *default_notification_dispatcher = nil;
request, nil NAME or OBJECT act as wildcards. */ request, nil NAME or OBJECT act as wildcards. */
- (void) removeInvocation: invocation - (void) removeInvocation: invocation
name: (id <String>)name name: (NSString*)name
object: object object: object
{ {
[self removeObserver: invocation [self removeObserver: invocation
@ -482,7 +482,7 @@ static NotificationDispatcher *default_notification_dispatcher = nil;
adding an observation request, nil NAME or OBJECT act as wildcards. */ adding an observation request, nil NAME or OBJECT act as wildcards. */
- (void) removeObserver: observer - (void) removeObserver: observer
name: (id <String>)name name: (NSString*)name
object: object object: object
{ {
Array *observer_nr_array; Array *observer_nr_array;
@ -597,14 +597,14 @@ static NotificationDispatcher *default_notification_dispatcher = nil;
[_lock unlock]; [_lock unlock];
} }
- (void) postNotificationName: (id <String>)name - (void) postNotificationName: (NSString*)name
object: object object: object
{ {
[self postNotification: [Notification notificationWithName: name [self postNotification: [Notification notificationWithName: name
object: object]]; object: object]];
} }
- (void) postNotificationName: (id <String>)name - (void) postNotificationName: (NSString*)name
object: object object: object
userInfo: info userInfo: info
{ {
@ -623,7 +623,7 @@ static NotificationDispatcher *default_notification_dispatcher = nil;
} }
+ (void) addInvocation: (id <Invoking>)invocation + (void) addInvocation: (id <Invoking>)invocation
name: (id <String>)name name: (NSString*)name
object: object object: object
{ {
[default_notification_dispatcher addInvocation: invocation [default_notification_dispatcher addInvocation: invocation
@ -633,7 +633,7 @@ static NotificationDispatcher *default_notification_dispatcher = nil;
+ (void) addObserver: observer + (void) addObserver: observer
selector: (SEL)sel selector: (SEL)sel
name: (id <String>)name name: (NSString*)name
object: object object: object
{ {
[default_notification_dispatcher addObserver: observer [default_notification_dispatcher addObserver: observer
@ -648,7 +648,7 @@ static NotificationDispatcher *default_notification_dispatcher = nil;
} }
+ (void) removeInvocation: invocation + (void) removeInvocation: invocation
name: (id <String>)name name: (NSString*)name
object: object object: object
{ {
[default_notification_dispatcher removeInvocation: invocation [default_notification_dispatcher removeInvocation: invocation
@ -662,7 +662,7 @@ static NotificationDispatcher *default_notification_dispatcher = nil;
} }
+ (void) removeObserver: observer + (void) removeObserver: observer
name: (id <String>)name name: (NSString*)name
object: object object: object
{ {
[default_notification_dispatcher removeObserver: observer [default_notification_dispatcher removeObserver: observer
@ -675,14 +675,14 @@ static NotificationDispatcher *default_notification_dispatcher = nil;
[default_notification_dispatcher postNotification: notification]; [default_notification_dispatcher postNotification: notification];
} }
+ (void) postNotificationName: (id <String>)name + (void) postNotificationName: (NSString*)name
object: object object: object
{ {
[default_notification_dispatcher postNotificationName: name [default_notification_dispatcher postNotificationName: name
object: object]; object: object];
} }
+ (void) postNotificationName: (id <String>)name + (void) postNotificationName: (NSString*)name
object: object object: object
userInfo: info userInfo: info
{ {

View file

@ -117,7 +117,7 @@
return self; return self;
} }
+ newForReceivingFromRegisteredName: (id <String>)name + newForReceivingFromRegisteredName: (NSString*)name
{ {
[self subclassResponsibility:_cmd]; [self subclassResponsibility:_cmd];
return nil; return nil;
@ -140,12 +140,12 @@
_packet_invocation = invocation; _packet_invocation = invocation;
} }
- (void) addToRunLoop: run_loop forMode: (id <String>)mode - (void) addToRunLoop: run_loop forMode: (NSString*)mode
{ {
[self subclassResponsibility:_cmd]; [self subclassResponsibility:_cmd];
} }
- (void) removeFromRunLoop: run_loop forMode: (id <String>)mode - (void) removeFromRunLoop: run_loop forMode: (NSString*)mode
{ {
[self subclassResponsibility:_cmd]; [self subclassResponsibility:_cmd];
} }
@ -155,8 +155,8 @@
@implementation OutPort @implementation OutPort
+ newForSendingToRegisteredName: (id <String>)name + newForSendingToRegisteredName: (NSString*)name
onHost: (id <String>)hostname onHost: (NSString*)hostname
{ {
[self subclassResponsibility:_cmd]; [self subclassResponsibility:_cmd];
return nil; return nil;

View file

@ -60,7 +60,7 @@ static BOOL debug_binary_coder;
return c; return c;
} }
- (void) encodeName: (id <String>) name - (void) encodeName: (NSString*) name
{ {
if (debug_binary_coder) if (debug_binary_coder)
[[[self class] debugStderrCoder] [[[self class] debugStderrCoder]
@ -73,7 +73,7 @@ static BOOL debug_binary_coder;
- (void) encodeValueOfCType: (const char*)type - (void) encodeValueOfCType: (const char*)type
at: (const void*)d at: (const void*)d
withName: (id <String>) name withName: (NSString*) name
{ {
if (debug_binary_coder) if (debug_binary_coder)
{ {
@ -168,7 +168,7 @@ static BOOL debug_binary_coder;
- (void) decodeValueOfCType: (const char*)type - (void) decodeValueOfCType: (const char*)type
at: (void*)d at: (void*)d
withName: (id <String> *)namePtr withName: (NSString* *)namePtr
{ {
assert(type); assert(type);
assert(*type != '@'); assert(*type != '@');
@ -274,7 +274,7 @@ static BOOL debug_binary_coder;
return DEFAULT_FORMAT_VERSION; return DEFAULT_FORMAT_VERSION;
} }
- (void) decodeName: (id <String> *)n - (void) decodeName: (NSString* *)n
{ {
#if 1 #if 1
if (n) if (n)

View file

@ -129,7 +129,7 @@
- (void) addReadDescriptor: (int)fd - (void) addReadDescriptor: (int)fd
object: (id <FdListening>)listener object: (id <FdListening>)listener
forMode: (id <String>)mode forMode: (NSString*)mode
{ {
Bag *fd_listeners; Bag *fd_listeners;
FdInfo *info; FdInfo *info;
@ -156,7 +156,7 @@
- (void) addWriteDescriptor: (int)fd - (void) addWriteDescriptor: (int)fd
object: (id <FdSpeaking>)speaker object: (id <FdSpeaking>)speaker
forMode: (id <String>)mode forMode: (NSString*)mode
{ {
Bag *fd_speakers; Bag *fd_speakers;
FdInfo *info; FdInfo *info;
@ -182,7 +182,7 @@
} }
- (void) removeReadDescriptor: (int)fd - (void) removeReadDescriptor: (int)fd
forMode: (id <String>)mode forMode: (NSString*)mode
{ {
Bag* fd_listeners; Bag* fd_listeners;
@ -203,7 +203,7 @@
} }
- (void) removeWriteDescriptor: (int)fd - (void) removeWriteDescriptor: (int)fd
forMode: (id <String>)mode forMode: (NSString*)mode
{ {
Bag* fd_speakers; Bag* fd_speakers;
@ -253,7 +253,7 @@ static RunLoop *current_run_loop;
return self; return self;
} }
- (id <String>) currentMode - (NSString*) currentMode
{ {
return _current_mode; return _current_mode;
} }
@ -262,7 +262,7 @@ static RunLoop *current_run_loop;
/* Adding and removing port objects. */ /* Adding and removing port objects. */
- (void) addPort: port - (void) addPort: port
forMode: (id <String>)mode forMode: (NSString*)mode
{ {
/* xxx Perhaps this should be a Bag instead; I think this currently works /* xxx Perhaps this should be a Bag instead; I think this currently works
when a port is added more than once, but it doesn't work prettily. */ when a port is added more than once, but it doesn't work prettily. */
@ -279,7 +279,7 @@ static RunLoop *current_run_loop;
} }
- (void) removePort: port - (void) removePort: port
forMode: (id <String>)mode forMode: (NSString*)mode
{ {
/* xxx Perhaps this should be a Bag instead. */ /* xxx Perhaps this should be a Bag instead. */
Array *in_ports; Array *in_ports;
@ -296,7 +296,7 @@ static RunLoop *current_run_loop;
/* Adding timers. They are removed when they are invalid. */ /* Adding timers. They are removed when they are invalid. */
- (void) addTimer: timer - (void) addTimer: timer
forMode: (id <String>)mode forMode: (NSString*)mode
{ {
Heap *timers; Heap *timers;
@ -314,7 +314,7 @@ static RunLoop *current_run_loop;
/* Fire appropriate timers. */ /* Fire appropriate timers. */
- limitDateForMode: (id <String>)mode - limitDateForMode: (NSString*)mode
{ {
/* Linux doesn't always return double from methods, even though /* Linux doesn't always return double from methods, even though
I'm using -lieee. */ I'm using -lieee. */
@ -361,7 +361,7 @@ static RunLoop *current_run_loop;
/* Listen to input sources. /* Listen to input sources.
If LIMIT_DATE is nil, then don't wait; i.e. call select() with 0 timeout */ If LIMIT_DATE is nil, then don't wait; i.e. call select() with 0 timeout */
- (void) acceptInputForMode: (id <String>)mode - (void) acceptInputForMode: (NSString*)mode
beforeDate: limit_date beforeDate: limit_date
{ {
NSTimeInterval ti; NSTimeInterval ti;
@ -552,7 +552,7 @@ static RunLoop *current_run_loop;
/* Running the run loop once through for timers and input listening. */ /* Running the run loop once through for timers and input listening. */
- (BOOL) runOnceBeforeDate: date forMode: (id <String>)mode - (BOOL) runOnceBeforeDate: date forMode: (NSString*)mode
{ {
id d; id d;
@ -588,7 +588,7 @@ static RunLoop *current_run_loop;
/* Running the run loop multiple times through. */ /* Running the run loop multiple times through. */
- (void) runUntilDate: date forMode: (id <String>)mode - (void) runUntilDate: date forMode: (NSString*)mode
{ {
volatile double ti; volatile double ti;
@ -630,7 +630,7 @@ static RunLoop *current_run_loop;
[current_run_loop runUntilDate: date]; [current_run_loop runUntilDate: date];
} }
+ (void) runUntilDate: date forMode: (id <String>)mode + (void) runUntilDate: date forMode: (NSString*)mode
{ {
assert (current_run_loop); assert (current_run_loop);
[current_run_loop runUntilDate: date forMode: mode]; [current_run_loop runUntilDate: date forMode: mode];
@ -641,7 +641,7 @@ static RunLoop *current_run_loop;
return [current_run_loop runOnceBeforeDate: date]; return [current_run_loop runOnceBeforeDate: date];
} }
+ (BOOL) runOnceBeforeDate: date forMode: (id <String>)mode + (BOOL) runOnceBeforeDate: date forMode: (NSString*)mode
{ {
return [current_run_loop runOnceBeforeDate: date forMode: mode]; return [current_run_loop runOnceBeforeDate: date forMode: mode];
} }
@ -652,7 +652,7 @@ static RunLoop *current_run_loop;
return current_run_loop; return current_run_loop;
} }
+ (id <String>) currentMode + (NSString*) currentMode
{ {
return [current_run_loop currentMode]; return [current_run_loop currentMode];
} }
@ -679,9 +679,9 @@ id RunLoopDefaultMode = @"RunLoopDefaultMode";
#if 0 #if 0
- getNotificationWithName: (id <String>)name - getNotificationWithName: (NSString*)name
object: object object: object
inMode: (id <String>)mode inMode: (NSString*)mode
beforeDate: date beforeDate: date
{ {
/* See if any timers should fire, and fire them. */ /* See if any timers should fire, and fire them. */
@ -698,9 +698,9 @@ id RunLoopDefaultMode = @"RunLoopDefaultMode";
} }
/* Some alternate names */ /* Some alternate names */
- waitForNotificationWithName: (id <String>)name - waitForNotificationWithName: (NSString*)name
object: object object: object
inMode: (id <String>)mode inMode: (NSString*)mode
untilDate: date untilDate: date
{ {
} }
@ -710,14 +710,14 @@ id RunLoopDefaultMode = @"RunLoopDefaultMode";
/* The old alternate names */ /* The old alternate names */
- (void) makeNotificationsForFileDescriptor: (int)fd - (void) makeNotificationsForFileDescriptor: (int)fd
forMode: (id <String>)mode forMode: (NSString*)mode
name: (id <String>)name name: (NSString*)name
object: object object: object
postingTo: (id <NotificationPosting>)poster postingTo: (id <NotificationPosting>)poster
postingStyle: style postingStyle: style
- (void) addFileDescriptor: (int)fd - (void) addFileDescriptor: (int)fd
forMode: (id <String>)mode forMode: (NSString*)mode
postingWithName: (id <String>)name postingWithName: (NSString*)name
object: object; object: object;
- (void) addFileDescriptor: (int)fd - (void) addFileDescriptor: (int)fd
withAttender: (id <FileDescriptorAttending>)object withAttender: (id <FileDescriptorAttending>)object

View file

@ -97,7 +97,7 @@ name_to_port_number (const char *name)
return self; return self;
} }
+ newPortFromRegisterWithName: (id <String>)name onHost: (id <String>)h + newPortFromRegisterWithName: (NSString*)name onHost: (NSString*)h
{ {
id p; id p;
int n; int n;
@ -112,7 +112,7 @@ name_to_port_number (const char *name)
return p; return p;
} }
+ newRegisteredPortWithName: (id <String>)name + newRegisteredPortWithName: (NSString*)name
{ {
int n; int n;
@ -245,7 +245,7 @@ s1.sin_addr.s_addr == s2.sin_addr.s_addr)
return sp; return sp;
} }
+ newRemoteWithNumber: (int)n onHost: (id <String>)h + newRemoteWithNumber: (int)n onHost: (NSString*)h
{ {
struct sockaddr_in remote_addr; struct sockaddr_in remote_addr;
struct hostent *hp; struct hostent *hp;

View file

@ -84,7 +84,7 @@ o_vscanf (void *stream,
return stderrStream; return stderrStream;
} }
+ streamWithFilename: (id <String>)name fmode: (const char *)m + streamWithFilename: (NSString*)name fmode: (const char *)m
{ {
return [[[self alloc] return [[[self alloc]
initWithFilename: name fmode: m] initWithFilename: name fmode: m]
@ -116,7 +116,7 @@ o_vscanf (void *stream,
return self; return self;
} }
- initWithFilename: (id <String>)name fmode: (const char *)m - initWithFilename: (NSString*)name fmode: (const char *)m
{ {
FILE *afp = fopen([name cStringNoCopy], (char*)m); FILE *afp = fopen([name cStringNoCopy], (char*)m);
if (!afp) if (!afp)
@ -142,14 +142,14 @@ o_vscanf (void *stream,
return [self initWithFilePointer:afp fmode:m]; return [self initWithFilePointer:afp fmode:m];
} }
- initWithPipeTo: (id <String>) systemCommand - initWithPipeTo: (NSString*) systemCommand
{ {
return [self initWithFilePointer: return [self initWithFilePointer:
popen([systemCommand cStringNoCopy], "w") popen([systemCommand cStringNoCopy], "w")
fmode:"w"]; fmode:"w"];
} }
- initWithPipeFrom: (id <String>) systemCommand - initWithPipeFrom: (NSString*) systemCommand
{ {
return [self initWithFilePointer: return [self initWithFilePointer:
popen([systemCommand cStringNoCopy], "r") popen([systemCommand cStringNoCopy], "r")
@ -188,7 +188,7 @@ o_vscanf (void *stream,
return ret; return ret;
} }
- (int) writeFormat: (id <String>)format - (int) writeFormat: (NSString*)format
arguments: (va_list)arg arguments: (va_list)arg
{ {
return vfprintf(fp, [format cStringNoCopy], arg); return vfprintf(fp, [format cStringNoCopy], arg);
@ -205,7 +205,7 @@ stdio_unchar_func(void *s, int c)
ungetc(c, (FILE*)s); ungetc(c, (FILE*)s);
} }
- (int) readFormat: (id <String>)format, ... - (int) readFormat: (NSString*)format, ...
{ {
int ret; int ret;
va_list ap; va_list ap;

View file

@ -59,14 +59,14 @@ NSString* StreamException = @"StreamException";
return 0; return 0;
} }
- (int) writeFormat: (id <String>)format - (int) writeFormat: (NSString*)format
arguments: (va_list)arg arguments: (va_list)arg
{ {
[self subclassResponsibility:_cmd]; [self subclassResponsibility:_cmd];
return 0; return 0;
} }
- (int) writeFormat: (id <String>)format, ... - (int) writeFormat: (NSString*)format, ...
{ {
int ret; int ret;
va_list ap; va_list ap;
@ -77,27 +77,27 @@ NSString* StreamException = @"StreamException";
return ret; return ret;
} }
- (int) readFormat: (id <String>)format - (int) readFormat: (NSString*)format
arguments: (va_list)arg arguments: (va_list)arg
{ {
[self subclassResponsibility:_cmd]; [self subclassResponsibility:_cmd];
return 0; return 0;
} }
- (int) readFormat: (id <String>)format, ... - (int) readFormat: (NSString*)format, ...
{ {
[self subclassResponsibility:_cmd]; [self subclassResponsibility:_cmd];
return 0; return 0;
} }
- (void) writeLine: (id <String>)l - (void) writeLine: (NSString*)l
{ {
const char *s = [l cStringNoCopy]; const char *s = [l cStringNoCopy];
[self writeBytes:s length:strlen(s)]; [self writeBytes:s length:strlen(s)];
[self writeBytes:"\n" length:1]; [self writeBytes:"\n" length:1];
} }
- (id <String>) readLine - (NSString*) readLine
{ {
char *l; char *l;
[self readFormat: @"%a[^\n]\n", &l]; [self readFormat: @"%a[^\n]\n", &l];

View file

@ -285,7 +285,7 @@ static NSMapTable* port_number_2_port;
return p; return p;
} }
+ newForReceivingFromRegisteredName: (id <String>)name + newForReceivingFromRegisteredName: (NSString*)name
{ {
return [self newForReceivingFromPortNumber: return [self newForReceivingFromPortNumber:
name_2_port_number ([name cStringNoCopy])]; name_2_port_number ([name cStringNoCopy])];
@ -853,7 +853,7 @@ static NSMapTable *out_port_bag = NULL;
} }
+ newForSendingToPortNumber: (unsigned short)n + newForSendingToPortNumber: (unsigned short)n
onHost: (id <String>)hostname onHost: (NSString*)hostname
{ {
struct hostent *hp; struct hostent *hp;
const char *host_cstring; const char *host_cstring;
@ -893,8 +893,8 @@ static NSMapTable *out_port_bag = NULL;
pollingInPort: nil]; pollingInPort: nil];
} }
+ newForSendingToRegisteredName: (id <String>)name + newForSendingToRegisteredName: (NSString*)name
onHost: (id <String>)hostname onHost: (NSString*)hostname
{ {
return [self newForSendingToPortNumber: return [self newForSendingToPortNumber:
name_2_port_number ([name cStringNoCopy]) name_2_port_number ([name cStringNoCopy])

View file

@ -51,7 +51,7 @@ static BOOL debug_textcoder = NO;
- (void) encodeValueOfCType: (const char*) type - (void) encodeValueOfCType: (const char*) type
at: (const void*) d at: (const void*) d
withName: (id <String>) name; withName: (NSString*) name;
{ {
assert(type); assert(type);
assert(*type != '@'); assert(*type != '@');
@ -186,7 +186,7 @@ if (debug_textcoder) \
- (void) decodeValueOfCType: (const char*) type - (void) decodeValueOfCType: (const char*) type
at: (void*) d at: (void*) d
withName: (id <String> *) namePtr; withName: (NSString* *) namePtr;
{ {
char *tmpname; char *tmpname;
@ -372,7 +372,7 @@ if (debug_textcoder) \
format: @"bad unindent format, got \"%s\"", line]; format: @"bad unindent format, got \"%s\"", line];
} }
- (void) encodeName: (id <String>) n - (void) encodeName: (NSString*) n
{ {
if (n) if (n)
[stream writeFormat:@"%*s<%s>\n", indentation, "", [n cStringNoCopy]]; [stream writeFormat:@"%*s<%s>\n", indentation, "", [n cStringNoCopy]];
@ -380,7 +380,7 @@ if (debug_textcoder) \
[stream writeFormat:@"%*s<NULL>\n", indentation, ""]; [stream writeFormat:@"%*s<NULL>\n", indentation, ""];
} }
- (void) decodeName: (id <String> *) name - (void) decodeName: (NSString* *) name
{ {
const char *n; const char *n;
if (name) if (name)

View file

@ -180,7 +180,7 @@ static NSMapTable *port_number_2_in_port = NULL;
return p; return p;
} }
+ newForReceivingFromRegisteredName: (id <String>)name + newForReceivingFromRegisteredName: (NSString*)name
{ {
int n; int n;
@ -372,7 +372,7 @@ static Array *udp_out_port_array;
+ newForSendingToPortNumber: (unsigned short)n + newForSendingToPortNumber: (unsigned short)n
onHost: (id <String>)hostname onHost: (NSString*)hostname
{ {
struct hostent *hp; struct hostent *hp;
const char *host_cstring; const char *host_cstring;
@ -425,7 +425,7 @@ static Array *udp_out_port_array;
return (int) ntohs (_address.sin_port); return (int) ntohs (_address.sin_port);
} }
- (id <String>) hostname - (NSString*) hostname
{ {
[self notImplemented: _cmd]; [self notImplemented: _cmd];
return nil; return nil;

View file

@ -151,7 +151,7 @@ ostream_printf (ostream *s, const char *format, ...)
void void
ostream_vprintf (ostream *s, const char *format, va_list argList) ostream_vprintf (ostream *s, const char *format, va_list argList)
{ {
id <String> str = [String stringWithCString: format]; id str = [String stringWithCString: format];
if (s->flags & OSTREAM_WRITEFLAG) if (s->flags & OSTREAM_WRITEFLAG)
[(id <Streaming>)s->stream_obj writeFormat: str arguments: argList]; [(id <Streaming>)s->stream_obj writeFormat: str arguments: argList];
else else
@ -172,7 +172,7 @@ ostream_scanf (ostream *s, const char *format, ...)
int int
ostream_vscanf (ostream *s, const char *format, va_list argList) ostream_vscanf (ostream *s, const char *format, va_list argList)
{ {
id <String> str = [String stringWithCString: format]; id str = [String stringWithCString: format];
if (s->flags & OSTREAM_READFLAG) if (s->flags & OSTREAM_READFLAG)
return [(id <Streaming>)s->stream_obj readFormat: str return [(id <Streaming>)s->stream_obj readFormat: str
arguments: argList]; arguments: argList];