Avi Drissman
unread,Mar 15, 2010, 3:07:31 PM3/15/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium-dev
As a follow-up, I'm finding with surprising frequency that code is converting coordinates to the window's contentView's coordinate system when the intent is to convert it to the window's coordinate system. (For example, I've seen code that converts a point from a view's coordinate system to the window's content view coordinate system, and then turns around and converts it from the window's coordinate system to global space.)
This might accidentally work today, but fails horribly under resolution independence. If you need to convert to window coordinate space, please actually do so. (Use convertXXX:toView:nil as described earlier.) Using the window's content view as a target for convertXX:toView: is a very bad idea.
Avi