• 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: getting the calling object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting the calling object


  • Subject: Re: getting the calling object
  • From: "I. Savant" <email@hidden>
  • Date: Wed, 3 Oct 2007 16:27:31 -0400

> Quickie: I've tried searching the archives and the docs, but I'm
> unable to come up with a successful search string for my question. In
> Cocoa, is there a mechanism for determining the caller of a method?
> Or does that have to be included as a variable in the method?

  You've correclty guessed that you'd have to pass 'self' as an
argument when messaging the other object. If the other object's method
does not allow for a 'sender', you're out of luck.

--
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: getting the calling object
      • From: Jaime Magiera <email@hidden>
References: 
 >getting the calling object (From: Jaime Magiera <email@hidden>)

  • Prev by Date: Re: getting the calling object
  • Next by Date: Re: string formatting
  • Previous by thread: Re: getting the calling object
  • Next by thread: Re: getting the calling object
  • Index(es):
    • Date
    • Thread