Re: detecting touches not from a view/window on iphone
Re: detecting touches not from a view/window on iphone
- Subject: Re: detecting touches not from a view/window on iphone
- From: "Stephen J. Butler" <email@hidden>
- Date: Thu, 15 Jan 2009 21:15:04 -0600
On Thu, Jan 15, 2009 at 7:59 PM, Memo Akten <email@hidden> wrote:
> Hi, what I'd like to be able to do in my iphone app, is detect touches on
> the window (or a view), from an object which is not a UIResponder. Ideally
> if touches sent notifications which could be registered via the notification
> center it would be ideal. I know I could add touchesBegan, touchesMoved etc.
> to all views or the window, and call the relevant functions in my object,
> but I'd prefer to set it without adding any code to the window or views, and
> observing purely from outside. Is this possible?
Curious: what problem are you trying to solve? Responding to user
events outside the responder chain isn't generally a good Cocoa design
pattern.
_______________________________________________
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