• 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: Adding Custom Objects to a NSMutableArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Adding Custom Objects to a NSMutableArray (From: Jane <email@hidden>)

  • Prev by Date: Re: Multi-threaded AppKit examples?
  • Next by Date: Re: Daemons!
  • Previous by thread: Re: Adding Custom Objects to a NSMutableArray
  • Next by thread: SBook5
  • Index(es):
    • Date
    • Thread