Re: UIButton's Sender Control Events
Re: UIButton's Sender Control Events
- Subject: Re: UIButton's Sender Control Events
- From: Chunk 1978 <email@hidden>
- Date: Sun, 24 Jan 2010 13:27:44 -0500
refactoring code so one method for the same button can handle a small
if/else statement could easily be considered more ideal than having
two separate methods.
i understand your concern, but you haven't provided an answer. in
fact, i've searched for hours and i can't find an answer. at this
point i'm wondering if it's even possible.
On Sun, Jan 24, 2010 at 1:17 PM, Alexander Spohr <email@hidden> wrote:
> If each event needs different action why not program different actions?
> What is the benefit of having one method containing a big if-else-else construct?
>
> atze
>
>
> Am 24.01.2010 um 19:12 schrieb Chunk 1978:
>
>> linking several control events to one method is what i'm trying to do,
>> but i do not know how to decipher which control event is calling the
>> method.
>
_______________________________________________
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