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

Re: How To : Delegates


  • Subject: Re: How To : Delegates
  • From: Ray Ackland <email@hidden>
  • Date: Thu, 27 Jan 2005 13:20:52 +1300

Owen,

As far as I am aware, your delegate doesn't need to be a subclass of anything. Just create a class that will do the delegate tasks, put methods in there that are the delegate methods you are interested in, then specify that your class is the delegate for your source class.

Each time your source class (eg WODisplayGroup) experiences certain events, it will call the delegate method in the specified delegate class. Make sure your method implementation matches the signature of the one listed in the documentation.

r

On 27/01/2005, at 13:13, Owen McKerrow wrote:

Do I make a subclass of the thing I want a delegate for and then implement that delegate method in the sub-class ?
Will it then be automatically called for me when it needs to be then ?

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: How To : Delegates
      • From: Art Isbell <email@hidden>
    • Re: How To : Delegates
      • From: Art Isbell <email@hidden>
References: 
 >How To : Delegates (From: Owen McKerrow <email@hidden>)

  • Prev by Date: How To : Delegates
  • Next by Date: RE: How To : Delegates
  • Previous by thread: How To : Delegates
  • Next by thread: Re: How To : Delegates
  • Index(es):
    • Date
    • Thread