Re: What's wrong with this????
Re: What's wrong with this????
- Subject: Re: What's wrong with this????
- From: Andy Lee <email@hidden>
- Date: Wed, 24 Jul 2002 21:08:01 -0400
At 2:50 AM +0200 7/26/02, Aidas wrote:
My question is why verstini_z count returns zero why it shouldn't. Anybody
knows why?
Are you sure verstini_z (which I assume is an instance variable) has
been initialized to a non-nil value? Something like...
verstini_z = [[NSMutableArray alloc] init]; // or whatever verstini_z is
...probably in your -init method.
If a variable is nil, messages sent to it will return nil or zero.
If a nil value is the problem, you could easily have found it using
the debugger to step through your code, or by putting in NSLog
statements like this:
NSLog(@"verstini_z is %@", verstini_z);
--Andy
P.S. I can honestly say this is the most times I have ever typed
"verstini_z" in one email message. ;)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.