How to position a window under a button of another window?
How to position a window under a button of another window?
- Subject: How to position a window under a button of another window?
- From: Mike Zornek <email@hidden>
- Date: Tue, 17 Apr 2007 06:21:50 -0400
I'm trying to implement a date picker popup ui, something like this web
variant:
http://www.nsftools.com/tips/DatePickerTest.htm
I have a button hooked up to a controller action. The controller has an
outlet to the popupPanel and obviously has the original button as the
sender.
Is there a way I can ask the sender (the button) for it's position on screen
and then set the panel to be just under the button? Eventually I'll also
want to sniff the location to make sure there is in fact room underneath and
if not position it above but I'm having trouble even getting started.
Any suggestions?
A sample project that I've started is here:
http://mikezornek.com/temp/FriendManager.zip
~ Mike
_______________________________________________
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