• 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: 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.


References: 
 >Re: Nested messages and void error (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Some help would be greatly appreciated
  • Next by Date: Drawers and Omniweb
  • Previous by thread: Re: Nested messages and void error
  • Next by thread: Re: Nested messages and void error
  • Index(es):
    • Date
    • Thread