Re: Using non-id sender in IBAction methods
Re: Using non-id sender in IBAction methods
- Subject: Re: Using non-id sender in IBAction methods
- From: Marc Liyanage <email@hidden>
- Date: Mon, 8 Jun 2009 09:41:16 +0200
On 08.06.2009, at 03:09, Bryan Henry wrote:
As someone already said, if your action method is specific enough to
the type of sender object
I should have been clearer about that. Yes, I am only talking about
action methods that are pretty specific and that will not get
connected to other types of senders.
On 08.06.2009, at 03:34, Andy Lee wrote:
I never thought of trying this before, but it seems that having a
more narrowly defined sender also limits the kind of controls IB
lets you connect *from*, at least in the Cocoa IB and presumably in
the iPhone IB as well.
Wow, this is neat, I never noticed that before because I always used
"id" in the past... It does work the same in Cocoa Touch.
That this functionality exists actually suggests to me that using a
more specific sender type is legitimate.
_______________________________________________
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