• 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: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: (no subject)
  • Next by Date: Re: (no subject)
  • Previous by thread: Re: (no subject)
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread