• 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: inter-object communication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inter-object communication


  • Subject: Re: inter-object communication
  • From: Charles Steinman <email@hidden>
  • Date: Tue, 28 Oct 2008 23:30:50 -0700 (PDT)

----- Original Message ----

> From: Albert Jordan <email@hidden>
>
> What is the recommended way for Object B to inform Object A that it is
> done processing a request for the following scenario?
>
> Object A has a list of phone numbers to send SMS messages
> Object B implements sending an SMS message to a given phone number
I think a delegate is the usual Cocoa pattern for this kind of situation. You could have Object B send Object A an -objectB:didSendSMSMessage:toNumber: message or something along those lines.

Cheers,
Chuck




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: inter-object communication
      • From: Nicko van Someren <email@hidden>
  • Prev by Date: Re: ASL & Unicode in Xcode's Console
  • Next by Date: NSTableColumn unbindable when NSSegmentedCell is used?
  • Previous by thread: Re: inter-object communication
  • Next by thread: Re: inter-object communication
  • Index(es):
    • Date
    • Thread