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 <a...@freeport.de> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to