Re: invalid use of void expression
Re: invalid use of void expression
- Subject: Re: invalid use of void expression
- From: David Remahl <email@hidden>
- Date: Tue, 03 Jul 2001 15:02:27 +0200
on 01-07-03 14.48, David P. Henderson at email@hidden wrote:
>
On Tuesday, July 3, 2001, at 04:29 , Rob Rix wrote:
>
>
> searchWindow = [NSConnection
>
> rootProxyForConnectionWithRegisteredName:[[NSMutableString
>
> stringWithString:@"10191_Ce_"] appendString:[[name
>
> componentsSeparatedByString:@"_"] lastObject]] host:@"*"];
>
>
>
> Unfortunately, this gives me the error in the subject line. This has me
>
> completely stumped; this isn't even a compile error I've run into
>
> before.
>
> What's up with this?
>
>
>
- (void)appendString:(NSString *)aString; watch those return types. ;)
>
You can use stringByAppendingString instead, and not use a MutableString at
all...
/ david