Re: Adding Custom Objects to a NSMutableArray
Re: Adding Custom Objects to a NSMutableArray
- Subject: Re: Adding Custom Objects to a NSMutableArray
- From: Ondra Cada <email@hidden>
- Date: Mon, 28 Jan 2002 14:30:39 +0100
Jane,
>
>>>>> Jane (J) wrote at Mon, 28 Jan 2002 06:04:08 -0700:
J> For your initializeWith:Player:Location method, did you declare the
J> method return type as id and then return self from within the method?
J> If not, you would be adding nil to the groups array
Right.
J> and the count would remain at 0.
Wrong (in a sense). The attempt to insert a nil into array would raise an
exception. Therefore, yep, the count _WOULD_ remain at 0, but I bet Nick
would have noticed ;)
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc