Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: Jeff LaMarche <email@hidden>
- Date: Mon, 16 Jun 2008 21:33:29 -0400
On Jun 16, 2008, at 9:27 PM, Angelo Chen wrote:
- (IBAction)doCopying:(id)sender
{
// how to determine which NSButton is clicked?
}
There are several ways. If this button was called because a button was
pushed, sender will contain a pointer to the button. You can compare
the tag values from the button, or simply compare sender to your
IBOutlet variables to see if it's the one you are expecting.
_______________________________________________
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
References: | |
| >(no subject) (From: Angelo Chen <email@hidden>) |