Re: How do I know what class sent a message?
Re: How do I know what class sent a message?
- Subject: Re: How do I know what class sent a message?
- From: Allan Odgaard <email@hidden>
- Date: Mon, 7 Jun 2004 07:00:45 +0200
On 7. Jun 2004, at 5:36, April Gendill wrote:
-(void)setupDatabase setupEndedSelector:(SEL)selector
Why not also give the sending class object as argument? that also
allows for more flexibility, e.g. if the caller wants to have the
callback message sent to another object.
Otherwise I'd look toward point-cuts in AspectCocoa ;)
2 do I call it as follows:
[sendingClass performSelector:@selector(selector:)]; ?
or
[sendingClass performSelector:selector]; ?
The latter...
_______________________________________________
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.