|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Von: "Chong Hiu Pun" <email@hidden>_______________________________________________
Datum: Mi, 31. Jul. 2002 23:13:24 US/Pacific
An: <email@hidden>
Betreff: content inside sender
I have cocoa application, with 2 buttons, button1 and button2, they both
attach to the send action "Dosth"
- (void) Dosth:(id)sender
{
}
1) Inside "Dosth", how can I find out whether button1 or button2 trigger the
action?
- a) Can I use the tag method to do it? (In interface builder, set the tag
value of button1 to 1, button2 to 2 )
- b) Or use the variable "sender" to figure it out? But how?
Thank you very much!
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.