• 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 do I know what class sent a message?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I know what class sent a message?


  • Subject: Re: How do I know what class sent a message?
  • From: j o a r <email@hidden>
  • Date: Mon, 7 Jun 2004 06:52:10 +0200

Something like this:

- (void) setupDataBaseForSender:(id) sender withSetupEndSelector:(SEL)
didEndSelector
{
// Do stuff

[sender performSelector: didEndSelector];
}

Note that you don't have to assume that the sender is a class object.

j o a r

On 2004-06-07, at 05.36, April Gendill wrote:

> I need to be able to init a class and pass it info then tell the
> sending class to perform a selector when it's done example
>
> -(void)setupDatabase setupEndedSelector:(SEL)selector
>
> when I reach the point I need to perform the selector I have two
> problems.
> 1 how do I know the class that called this method?
> 2 do I call it as follows:
> [sendingClass performSelector:@selector(selector:)]; ?
> or
> [sendingClass performSelector:selector]; ?

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >How do I know what class sent a message? (From: April Gendill <email@hidden>)

  • Prev by Date: Deep-copy of dictionary keys (was: Is that really a bug at all?)
  • Next by Date: Re: How do I know what class sent a message?
  • Previous by thread: How do I know what class sent a message?
  • Next by thread: Re: How do I know what class sent a message?
  • Index(es):
    • Date
    • Thread