Using non-id sender in IBAction methods
Using non-id sender in IBAction methods
- Subject: Using non-id sender in IBAction methods
- From: Marc Liyanage <email@hidden>
- Date: Sun, 7 Jun 2009 17:45:09 +0200
With the new dot notation I sometimes use explicit types in my
IBAction methods:
- (IBAction)doSomething:(UIButton *)button ...
instead of
- (IBAction)doSomething:(id)sender ...
so I don't have to downcast "sender" to be able to use the dot notation.
Do others do this too? Is this discouraged for some reason?
_______________________________________________
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