While attempting to track movement during a long press, I was surprised to 
discover that the x direction of an application's UIWindow seems to be for the 
portrait x dimension no matter how the device is turned.  Using [recognizer 
locationOfTouch:i inView:[recognizer view]] matches the apparent x/y direction 
of the rotated device while [recognizer locationOfTouch:i inView:nil] is only 
relative to portrait.

Even after seeing this, I'm having difficulty finding any documentation that 
describes it.  (I'm curious whether I'm supposed to do something to keep the 
values consistent or whether that's just the way it is.)  I'd assumed it would 
be mentioned in the gesture recognizer docs where it describes the option (or 
the UIWindow Class Reference, or the View Programming Guide) but I'm not seeing 
it.  Suggestions of better places to 
look?_______________________________________________

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

Reply via email to