• 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
(id)sender tag
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(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

  • Follow-Ups:
    • Re: (id)sender tag
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Re: NSLock locking order;
  • Next by Date: Re: Progress bar
  • Previous by thread: Re: refreshing the header title for an NSTableColumn [fixed!]
  • Next by thread: Re: (id)sender tag
  • Index(es):
    • Date
    • Thread