Re: How to position a window under a button of another window?
Re: How to position a window under a button of another window?
- Subject: Re: How to position a window under a button of another window?
- From: Johan Kool <email@hidden>
- Date: Tue, 17 Apr 2007 13:26:41 +0200
Typed in Mail and not tested, but I think it should be done like this:
NSRect rectInWindow = [sender 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