• 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: What's wrong with this????
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: How to truncate NSStrings?
  • Next by Date: Re: What is the purpose of static typing?
  • Previous by thread: What's wrong with this????
  • Next by thread: Outlineview-style palettes--Cocoa or Carbon?
  • Index(es):
    • Date
    • Thread