Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's wrong with this????



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.
References: 
 >What's wrong with this???? (From: Aidas <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.