Re: sendAction:to:from:
Re: sendAction:to:from:
- Subject: Re: sendAction:to:from:
- From: "Jordan Krushen" <email@hidden>
- Date: Fri, 7 Jul 2006 14:18:38 -0700
On 7/7/06, Bruce Truax <email@hidden> wrote:
So does that mean that my receiver needs to look like
- (void)theReceiver:(id *)sender
Note that 'receiver' usually means the targeted object receiving the
message, not the method called as a result of said message. A better
(still generic) name would be theAction:.
Also, use (id), not (id *):
- (void)theAction:(id)sender
And my message sender needs to look like
[NSApp sendAction:@selector(theReceiver:) to:nil from:self];
If you're not using the Responder Chain, you could just use
[receivingObject theAction:self].
See <file:///Developer/ADC Reference Library/documentation/Cocoa/Conceptual/CocoaFundamentals/CommunicatingWithObjects/chapter_6_section_7.html>
HTH,
J.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden