Re: Nested messages and void error
Re: Nested messages and void error
- Subject: Re: Nested messages and void error
- From: Charles Jolley <email@hidden>
- Date: Sun, 12 Aug 2001 23:09:38 -0500
An alternative way would also be:
[(aStr = [NSMutableString stringWithString: [aString string])
appendString: @"another string"] ;
Of course, if you every work with other programs they might string you
up for usage like this! :-)
-C
On Sunday, August 12, 2001, at 10:20 PM, Jim Correia wrote:
>
On Sunday, August 12, 2001, at 10:37 PM, email@hidden wrote:
>
>
> This line of code causes "void messages not dealt with..." (or the
>
> like):
>
>
>
> aStr = [[NSMutableString stringWithString: [aString string]]
>
> appendString:
>
> @"another string"]; //shew!
>
>
>
> Is nesting like this not allowed?
>
<SNIP>
>
aStr = [[NSMutableString stringWithString: [aString string]];
>
[aStr appendString: @"another string"];
>
>
Is how it must be done so you can keep a pointer to the created string.