Re: Can I talk about iPhone SDK/API?
Re: Can I talk about iPhone SDK/API?
- Subject: Re: Can I talk about iPhone SDK/API?
- From: lbland <email@hidden>
- Date: Tue, 24 Nov 2009 10:11:48 -0500
On Nov 24, 2009, at 9:34 AM, Alexander von Below wrote:
> In Cocoa Touch applications, an action method can take one of three forms, shown here:
>
> - (IBAction)respondToButtonClick;
> - (IBAction)respondToButtonClick:(id)sender;
So, I have to ask, what is the practical value of having an action method with no argument? It couldn't be time savings because just checking to see the selector signature, or storing the selector signature type, takes time or memory. Is there any reason to use one form v.s. the other other than the obvious that if sender is not used then why have it around?
I know this thread changed to API, but I don't want to switch to another mail list (not yet anyways).
I know I have had discussions for over fifteen years (with Apple engineers and others) about many action signatures, but the ideas vary. I hope this question is not in a manual anywhere in the five trillion web sites on the net. My apologies in advance if I am asking a stupid question or a question that is answered somewhere else.
thanks!-
-lance
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden