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

Re: Delegates


  • Subject: Re: Delegates
  • From: "I. Savant" <email@hidden>
  • Date: Mon, 19 May 2008 13:01:17 -0400

On Mon, May 19, 2008 at 12:52 PM, Michael Vannorsdel <email@hidden> wrote:
> Delegates act like observers.  They register with another object saying
> "hey, if you do something important I want to know about it and have a
> chance to act on it too".

  Well, no, not really. This is significantly different in that you
can set an object as another object's delegate, but if it (your custom
object acting as a delegate) doesn't respond to a particular delegate
method, the delegating object will not call the method. In this way,
you can set objA as objB's delegate and implement none of objB's
delegate methods in objA ... so none will be called.

--
I.S.
_______________________________________________

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: Delegates
      • From: Michael Vannorsdel <email@hidden>
    • Re: Delegates
      • From: Paul Sargent <email@hidden>
    • Re: Delegates
      • From: Nate Weaver <email@hidden>
References: 
 >Delegates (From: "john darnell" <email@hidden>)
 >Re: Delegates (From: Michael Vannorsdel <email@hidden>)

  • Prev by Date: Re: Delegates
  • Next by Date: Re: CATransactions not working
  • Previous by thread: Re: Delegates
  • Next by thread: Re: Delegates
  • Index(es):
    • Date
    • Thread