Re: Objects cross calls
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