Re: A bug with NSWindow's convertBaseToScreen: method ?
Re: A bug with NSWindow's convertBaseToScreen: method ?
- Subject: Re: A bug with NSWindow's convertBaseToScreen: method ?
- From: Johan Kool <email@hidden>
- Date: Wed, 18 Apr 2007 14:07:51 +0200
Mike,
Ah, I now see where I went "wrong." Not sender, but its superview
should do the conversion. This should handle all cases:
NSRect rectInWindow = [[sender superview] convertRect:[sender frame]
toView:nil];
NSPoint originOnScreen = [[sender window] convertBaseToScreen:
rectInWindow.origin];
Johan
---
http://www.johankool.nl/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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