• 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: Objects cross calls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objects cross calls


  • Subject: Re: Objects cross calls
  • From: Hamish Allan <email@hidden>
  • Date: Tue, 24 Jan 2006 14:35:28 +0000


On Mon, 23 Jan 2006 19:17:25 +0100, Lorenzo wrote:

My fruit is an object that can contain other fruits in an array called children, like a hierarchical table.

Does your fruit "contain" other fruit, in the same way as a basket contains fruit? If not, you may be trying to model a "has-a" relationship and an "is-a" relationship using the same objects, which could be the cause of confusion.


Why are you keeping an array of fruits distinct from your basket?

Best wishes,
Hamish

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Objects cross calls
      • From: Mont Rothstein <email@hidden>
  • Prev by Date: Re: NSAttributedString & alert panels?
  • Next by Date: Re: NSAttributedString & alert panels?
  • Previous by thread: Re: Objects cross calls
  • Next by thread: Re: Objects cross calls
  • Index(es):
    • Date
    • Thread