• 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: Opposite of delegate?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opposite of delegate?


  • Subject: Re: Opposite of delegate?
  • From: Ali Ozer <email@hidden>
  • Date: Fri, 11 May 2001 18:05:10 -0700

Within a class, I want to refer to the object which the class is the delegate of. Sort of the opposite reference to "delegate". Is there a convenient way to do so, or do I need to define and connect an outlet for that?


Nothing built-in. Remember that a delegate may be a delegate for many objects, so it's not 1-to-1 relationship in general.

Note that delegate methods always get the original object as an argument, so at least within those methods you have a handle to the object you want.

Ali


  • Follow-Ups:
    • Re: Opposite of delegate?
      • From: Matt Ridley <email@hidden>
References: 
 >Opposite of delegate? (From: Matt Ridley <email@hidden>)

  • Prev by Date: Re: simple "canvas" like example?
  • Next by Date: Re: Opposite of delegate?
  • Previous by thread: Opposite of delegate?
  • Next by thread: Re: Opposite of delegate?
  • Index(es):
    • Date
    • Thread