• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Nested messages and void error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Nested messages and void error (From: email@hidden)

  • Prev by Date: how to handle "rtsp" protocol??
  • Next by Date: Re: Drag with shadow
  • Previous by thread: Re: Nested messages and void error
  • Next by thread: Re: Nested messages and void error
  • Index(es):
    • Date
    • Thread