• 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
Re: UIButton's Sender Control Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: UIButton's Sender Control Events
      • From: Graham Cox <email@hidden>
    • Re: UIButton's Sender Control Events
      • From: mmalc Crawford <email@hidden>
References: 
 >UIButton's Sender Control Events (From: Chunk 1978 <email@hidden>)
 >Re: UIButton's Sender Control Events (From: Chunk 1978 <email@hidden>)
 >Re: UIButton's Sender Control Events (From: Alexander Spohr <email@hidden>)

  • Prev by Date: Re: UIButton's Sender Control Events
  • Next by Date: Re: UIButton's Sender Control Events
  • Previous by thread: Re: UIButton's Sender Control Events
  • Next by thread: Re: UIButton's Sender Control Events
  • Index(es):
    • Date
    • Thread