How to assign a method for touch event to a UIImageView?
Good evening, I want to execute a method when the user touches a UIImageView. I designed my interface without Interface builder tools because I am blind. I can add an action to a UIButton with this code: [myButton addTarget:self action:@selector(onFotoClick:) forControlEvents:UIControlEventTouchUpInside]; but this code doesn't work with an UIImageView. How can I do this with this class? thanks Regards Jonathan Chacón Barbero Accessibility, usability and new technologies consultant Phone: +34 679953948 e-Mail: jonathan.cha...@telefonica.net Blog: http://www.programaraciegas.es Twitter: http://www.twitter.com/jonathanchacon LinkedIn: http://es.linkedin.com/in/jonathanchacon Facebook: http://www.facebook.com/jonathan.chacon.barbero Messenger: tyf...@hotmail.com Skype: Tyflos_ FaceTime: jonathan.cha...@telefonica.net ___ 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
Re: about keystrokes out of the window
Hello Andy, thanks a lot for this information. it's great! Regards Jonathan Chacón Barbero Accessibility, usability and new technologies consultant Phone: +34 679953948 e-Mail: jonathan.cha...@telefonica.net Blog: http://www.programaraciegas.es Twitter: http://www.twitter.com/jonathanchacon LinkedIn: http://es.linkedin.com/in/jonathanchacon Facebook: http://www.facebook.com/jonathan.chacon.barbero Messenger: tyf...@hotmail.com Skype: Tyflos_ FaceTime: jonathan.cha...@telefonica.net ___ 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
about keystrokes out of the window
Hello everybody, I want to develop an application that the user can manage it using some keystrokes but the user can use these keystrokes when the window of the application is not focused. For example, my app is opened and the user is writing in pages. The user can activate a feature of my application pressing caplocks+left arrow. How can I do this? I searched abut managing keystrokes for Mac OSX but I didn't find anything about this. thanks Regards Jonathan Chacón Barbero Accessibility, usability and new technologies consultant Phone: +34 679953948 e-Mail: jonathan.cha...@telefonica.net Blog: http://www.programaraciegas.es Twitter: http://www.twitter.com/jonathanchacon LinkedIn: http://es.linkedin.com/in/jonathanchacon Facebook: http://www.facebook.com/jonathan.chacon.barbero Messenger: tyf...@hotmail.com Skype: Tyflos_ FaceTime: jonathan.cha...@telefonica.net ___ 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
Re: about keystrokes out of the window
Hello, thanks for your answer. I'm developing using Cocoa because I want to develop an accessible app. I didn't know Carbon Event Manager. I'll study it but Can I use it in a Cocoa application? thanks and regards Jonathan Chacón El 17/03/2011, a las 06:15, Nick Zitzmann escribió: On Mar 16, 2011, at 10:56 PM, Jonathan Chacón Barbero wrote: I want to develop an application that the user can manage it using some keystrokes but the user can use these keystrokes when the window of the application is not focused. For example, my app is opened and the user is writing in pages. The user can activate a feature of my application pressing caplocks+left arrow. How can I do this? I searched abut managing keystrokes for Mac OSX but I didn't find anything about this. Have you tried the hotkey functions in the Carbon Event Manager? Nick Zitzmann http://www.chronosnet.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