Re: Nested messages and void error
Re: Nested messages and void error
- Subject: Re: Nested messages and void error
- From: Ondra Cada <email@hidden>
- Date: Mon, 13 Aug 2001 09:48:52 +0200
IIIDCG,
>
>>>>> email@hidden (I) wrote at Sun, 12 Aug 2001 22:37:39 EDT:
I> This line of code causes "void messages not dealt with..." (or the like):
I>
I> aStr = [[NSMutableString stringWithString: [aString string]] appendString:
I> @"another string"]; //shew!
I>
I> Is nesting like this not allowed?
Nesting is allowed, but assigning a void (which is what, IMHO not quite
properly, returns appendString:) is not.
You have to re-phrase the command, eg. this way:
[aStr=[NSMutableString stringWithString:[aString string]] appendString:@"..."];
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc