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.
On Sun, Jan 24, 2010 at 12:12 PM, Tharindu Madushanka <tharindu...@gmail.com> wrote: > Hi, > > You can link IBAction method using Interface builder. You can create a link > to your UIButton then it will show up a list of control events to connect. > And then its not necessary to do something like this. > > You can link the same method for different control events I think. > > Have a quick look at this tutorial.. may be helpful.. > http://icodeblog.com/2008/07/30/iphone-programming-tutorial-connecting-code-to-an-interface-builder-view/ > > Tharindu Madushanka > > On Sun, Jan 24, 2010 at 10:24 PM, Chunk 1978 <chunk1...@gmail.com> wrote: >> >> is it not possible to handle a sender's controlEvents inside a single >> method instead of sending it off to another method? >> >> -(IBAction)myButton:(id)sender >> { >> if (sender.UIControlEvent = >> forControlEvents:UIControlEventTouchUpInside) NSLog(@"touchUp"); >> } >> _______________________________________________ >> >> 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/tharindufit%40gmail.com >> >> This email sent to tharindu...@gmail.com > > _______________________________________________ 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