(id)sender tag
(id)sender tag
- Subject: (id)sender tag
- From: J B <email@hidden>
- Date: Thu, 10 Nov 2005 18:00:08 -0500
Hello,
I'm trying to create a simple calculator as an exercise and I have
attached all the numeric buttons to one action in my controller class.
I was planning on figuring out which button has been pushed via the
[sender tag] method. I've set all the tags to match the numeric values
(i.e. the button I want to represent 7 has a tag of 7).
When the button is pushed I can't seem to get a valid tag value
however. Invoking [sender tag] within the action simply gives me 0 no
matter what button has been pushed.
Any clues?
Thanks,
JB
_______________________________________________
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