• 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: Pontus Ilbring <email@hidden>
  • Date: Mon, 23 Jan 2006 14:51:33 +0100

On 1/23/06, Lorenzo <email@hidden> wrote:
> Hi,
> how should I work with objects referring each other in a cross way?

Very, very carefully, that's how. You seem to have figured that out already.

For your situation I would suggest a very simple solution. When you
remove an object from the fruits array, tell -all- baskets to remove
it as well. There's no harm in trying to remove an object from an
array which doesn't contain it.

If you don't need them ordered then you should also consider changing
the baskets to use sets instead of arrays, as they are much more
efficient when you want to remove arbitrary objects.
 _______________________________________________
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: Lorenzo <email@hidden>
References: 
 >Objects cross calls (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: anotherDockProgram-help
  • Next by Date: Re: NSSound vs QuickTime
  • Previous by thread: Objects cross calls
  • Next by thread: Re: Objects cross calls
  • Index(es):
    • Date
    • Thread