diff --git a/Headers/gnustep/base/CStream.h b/Headers/gnustep/base/CStream.h index 52c06474c..555a5c92b 100644 --- a/Headers/gnustep/base/CStream.h +++ b/Headers/gnustep/base/CStream.h @@ -40,19 +40,19 @@ It reads the CStream signature at the beginning of the file, and automatically creates the appropriate subclass of CStream with the correct format version. */ -+ cStreamReadingFromFile: (id ) filename; ++ cStreamReadingFromFile: (NSString*) filename; + cStreamReadingFromStream: (id ) stream; /* These are standard ways to create a new CStream with a Stream that is open for writing. */ -- initForWritingToFile: (id ) filename; +- initForWritingToFile: (NSString*) filename; - initForWritingToStream: (id ) stream; - initForWritingToStream: (id ) s withFormatVersion: (int)version; + cStreamWritingToStream: (id ) stream; -+ cStreamWritingToFile: (id ) filename; ++ cStreamWritingToFile: (NSString*) filename; @end diff --git a/Headers/gnustep/base/CStreaming.h b/Headers/gnustep/base/CStreaming.h index cbaa28a2b..ffce4c672 100644 --- a/Headers/gnustep/base/CStreaming.h +++ b/Headers/gnustep/base/CStreaming.h @@ -31,18 +31,18 @@ - (void) encodeValueOfCType: (const char*) type at: (const void*) d - withName: (id ) name; + withName: (NSString*) name; - (void) decodeValueOfCType: (const char*) type at: (void*) d - withName: (id *) namePtr; + withName: (NSString* *) namePtr; -- (void) encodeWithName: (id ) name +- (void) encodeWithName: (NSString*) name valuesOfCTypes: (const char *) types, ...; -- (void) decodeWithName: (id *)name +- (void) decodeWithName: (NSString* *)name valuesOfCTypes: (const char *)types, ...; -- (void) encodeName: (id ) name; -- (void) decodeName: (id *) name; +- (void) encodeName: (NSString*) name; +- (void) decodeName: (NSString* *) name; - (void) encodeIndent; - (void) decodeIndent; diff --git a/Headers/gnustep/base/Coder.h b/Headers/gnustep/base/Coder.h index 42e5b53a9..9d752c566 100644 --- a/Headers/gnustep/base/Coder.h +++ b/Headers/gnustep/base/Coder.h @@ -64,10 +64,10 @@ unsigned fref_counter; /* Keep track of unused fref numbers */ } -- initForWritingToFile: (id ) filename; -- initForWritingToFile: (id ) filename +- initForWritingToFile: (NSString*) filename; +- initForWritingToFile: (NSString*) filename withCStreamClass: (Class) cStreamClass; -- initForWritingToFile: (id ) filename +- initForWritingToFile: (NSString*) filename withFormatVersion: (int) version cStreamClass: (Class)scc cStreamFormatVersion: (int) cStreamFormatVersion; @@ -81,10 +81,10 @@ cStreamFormatVersion: (int) cStreamFormatVersion; + (BOOL) encodeRootObject: anObject - withName: (id ) name - toFile: (id ) filename; + withName: (NSString*) name + toFile: (NSString*) filename; + (BOOL) encodeRootObject: anObject - withName: (id ) name + withName: (NSString*) name toStream: (id )stream; /* Defaults */ @@ -118,12 +118,12 @@ header of the file or stream determines which subclass of Decoder is created. */ -+ newReadingFromFile: (id ) filename; ++ newReadingFromFile: (NSString*) filename; + newReadingFromStream: (id )stream; -+ decodeObjectWithName: (id *) name - fromFile: (id ) filename; -+ decodeObjectWithName: (id *) name ++ decodeObjectWithName: (NSString* *) name + fromFile: (NSString*) filename; ++ decodeObjectWithName: (NSString* *) name fromStream: (id )stream; @end diff --git a/Headers/gnustep/base/Connection.h b/Headers/gnustep/base/Connection.h index 4c2481b2a..2fdcc7de4 100644 --- a/Headers/gnustep/base/Connection.h +++ b/Headers/gnustep/base/Connection.h @@ -92,12 +92,12 @@ it's unclear if we're connecting to another Connection that already registered with that name. */ + (Connection*) newWithRootObject: anObj; -+ (Connection*) newRegisteringAtName: (id )n withRootObject: anObj; ++ (Connection*) newRegisteringAtName: (NSString*)n withRootObject: anObj; /* Get a proxy to a remote server object. A new connection is created if necessary. */ -+ (Proxy*) rootProxyAtName: (id )name onHost: (id )host; -+ (Proxy*) rootProxyAtName: (id )name; ++ (Proxy*) rootProxyAtName: (NSString*)name onHost: (NSString*)host; ++ (Proxy*) rootProxyAtName: (NSString*)name; + (Proxy*) rootProxyAtPort: (OutPort*)anOutPort; + (Proxy*) rootProxyAtPort: (OutPort*)anOutPort withInPort: (InPort*)anInPort; diff --git a/Headers/gnustep/base/Notification.h b/Headers/gnustep/base/Notification.h index 0814fc0b3..11c2e452c 100644 --- a/Headers/gnustep/base/Notification.h +++ b/Headers/gnustep/base/Notification.h @@ -30,7 +30,7 @@ #include @protocol Notifying -- (id ) name; +- (NSString*) name; - object; - userInfo; @end @@ -46,10 +46,10 @@ id _info; } -+ notificationWithName: (id )name ++ notificationWithName: (NSString*)name object: object; -+ notificationWithName: (id )name ++ notificationWithName: (NSString*)name object: object userInfo: info; diff --git a/Headers/gnustep/base/NotificationDispatcher.h b/Headers/gnustep/base/NotificationDispatcher.h index a7e064552..d4fc8dbbe 100644 --- a/Headers/gnustep/base/NotificationDispatcher.h +++ b/Headers/gnustep/base/NotificationDispatcher.h @@ -109,7 +109,7 @@ INVOCATION and NAME, however, are retained. */ - (void) addInvocation: (id )invocation - name: (id )name + name: (NSString*)name object: object; /* Register OBSERVER to receive future notifications that match NAME @@ -132,18 +132,18 @@ - (void) addObserver: observer selector: (SEL)sel - name: (id )name + name: (NSString*)name object: object; /* Class versions of the above two methods that send these messages to the default NotificationDispatcher for the class. */ + (void) addInvocation: (id )invocation - name: (id )name + name: (NSString*)name object: object; + (void) addObserver: observer selector: (SEL)sel - name: (id )name + name: (NSString*)name object: object; @@ -159,7 +159,7 @@ request, nil NAME or OBJECT act as wildcards. */ - (void) removeInvocation: invocation - name: (id )name + name: (NSString*)name object: object; /* Remove all records pertaining to OBSERVER. For instance, this @@ -172,7 +172,7 @@ OBJECT act as wildcards. */ - (void) removeObserver: observer - name: (id )name + name: (NSString*)name object: object; /* Class versions of the above four methods that send these messages @@ -180,11 +180,11 @@ + (void) removeInvocation: invocation; + (void) removeInvocation: invocation - name: (id )name + name: (NSString*)name object: object; + (void) removeObserver: observer; + (void) removeObserver: observer - name: (id )name + name: (NSString*)name object: object; @@ -195,9 +195,9 @@ pass that single object instead of a Dictionary containing the object. */ - (void) postNotification: notification; -- (void) postNotificationName: (id )name +- (void) postNotificationName: (NSString*)name object: object; -- (void) postNotificationName: (id )name +- (void) postNotificationName: (NSString*)name object: object userInfo: info; @@ -205,9 +205,9 @@ to the default NotificationDispatcher for the class. */ + (void) postNotification: notification; -+ (void) postNotificationName: (id )name ++ (void) postNotificationName: (NSString*)name object: object; -+ (void) postNotificationName: (id )name ++ (void) postNotificationName: (NSString*)name object: object userInfo: info; diff --git a/Headers/gnustep/base/Port.h b/Headers/gnustep/base/Port.h index 68adaa027..f9b662a9e 100644 --- a/Headers/gnustep/base/Port.h +++ b/Headers/gnustep/base/Port.h @@ -55,12 +55,12 @@ } + newForReceiving; -+ newForReceivingFromRegisteredName: (id )name; ++ newForReceivingFromRegisteredName: (NSString*)name; /* Register/Unregister this port for input handling through RunLoop RUN_LOOP in mode MODE. */ -- (void) addToRunLoop: run_loop forMode: (id )mode; -- (void) removeFromRunLoop: run_loop forMode: (id )mode; +- (void) addToRunLoop: run_loop forMode: (NSString*)mode; +- (void) removeFromRunLoop: run_loop forMode: (NSString*)mode; /* When a RunLoop is handling this InPort, and a new incoming packet arrives, INVOCATION will be invoked with the new packet @@ -79,8 +79,8 @@ @interface OutPort : Port -+ newForSendingToRegisteredName: (id )name - onHost: (id )hostname; ++ newForSendingToRegisteredName: (NSString*)name + onHost: (NSString*)hostname; - (BOOL) sendPacket: packet; @end diff --git a/Headers/gnustep/base/RunLoop.h b/Headers/gnustep/base/RunLoop.h index 91341272f..444a71502 100644 --- a/Headers/gnustep/base/RunLoop.h +++ b/Headers/gnustep/base/RunLoop.h @@ -17,30 +17,30 @@ } - (void) addPort: port - forMode: (id )mode; + forMode: (NSString*)mode; - (void) removePort: port - forMode: (id )mode; + forMode: (NSString*)mode; -- (void) addTimer: timer forMode: (id )mode; +- (void) addTimer: timer forMode: (NSString*)mode; -- limitDateForMode: (id )mode; -- (void) acceptInputForMode: (id )mode +- limitDateForMode: (NSString*)mode; +- (void) acceptInputForMode: (NSString*)mode beforeDate: date; -- (id ) currentMode; +- (NSString*) currentMode; - (void) run; - (void) runUntilDate: limit_date; - (BOOL) runOnceBeforeDate: date; -- (BOOL) runOnceBeforeDate: date forMode: (id )mode; +- (BOOL) runOnceBeforeDate: date forMode: (NSString*)mode; + (void) run; + (void) runUntilDate: date; -+ (void) runUntilDate: date forMode: (id )mode; ++ (void) runUntilDate: date forMode: (NSString*)mode; + (BOOL) runOnceBeforeDate: date; -+ (BOOL) runOnceBeforeDate: date forMode: (id )mode; ++ (BOOL) runOnceBeforeDate: date forMode: (NSString*)mode; + currentInstance; -+ (id ) currentMode; ++ (NSString*) currentMode; @end @@ -64,16 +64,16 @@ extern id RunLoopDefaultMode; message whenever the descriptor (fd) is readable. */ - (void) addReadDescriptor: (int)fd object: (id )listener - forMode: (id )mode; + forMode: (NSString*)mode; /* Register an object (speaker) to receive 'readyForWritingOnFileDescriptor:' message whenever the descriptor (fd) is writable. */ - (void) addWriteDescriptor: (int)fd object: (id )speaker - forMode: (id )mode; + forMode: (NSString*)mode; - (void) removeReadDescriptor: (int)fd - forMode: (id )mode; + forMode: (NSString*)mode; - (void) removeWriteDescriptor: (int)fd - forMode: (id )mode; + forMode: (NSString*)mode; @end /* xxx This interface will probably change. */ diff --git a/Headers/gnustep/base/SocketPort.h b/Headers/gnustep/base/SocketPort.h index ee29be8e2..88b71aa11 100644 --- a/Headers/gnustep/base/SocketPort.h +++ b/Headers/gnustep/base/SocketPort.h @@ -48,7 +48,7 @@ typedef struct sockaddr_in sockport_t; + newForSockPort: (sockport_t)s; + newLocalWithNumber: (int)n; + newLocal; -+ newRemoteWithNumber: (int)n onHost: (id )h; ++ newRemoteWithNumber: (int)n onHost: (NSString*)h; - (sockport_t) sockPort; diff --git a/Headers/gnustep/base/StdioStream.h b/Headers/gnustep/base/StdioStream.h index 620a20812..70ca10c3b 100644 --- a/Headers/gnustep/base/StdioStream.h +++ b/Headers/gnustep/base/StdioStream.h @@ -38,15 +38,15 @@ + standardOut; + standardError; -+ streamWithFilename: (id )name fmode: (const char *)m; ++ streamWithFilename: (NSString*)name fmode: (const char *)m; /* xxx Add the others too. */ - initWithFilePointer: (FILE*)afp fmode: (const char *)m; -- initWithFilename: (id )name fmode: (const char *)m; +- initWithFilename: (NSString*)name fmode: (const char *)m; - initWithFileDescriptor: (int)fd fmode: (const char *)m; -- initWithPipeTo: (id )systemCommand; -- initWithPipeFrom: (id )systemCommand; +- initWithPipeTo: (NSString*)systemCommand; +- initWithPipeFrom: (NSString*)systemCommand; @end diff --git a/Headers/gnustep/base/Streaming.h b/Headers/gnustep/base/Streaming.h index 8e03a253e..8313bf3e7 100644 --- a/Headers/gnustep/base/Streaming.h +++ b/Headers/gnustep/base/Streaming.h @@ -35,13 +35,13 @@ - (int) writeBytes: (const void*)b length: (int)l; - (int) readBytes: (void*)b length: (int)l; -- (int) writeFormat: (id )format, ...; -- (int) readFormat: (id )format, ...; -- (int) writeFormat: (id )format arguments: (va_list)arg; -- (int) readFormat: (id )format arguments: (va_list)arg; +- (int) writeFormat: (NSString*)format, ...; +- (int) readFormat: (NSString*)format, ...; +- (int) writeFormat: (NSString*)format arguments: (va_list)arg; +- (int) readFormat: (NSString*)format arguments: (va_list)arg; -- (void) writeLine: (id )l; -- (id ) readLine; +- (void) writeLine: (NSString*)l; +- (NSString*) readLine; - (unsigned) streamPosition; - (BOOL) isAtEof; diff --git a/Headers/gnustep/base/TcpPort.h b/Headers/gnustep/base/TcpPort.h index fc93ddadb..ca5c4e417 100644 --- a/Headers/gnustep/base/TcpPort.h +++ b/Headers/gnustep/base/TcpPort.h @@ -72,7 +72,7 @@ } + newForSendingToPortNumber: (unsigned short)n - onHost: (id )hostname; + onHost: (NSString*)hostname; - (int) portNumber; @end diff --git a/Headers/gnustep/base/UdpPort.h b/Headers/gnustep/base/UdpPort.h index ef6d6786e..0ba17d3ff 100644 --- a/Headers/gnustep/base/UdpPort.h +++ b/Headers/gnustep/base/UdpPort.h @@ -49,7 +49,7 @@ } - (int) portNumber; -- (id ) hostname; +- (NSString*) hostname; @end diff --git a/Headers/gnustep/base/ValueHolding.h b/Headers/gnustep/base/ValueHolding.h index d5f283c04..b73cff7c3 100644 --- a/Headers/gnustep/base/ValueHolding.h +++ b/Headers/gnustep/base/ValueHolding.h @@ -33,7 +33,7 @@ - (float) floatValue; - (double) doubleValue; - (const char *) cStringValue; -- /* (id ) */ stringValue; +- /* (NSString*) */ stringValue; @end @protocol ValueSetting @@ -41,7 +41,7 @@ - (void) setFloatValue: (float)aFloat; - (void) setDoubleValue: (double)aDouble; - (void) setCStringValue: (const char *)aCString; -- (void) setStringValue: /* (id ) */ aString; +- (void) setStringValue: /* (NSString*) */ aString; @end @protocol ValueHolding diff --git a/Source/BinaryCStream.m b/Source/BinaryCStream.m index de6248548..f5f345bb9 100644 --- a/Source/BinaryCStream.m +++ b/Source/BinaryCStream.m @@ -92,7 +92,7 @@ static int debug_binary_coder = 0; - (void) encodeValueOfCType: (const char*)type at: (const void*)d - withName: (id ) name + withName: (NSString*) name { /* Make sure we're not being asked to encode an "ObjC" type. */ assert(type); @@ -319,7 +319,7 @@ static int debug_binary_coder = 0; - (void) decodeValueOfCType: (const char*)type at: (void*)d - withName: (id *)namePtr + withName: (NSString* *)namePtr { char encoded_type; @@ -488,14 +488,14 @@ static int debug_binary_coder = 0; /* Encoding and decoding names. */ -- (void) encodeName: (id ) name +- (void) encodeName: (NSString*) name { if (debug_binary_coder) [[[self class] debugStderrCoder] encodeName:name]; } -- (void) decodeName: (id *)n +- (void) decodeName: (NSString* *)n { #if 1 if (n) diff --git a/Source/CStream.m b/Source/CStream.m index 49733586d..aea760840 100644 --- a/Source/CStream.m +++ b/Source/CStream.m @@ -39,14 +39,14 @@ id CStreamSignatureMismatchException = @"CStreamSignatureMismatchException"; - (void) encodeValueOfCType: (const char*) type at: (const void*) d - withName: (id ) name; + withName: (NSString*) name; { [self subclassResponsibility:_cmd]; } - (void) decodeValueOfCType: (const char*) type at: (void*) d - withName: (id *) namePtr; + withName: (NSString* *) namePtr; { [self subclassResponsibility:_cmd]; } @@ -140,7 +140,7 @@ id CStreamSignatureMismatchException = @"CStreamSignatureMismatchException"; return [new_cstream autorelease]; } -+ cStreamReadingFromFile: (id ) filename ++ cStreamReadingFromFile: (NSString*) filename { return [self cStreamReadingFromStream: [StdioStream streamWithFilename: filename fmode: "r"]]; @@ -162,7 +162,7 @@ id CStreamSignatureMismatchException = @"CStreamSignatureMismatchException"; withFormatVersion: [[self class] defaultFormatVersion]]; } -- initForWritingToFile: (id ) file +- initForWritingToFile: (NSString*) file { return [self initForWritingToStream: [StdioStream streamWithFilename: file fmode: "w"]]; @@ -174,7 +174,7 @@ id CStreamSignatureMismatchException = @"CStreamSignatureMismatchException"; autorelease]; } -+ cStreamWritingToFile: (id ) filename; ++ cStreamWritingToFile: (NSString*) filename; { return [[[self alloc] initForWritingToFile: filename] autorelease]; @@ -183,7 +183,7 @@ id CStreamSignatureMismatchException = @"CStreamSignatureMismatchException"; /* Encoding/decoding indentation */ -- (void) encodeWithName: (id ) name +- (void) encodeWithName: (NSString*) name valuesOfCTypes: (const char *) types, ... { va_list ap; @@ -200,7 +200,7 @@ id CStreamSignatureMismatchException = @"CStreamSignatureMismatchException"; va_end (ap); } -- (void) decodeWithName: (id *)name +- (void) decodeWithName: (NSString* *)name valuesOfCTypes: (const char *)types, ... { va_list ap; @@ -237,12 +237,12 @@ id CStreamSignatureMismatchException = @"CStreamSignatureMismatchException"; /* Do nothing */ } -- (void) encodeName: (id ) n +- (void) encodeName: (NSString*) n { /* Do nothing */ } -- (void) decodeName: (id *) name +- (void) decodeName: (NSString* *) name { /* Do nothing */ } diff --git a/Source/Connection.m b/Source/Connection.m index d7205a277..b1bd2e921 100644 --- a/Source/Connection.m +++ b/Source/Connection.m @@ -302,7 +302,7 @@ static int messages_received_count; if we're connecting to another Connection that already registered with that name. */ -+ (Connection*) newRegisteringAtName: (id )n withRootObject: anObj ++ (Connection*) newRegisteringAtName: (NSString*)n withRootObject: anObj { id newPort; id newConn; @@ -314,12 +314,12 @@ static int messages_received_count; return newConn; } -+ (Proxy*) rootProxyAtName: (id )n ++ (Proxy*) rootProxyAtName: (NSString*)n { return [self rootProxyAtName: n onHost: @""]; } -+ (Proxy*) rootProxyAtName: (id )n onHost: (id )h ++ (Proxy*) rootProxyAtName: (NSString*)n onHost: (NSString*)h { id p = [default_out_port_class newForSendingToRegisteredName: n onHost: h]; return [self rootProxyAtPort: p]; diff --git a/Source/Decoder.m b/Source/Decoder.m index e53f93467..e7ee88396 100644 --- a/Source/Decoder.m +++ b/Source/Decoder.m @@ -81,14 +81,14 @@ static int debug_coder = 0; return new_coder; } -+ newReadingFromFile: (id ) filename ++ newReadingFromFile: (NSString*) filename { return [self newReadingFromStream: [StdioStream streamWithFilename: filename fmode: "r"]]; } -+ decodeObjectWithName: (id *) name ++ decodeObjectWithName: (NSString* *) name fromStream: (id )stream; { id c, o; @@ -98,8 +98,8 @@ static int debug_coder = 0; return [o autorelease]; } -+ decodeObjectWithName: (id *) name - fromFile: (id ) filename; ++ decodeObjectWithName: (NSString* *) name + fromFile: (NSString*) filename; { return [self decodeObjectWithName: name fromStream: @@ -297,7 +297,7 @@ static int debug_coder = 0; - (void) decodeValueOfCType: (const char*)type at: (void*)d - withName: (id *)namePtr + withName: (NSString* *)namePtr { [cstream decodeValueOfCType:type at:d @@ -306,7 +306,7 @@ static int debug_coder = 0; - (void) decodeBytes: (void *)b count: (unsigned)c - withName: (id *) name + withName: (NSString* *) name { int actual_count; /* xxx Is this what we want? @@ -396,7 +396,7 @@ static int debug_coder = 0; return ret; } -- (const char *) decodeAtomicStringWithName: (id *) name +- (const char *) decodeAtomicStringWithName: (NSString* *) name { char *s; /* xxx Add repeat-string-ptr checking here */ @@ -405,7 +405,7 @@ static int debug_coder = 0; return s; } -- (SEL) decodeSelectorWithName: (id *) name +- (SEL) decodeSelectorWithName: (NSString* *) name { char tag; SEL ret = NULL; @@ -529,7 +529,7 @@ static int debug_coder = 0; [self _coderPopRootObjectTable]; } -- (void) _decodeRootObjectAt: (id*)ret withName: (id *) name +- (void) _decodeRootObjectAt: (id*)ret withName: (NSString* *) name { [self startDecodingInterconnectedObjects]; [self decodeObjectAt:ret withName:name]; @@ -539,7 +539,7 @@ static int debug_coder = 0; - (void) decodeValueOfObjCType: (const char*)type at: (void*)d - withName: (id *)namePtr + withName: (NSString* *)namePtr { switch (*type) { @@ -570,7 +570,7 @@ static int debug_coder = 0; } /* This is the designated (and one-and-only) object decoder */ -- (void) decodeObjectAt: (id*) anObjPtr withName: (id *) name +- (void) decodeObjectAt: (id*) anObjPtr withName: (NSString* *) name { unsigned char tag; unsigned fref = 0; @@ -698,7 +698,7 @@ static int debug_coder = 0; } -- (void) decodeWithName: (id *)name +- (void) decodeWithName: (NSString* *)name valuesOfObjCTypes: (const char *)types, ... { va_list ap; @@ -717,7 +717,7 @@ static int debug_coder = 0; - (void) decodeValueOfObjCTypes: (const char *)types at: (void *)d - withName: (id *)name + withName: (NSString* *)name { [self decodeName:name]; while (*types) @@ -732,7 +732,7 @@ static int debug_coder = 0; - (void) decodeArrayOfObjCType: (const char *)type count: (unsigned)c at: (void *)d - withName: (id *) name + withName: (NSString* *) name { int i; int offset = objc_sizeof_type(type); @@ -758,7 +758,7 @@ static int debug_coder = 0; [cstream decodeUnindent]; } -- (void) decodeName: (id *)n +- (void) decodeName: (NSString* *)n { [cstream decodeName: n]; } diff --git a/Source/Encoder.m b/Source/Encoder.m index 9f562149e..246c409c5 100644 --- a/Source/Encoder.m +++ b/Source/Encoder.m @@ -162,7 +162,7 @@ my_object_is_class(id object) withCStreamClass: [[self class] defaultCStreamClass]]; } -- initForWritingToFile: (id ) filename +- initForWritingToFile: (NSString*) filename withFormatVersion: (int) version cStreamClass: (Class) cStreamClass cStreamFormatVersion: (int) cStreamFormatVersion @@ -175,7 +175,7 @@ my_object_is_class(id object) cStreamFormatVersion: cStreamFormatVersion]; } -- initForWritingToFile: (id ) filename +- initForWritingToFile: (NSString*) filename withCStreamClass: (Class) cStreamClass { return [self initForWritingToStream: [StdioStream @@ -184,7 +184,7 @@ my_object_is_class(id object) withCStreamClass: cStreamClass]; } -- initForWritingToFile: (id ) filename +- initForWritingToFile: (NSString*) filename { return [self initForWritingToStream: [StdioStream streamWithFilename: filename @@ -196,7 +196,7 @@ my_object_is_class(id object) return [[self alloc] initForWritingToStream: s]; } -+ newWritingToFile: (id )filename ++ newWritingToFile: (NSString*)filename { return [self newWritingToStream: [StdioStream streamWithFilename: filename @@ -204,7 +204,7 @@ my_object_is_class(id object) } + (BOOL) encodeRootObject: anObject - withName: (id ) name + withName: (NSString*) name toStream: (id )stream { id c = [[self alloc] initForWritingToStream: stream]; @@ -215,8 +215,8 @@ my_object_is_class(id object) } + (BOOL) encodeRootObject: anObject - withName: (id ) name - toFile: (id ) filename + withName: (NSString*) name + toFile: (NSString*) filename { return [self encodeRootObject: anObject withName: name @@ -365,7 +365,7 @@ my_object_is_class(id object) - (void) encodeValueOfCType: (const char*)type at: (const void*)d - withName: (id )name + withName: (NSString*)name { [cstream encodeValueOfCType:type at:d @@ -374,7 +374,7 @@ my_object_is_class(id object) - (void) encodeBytes: (const void *)b count: (unsigned)c - withName: (id )name + withName: (NSString*)name { /* xxx Is this what we want? It won't be cleanly readable in TextCStream's. */ @@ -450,14 +450,14 @@ my_object_is_class(id object) } - (void) encodeAtomicString: (const char*) sp - withName: (id ) name + withName: (NSString*) name { /* xxx Add repeat-string-ptr checking here. */ [self notImplemented:_cmd]; [self encodeValueOfCType:@encode(char*) at:&sp withName:name]; } -- (void) encodeSelector: (SEL)sel withName: (id ) name +- (void) encodeSelector: (SEL)sel withName: (NSString*) name { [self encodeName:name]; [self encodeIndent]; @@ -520,7 +520,7 @@ my_object_is_class(id object) - (void) encodeValueOfObjCType: (const char*) type at: (const void*) d - withName: (id ) name + withName: (NSString*) name { switch (*type) { @@ -564,7 +564,7 @@ my_object_is_class(id object) /* NOTE: Unlike NeXT's, this *can* be called recursively */ - (void) encodeRootObject: anObj - withName: (id )name + withName: (NSString*)name { [self encodeName: @"Root Object"]; [self encodeIndent]; @@ -618,7 +618,7 @@ my_object_is_class(id object) /* This is the designated object encoder */ - (void) _encodeObject: anObj - withName: (id ) name + withName: (NSString*) name isBycopy: (BOOL) bycopy_flag isForwardReference: (BOOL) forward_ref_flag { @@ -726,27 +726,27 @@ my_object_is_class(id object) } - (void) encodeObject: anObj - withName: (id )name + withName: (NSString*)name { [self _encodeObject:anObj withName:name isBycopy:NO isForwardReference:NO]; } - (void) encodeBycopyObject: anObj - withName: (id )name + withName: (NSString*)name { [self _encodeObject:anObj withName:name isBycopy:YES isForwardReference:NO]; } - (void) encodeObjectReference: anObj - withName: (id )name + withName: (NSString*)name { [self _encodeObject:anObj withName:name isBycopy:NO isForwardReference:YES]; } -- (void) encodeWithName: (id )name +- (void) encodeWithName: (NSString*)name valuesOfObjCTypes: (const char *)types, ... { va_list ap; @@ -765,7 +765,7 @@ my_object_is_class(id object) - (void) encodeValueOfObjCTypes: (const char *)types at: (const void *)d - withName: (id )name + withName: (NSString*)name { [self encodeName:name]; while (*types) @@ -780,7 +780,7 @@ my_object_is_class(id object) - (void) encodeArrayOfObjCType: (const char *)type count: (unsigned)c at: (const void *)d - withName: (id )name + withName: (NSString*)name { int i; int offset = objc_sizeof_type(type); @@ -806,7 +806,7 @@ my_object_is_class(id object) [cstream encodeUnindent]; } -- (void) encodeName: (id )n +- (void) encodeName: (NSString*)n { [cstream encodeName: n]; } @@ -814,7 +814,7 @@ my_object_is_class(id object) /* Substituting Classes */ -- (id ) classNameEncodedForTrueClassName: (id ) trueName +- (NSString*) classNameEncodedForTrueClassName: (NSString*) trueName { [self notImplemented: _cmd]; return nil; @@ -826,8 +826,8 @@ my_object_is_class(id object) #endif } -- (void) encodeClassName: (id ) trueName - intoClassName: (id ) inArchiveName +- (void) encodeClassName: (NSString*) trueName + intoClassName: (NSString*) inArchiveName { [self notImplemented: _cmd]; diff --git a/Source/KeyedCollection.m b/Source/KeyedCollection.m index b515a918b..eaca12285 100644 --- a/Source/KeyedCollection.m +++ b/Source/KeyedCollection.m @@ -231,7 +231,7 @@ OBJC_FREE(keys); } -- (id ) description +- (NSString*) description { id s = [NSMutableString new]; id o, k; diff --git a/Source/MemoryStream.m b/Source/MemoryStream.m index 775d093ae..ae360e382 100644 --- a/Source/MemoryStream.m +++ b/Source/MemoryStream.m @@ -182,7 +182,7 @@ static BOOL debug_memory_stream = NO; return l; } -- (id ) readLine +- (NSString*) readLine { char *nl = memchr(buffer+prefix+position, '\n', eof_position-position); char *ret = NULL; @@ -224,7 +224,7 @@ void unchar_func(void *s, int c) } #if HAVE_VSPRINTF -- (int) writeFormat: (id )format +- (int) writeFormat: (NSString*)format arguments: (va_list)arg { int ret; @@ -256,7 +256,7 @@ void unchar_func(void *s, int c) } #endif -- (int) readFormat: (id )format, ... +- (int) readFormat: (NSString*)format, ... { int ret; va_list ap; diff --git a/Source/NSGArchiver.m b/Source/NSGArchiver.m index 59a439cbe..e5465dd98 100644 --- a/Source/NSGArchiver.m +++ b/Source/NSGArchiver.m @@ -39,13 +39,13 @@ @implementation NSGArchiverNullCStream - (void) encodeValueOfCType: (const char*)type at: (const void*)d - withName: (id ) name + withName: (NSString*) name { return; } - (void) decodeValueOfCType: (const char*)type at: (void*)d - withName: (id *)namePtr + withName: (NSString* *)namePtr { [self shouldNotImplement: _cmd]; } @@ -80,7 +80,7 @@ /* Unlike the GNU version, this cannot be called recursively. */ - (void) encodeRootObject: anObj - withName: (id )name + withName: (NSString*)name { id saved_cstream; diff --git a/Source/Notification.m b/Source/Notification.m index 4869f9a9e..3dc0afa1e 100644 --- a/Source/Notification.m +++ b/Source/Notification.m @@ -26,7 +26,7 @@ @implementation Notification /* This is the designated initializer. */ -- initWithName: (id )name +- initWithName: (NSString*)name object: object userInfo: info { @@ -48,7 +48,7 @@ /* Creating autoreleased Notification objects. */ -+ notificationWithName: (id )name ++ notificationWithName: (NSString*)name object: object userInfo: info { @@ -58,7 +58,7 @@ autorelease]; } -+ notificationWithName: (id )name ++ notificationWithName: (NSString*)name object: object { return [self notificationWithName: name @@ -69,7 +69,7 @@ /* Querying a Notification object. */ -- (id ) name +- (NSString*) name { return _name; } diff --git a/Source/NotificationDispatcher.m b/Source/NotificationDispatcher.m index f8af2fa7b..d63fb16a5 100644 --- a/Source/NotificationDispatcher.m +++ b/Source/NotificationDispatcher.m @@ -55,7 +55,7 @@ } - initWithName: n object: o; -- (id ) notificationName; +- (NSString*) notificationName; - notificationObject; - (void) postNotification: n; @end @@ -101,7 +101,7 @@ [super dealloc]; } -- (id ) notificationName +- (NSString*) notificationName { return _name; } @@ -243,7 +243,7 @@ static NotificationDispatcher *default_notification_dispatcher = nil; - (void) _addObserver: observer notificationRequest: nr - name: (id )name + name: (NSString*)name object: object { /* If observer is nil, there is nothing to do; return. */ @@ -318,7 +318,7 @@ static NotificationDispatcher *default_notification_dispatcher = nil; } - (void) addInvocation: (id )invocation - name: (id )name + name: (NSString*)name object: object { id nr; @@ -347,7 +347,7 @@ static NotificationDispatcher *default_notification_dispatcher = nil; - (void) addObserver: observer selector: (SEL)sel - name: (id )name + name: (NSString*)name object: object { id nr; @@ -427,7 +427,7 @@ static NotificationDispatcher *default_notification_dispatcher = nil; request, nil NAME or OBJECT act as wildcards. */ - (void) removeInvocation: invocation - name: (id )name + name: (NSString*)name object: object { [self removeObserver: invocation @@ -482,7 +482,7 @@ static NotificationDispatcher *default_notification_dispatcher = nil; adding an observation request, nil NAME or OBJECT act as wildcards. */ - (void) removeObserver: observer - name: (id )name + name: (NSString*)name object: object { Array *observer_nr_array; @@ -597,14 +597,14 @@ static NotificationDispatcher *default_notification_dispatcher = nil; [_lock unlock]; } -- (void) postNotificationName: (id )name +- (void) postNotificationName: (NSString*)name object: object { [self postNotification: [Notification notificationWithName: name object: object]]; } -- (void) postNotificationName: (id )name +- (void) postNotificationName: (NSString*)name object: object userInfo: info { @@ -623,7 +623,7 @@ static NotificationDispatcher *default_notification_dispatcher = nil; } + (void) addInvocation: (id )invocation - name: (id )name + name: (NSString*)name object: object { [default_notification_dispatcher addInvocation: invocation @@ -633,7 +633,7 @@ static NotificationDispatcher *default_notification_dispatcher = nil; + (void) addObserver: observer selector: (SEL)sel - name: (id )name + name: (NSString*)name object: object { [default_notification_dispatcher addObserver: observer @@ -648,7 +648,7 @@ static NotificationDispatcher *default_notification_dispatcher = nil; } + (void) removeInvocation: invocation - name: (id )name + name: (NSString*)name object: object { [default_notification_dispatcher removeInvocation: invocation @@ -662,7 +662,7 @@ static NotificationDispatcher *default_notification_dispatcher = nil; } + (void) removeObserver: observer - name: (id )name + name: (NSString*)name object: object { [default_notification_dispatcher removeObserver: observer @@ -675,14 +675,14 @@ static NotificationDispatcher *default_notification_dispatcher = nil; [default_notification_dispatcher postNotification: notification]; } -+ (void) postNotificationName: (id )name ++ (void) postNotificationName: (NSString*)name object: object { [default_notification_dispatcher postNotificationName: name object: object]; } -+ (void) postNotificationName: (id )name ++ (void) postNotificationName: (NSString*)name object: object userInfo: info { diff --git a/Source/Port.m b/Source/Port.m index c05d0ce82..e54585807 100644 --- a/Source/Port.m +++ b/Source/Port.m @@ -117,7 +117,7 @@ return self; } -+ newForReceivingFromRegisteredName: (id )name ++ newForReceivingFromRegisteredName: (NSString*)name { [self subclassResponsibility:_cmd]; return nil; @@ -140,12 +140,12 @@ _packet_invocation = invocation; } -- (void) addToRunLoop: run_loop forMode: (id )mode +- (void) addToRunLoop: run_loop forMode: (NSString*)mode { [self subclassResponsibility:_cmd]; } -- (void) removeFromRunLoop: run_loop forMode: (id )mode +- (void) removeFromRunLoop: run_loop forMode: (NSString*)mode { [self subclassResponsibility:_cmd]; } @@ -155,8 +155,8 @@ @implementation OutPort -+ newForSendingToRegisteredName: (id )name - onHost: (id )hostname ++ newForSendingToRegisteredName: (NSString*)name + onHost: (NSString*)hostname { [self subclassResponsibility:_cmd]; return nil; diff --git a/Source/RawCStream.m b/Source/RawCStream.m index 737933870..19af10f6f 100644 --- a/Source/RawCStream.m +++ b/Source/RawCStream.m @@ -60,7 +60,7 @@ static BOOL debug_binary_coder; return c; } -- (void) encodeName: (id ) name +- (void) encodeName: (NSString*) name { if (debug_binary_coder) [[[self class] debugStderrCoder] @@ -73,7 +73,7 @@ static BOOL debug_binary_coder; - (void) encodeValueOfCType: (const char*)type at: (const void*)d - withName: (id ) name + withName: (NSString*) name { if (debug_binary_coder) { @@ -168,7 +168,7 @@ static BOOL debug_binary_coder; - (void) decodeValueOfCType: (const char*)type at: (void*)d - withName: (id *)namePtr + withName: (NSString* *)namePtr { assert(type); assert(*type != '@'); @@ -274,7 +274,7 @@ static BOOL debug_binary_coder; return DEFAULT_FORMAT_VERSION; } -- (void) decodeName: (id *)n +- (void) decodeName: (NSString* *)n { #if 1 if (n) diff --git a/Source/RunLoop.m b/Source/RunLoop.m index e91f9129e..a6a807443 100644 --- a/Source/RunLoop.m +++ b/Source/RunLoop.m @@ -129,7 +129,7 @@ - (void) addReadDescriptor: (int)fd object: (id )listener - forMode: (id )mode + forMode: (NSString*)mode { Bag *fd_listeners; FdInfo *info; @@ -156,7 +156,7 @@ - (void) addWriteDescriptor: (int)fd object: (id )speaker - forMode: (id )mode + forMode: (NSString*)mode { Bag *fd_speakers; FdInfo *info; @@ -182,7 +182,7 @@ } - (void) removeReadDescriptor: (int)fd - forMode: (id )mode + forMode: (NSString*)mode { Bag* fd_listeners; @@ -203,7 +203,7 @@ } - (void) removeWriteDescriptor: (int)fd - forMode: (id )mode + forMode: (NSString*)mode { Bag* fd_speakers; @@ -253,7 +253,7 @@ static RunLoop *current_run_loop; return self; } -- (id ) currentMode +- (NSString*) currentMode { return _current_mode; } @@ -262,7 +262,7 @@ static RunLoop *current_run_loop; /* Adding and removing port objects. */ - (void) addPort: port - forMode: (id )mode + forMode: (NSString*)mode { /* 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. */ @@ -279,7 +279,7 @@ static RunLoop *current_run_loop; } - (void) removePort: port - forMode: (id )mode + forMode: (NSString*)mode { /* xxx Perhaps this should be a Bag instead. */ Array *in_ports; @@ -296,7 +296,7 @@ static RunLoop *current_run_loop; /* Adding timers. They are removed when they are invalid. */ - (void) addTimer: timer - forMode: (id )mode + forMode: (NSString*)mode { Heap *timers; @@ -314,7 +314,7 @@ static RunLoop *current_run_loop; /* Fire appropriate timers. */ -- limitDateForMode: (id )mode +- limitDateForMode: (NSString*)mode { /* Linux doesn't always return double from methods, even though I'm using -lieee. */ @@ -361,7 +361,7 @@ static RunLoop *current_run_loop; /* Listen to input sources. If LIMIT_DATE is nil, then don't wait; i.e. call select() with 0 timeout */ -- (void) acceptInputForMode: (id )mode +- (void) acceptInputForMode: (NSString*)mode beforeDate: limit_date { NSTimeInterval ti; @@ -552,7 +552,7 @@ static RunLoop *current_run_loop; /* Running the run loop once through for timers and input listening. */ -- (BOOL) runOnceBeforeDate: date forMode: (id )mode +- (BOOL) runOnceBeforeDate: date forMode: (NSString*)mode { id d; @@ -588,7 +588,7 @@ static RunLoop *current_run_loop; /* Running the run loop multiple times through. */ -- (void) runUntilDate: date forMode: (id )mode +- (void) runUntilDate: date forMode: (NSString*)mode { volatile double ti; @@ -630,7 +630,7 @@ static RunLoop *current_run_loop; [current_run_loop runUntilDate: date]; } -+ (void) runUntilDate: date forMode: (id )mode ++ (void) runUntilDate: date forMode: (NSString*)mode { assert (current_run_loop); [current_run_loop runUntilDate: date forMode: mode]; @@ -641,7 +641,7 @@ static RunLoop *current_run_loop; return [current_run_loop runOnceBeforeDate: date]; } -+ (BOOL) runOnceBeforeDate: date forMode: (id )mode ++ (BOOL) runOnceBeforeDate: date forMode: (NSString*)mode { return [current_run_loop runOnceBeforeDate: date forMode: mode]; } @@ -652,7 +652,7 @@ static RunLoop *current_run_loop; return current_run_loop; } -+ (id ) currentMode ++ (NSString*) currentMode { return [current_run_loop currentMode]; } @@ -679,9 +679,9 @@ id RunLoopDefaultMode = @"RunLoopDefaultMode"; #if 0 -- getNotificationWithName: (id )name +- getNotificationWithName: (NSString*)name object: object - inMode: (id )mode + inMode: (NSString*)mode beforeDate: date { /* See if any timers should fire, and fire them. */ @@ -698,9 +698,9 @@ id RunLoopDefaultMode = @"RunLoopDefaultMode"; } /* Some alternate names */ -- waitForNotificationWithName: (id )name +- waitForNotificationWithName: (NSString*)name object: object - inMode: (id )mode + inMode: (NSString*)mode untilDate: date { } @@ -710,14 +710,14 @@ id RunLoopDefaultMode = @"RunLoopDefaultMode"; /* The old alternate names */ - (void) makeNotificationsForFileDescriptor: (int)fd - forMode: (id )mode - name: (id )name + forMode: (NSString*)mode + name: (NSString*)name object: object postingTo: (id )poster postingStyle: style - (void) addFileDescriptor: (int)fd - forMode: (id )mode - postingWithName: (id )name + forMode: (NSString*)mode + postingWithName: (NSString*)name object: object; - (void) addFileDescriptor: (int)fd withAttender: (id )object diff --git a/Source/SocketPort.m b/Source/SocketPort.m index 1f25fa5dc..ddbb5b3bd 100644 --- a/Source/SocketPort.m +++ b/Source/SocketPort.m @@ -97,7 +97,7 @@ name_to_port_number (const char *name) return self; } -+ newPortFromRegisterWithName: (id )name onHost: (id )h ++ newPortFromRegisterWithName: (NSString*)name onHost: (NSString*)h { id p; int n; @@ -112,7 +112,7 @@ name_to_port_number (const char *name) return p; } -+ newRegisteredPortWithName: (id )name ++ newRegisteredPortWithName: (NSString*)name { int n; @@ -245,7 +245,7 @@ s1.sin_addr.s_addr == s2.sin_addr.s_addr) return sp; } -+ newRemoteWithNumber: (int)n onHost: (id )h ++ newRemoteWithNumber: (int)n onHost: (NSString*)h { struct sockaddr_in remote_addr; struct hostent *hp; diff --git a/Source/StdioStream.m b/Source/StdioStream.m index 8940d5ff1..85b1d6d5d 100644 --- a/Source/StdioStream.m +++ b/Source/StdioStream.m @@ -84,7 +84,7 @@ o_vscanf (void *stream, return stderrStream; } -+ streamWithFilename: (id )name fmode: (const char *)m ++ streamWithFilename: (NSString*)name fmode: (const char *)m { return [[[self alloc] initWithFilename: name fmode: m] @@ -116,7 +116,7 @@ o_vscanf (void *stream, return self; } -- initWithFilename: (id )name fmode: (const char *)m +- initWithFilename: (NSString*)name fmode: (const char *)m { FILE *afp = fopen([name cStringNoCopy], (char*)m); if (!afp) @@ -142,14 +142,14 @@ o_vscanf (void *stream, return [self initWithFilePointer:afp fmode:m]; } -- initWithPipeTo: (id ) systemCommand +- initWithPipeTo: (NSString*) systemCommand { return [self initWithFilePointer: popen([systemCommand cStringNoCopy], "w") fmode:"w"]; } -- initWithPipeFrom: (id ) systemCommand +- initWithPipeFrom: (NSString*) systemCommand { return [self initWithFilePointer: popen([systemCommand cStringNoCopy], "r") @@ -188,7 +188,7 @@ o_vscanf (void *stream, return ret; } -- (int) writeFormat: (id )format +- (int) writeFormat: (NSString*)format arguments: (va_list)arg { return vfprintf(fp, [format cStringNoCopy], arg); @@ -205,7 +205,7 @@ stdio_unchar_func(void *s, int c) ungetc(c, (FILE*)s); } -- (int) readFormat: (id )format, ... +- (int) readFormat: (NSString*)format, ... { int ret; va_list ap; diff --git a/Source/Stream.m b/Source/Stream.m index b9a4ae503..0c5439438 100644 --- a/Source/Stream.m +++ b/Source/Stream.m @@ -59,14 +59,14 @@ NSString* StreamException = @"StreamException"; return 0; } -- (int) writeFormat: (id )format +- (int) writeFormat: (NSString*)format arguments: (va_list)arg { [self subclassResponsibility:_cmd]; return 0; } -- (int) writeFormat: (id )format, ... +- (int) writeFormat: (NSString*)format, ... { int ret; va_list ap; @@ -77,27 +77,27 @@ NSString* StreamException = @"StreamException"; return ret; } -- (int) readFormat: (id )format +- (int) readFormat: (NSString*)format arguments: (va_list)arg { [self subclassResponsibility:_cmd]; return 0; } -- (int) readFormat: (id )format, ... +- (int) readFormat: (NSString*)format, ... { [self subclassResponsibility:_cmd]; return 0; } -- (void) writeLine: (id )l +- (void) writeLine: (NSString*)l { const char *s = [l cStringNoCopy]; [self writeBytes:s length:strlen(s)]; [self writeBytes:"\n" length:1]; } -- (id ) readLine +- (NSString*) readLine { char *l; [self readFormat: @"%a[^\n]\n", &l]; diff --git a/Source/TcpPort.m b/Source/TcpPort.m index 9235aa6f8..668afe8c3 100644 --- a/Source/TcpPort.m +++ b/Source/TcpPort.m @@ -285,7 +285,7 @@ static NSMapTable* port_number_2_port; return p; } -+ newForReceivingFromRegisteredName: (id )name ++ newForReceivingFromRegisteredName: (NSString*)name { return [self newForReceivingFromPortNumber: name_2_port_number ([name cStringNoCopy])]; @@ -853,7 +853,7 @@ static NSMapTable *out_port_bag = NULL; } + newForSendingToPortNumber: (unsigned short)n - onHost: (id )hostname + onHost: (NSString*)hostname { struct hostent *hp; const char *host_cstring; @@ -893,8 +893,8 @@ static NSMapTable *out_port_bag = NULL; pollingInPort: nil]; } -+ newForSendingToRegisteredName: (id )name - onHost: (id )hostname ++ newForSendingToRegisteredName: (NSString*)name + onHost: (NSString*)hostname { return [self newForSendingToPortNumber: name_2_port_number ([name cStringNoCopy]) diff --git a/Source/TextCStream.m b/Source/TextCStream.m index 0e15a25f1..9ca5dd149 100644 --- a/Source/TextCStream.m +++ b/Source/TextCStream.m @@ -51,7 +51,7 @@ static BOOL debug_textcoder = NO; - (void) encodeValueOfCType: (const char*) type at: (const void*) d - withName: (id ) name; + withName: (NSString*) name; { assert(type); assert(*type != '@'); @@ -186,7 +186,7 @@ if (debug_textcoder) \ - (void) decodeValueOfCType: (const char*) type at: (void*) d - withName: (id *) namePtr; + withName: (NSString* *) namePtr; { char *tmpname; @@ -372,7 +372,7 @@ if (debug_textcoder) \ format: @"bad unindent format, got \"%s\"", line]; } -- (void) encodeName: (id ) n +- (void) encodeName: (NSString*) n { if (n) [stream writeFormat:@"%*s<%s>\n", indentation, "", [n cStringNoCopy]]; @@ -380,7 +380,7 @@ if (debug_textcoder) \ [stream writeFormat:@"%*s\n", indentation, ""]; } -- (void) decodeName: (id *) name +- (void) decodeName: (NSString* *) name { const char *n; if (name) diff --git a/Source/UdpPort.m b/Source/UdpPort.m index 5d272aea0..e3f069eb8 100644 --- a/Source/UdpPort.m +++ b/Source/UdpPort.m @@ -180,7 +180,7 @@ static NSMapTable *port_number_2_in_port = NULL; return p; } -+ newForReceivingFromRegisteredName: (id )name ++ newForReceivingFromRegisteredName: (NSString*)name { int n; @@ -372,7 +372,7 @@ static Array *udp_out_port_array; + newForSendingToPortNumber: (unsigned short)n - onHost: (id )hostname + onHost: (NSString*)hostname { struct hostent *hp; const char *host_cstring; @@ -425,7 +425,7 @@ static Array *udp_out_port_array; return (int) ntohs (_address.sin_port); } -- (id ) hostname +- (NSString*) hostname { [self notImplemented: _cmd]; return nil; diff --git a/Source/ostream.m b/Source/ostream.m index d0dc05c29..5d2b87281 100644 --- a/Source/ostream.m +++ b/Source/ostream.m @@ -151,7 +151,7 @@ ostream_printf (ostream *s, const char *format, ...) void ostream_vprintf (ostream *s, const char *format, va_list argList) { - id str = [String stringWithCString: format]; + id str = [String stringWithCString: format]; if (s->flags & OSTREAM_WRITEFLAG) [(id )s->stream_obj writeFormat: str arguments: argList]; else @@ -172,7 +172,7 @@ ostream_scanf (ostream *s, const char *format, ...) int ostream_vscanf (ostream *s, const char *format, va_list argList) { - id str = [String stringWithCString: format]; + id str = [String stringWithCString: format]; if (s->flags & OSTREAM_READFLAG) return [(id )s->stream_obj readFormat: str arguments: argList];