Re: content inside sender
Re: content inside sender
- Subject: Re: content inside sender
- From: Chris Hanson <email@hidden>
- Date: Thu, 1 Aug 2002 19:17:12 -0500
At 1:11 PM -0700 8/1/02, Andrew Merenbach wrote:
If your buttons have different titles, then you can do this:
You don't want to though, because then you can't localize the title
without changing code.
You want to either (a) make outlets in your object and connect them
to your buttons, and then compare the these outlets with the sender
given to your action method using ==, or (b) check whether the sender
passed to your action method responds to -tag and check the tag, or
(c) use a different action for each if the sender actually matters.
I tend to use (c) or (a), because I usually have these types of
outlets anyway for doing things like enabling and disabling controls.
-- Chris
--
Chris Hanson | Email: email@hidden
bDistributed.com, Inc. | Phone: +1-847-372-3955
Making Business Distributed | Fax: +1-847-589-3738
http://bdistributed.com/ | Personal Email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.