Re: CriticalAlert
Re: CriticalAlert
- Subject: Re: CriticalAlert
- From: Andrew Pinski <email@hidden>
- Date: Thu, 20 Dec 2001 16:55:34 -0500
replace the "while(myStr = [myEnum nextObject] )" with "while((myStr =
[myEnum nextObject] )!=null)"
On Thursday, December 20, 2001, at 04:36 , David Remahl wrote:
On the other hand, the following construct is one I use very often in
Cocoa:
NSArray* myArray = [NSArray arrayWithWhateverInitMethod:NULL];
NSEnumerator* myEnum = [myArray objectEnumerator];
id myStr = NULL;
while( myStr = [myEnum nextObject] )
{
// do whatever
}