• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to position a window under a button of another window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to position a window under a button of another window?
      • From: "Justin R. Miller" <email@hidden>
    • Re: How to position a window under a button of another window?
      • From: Johan Kool <email@hidden>
    • Re: How to position a window under a button of another window?
      • From: Johan Kool <email@hidden>
  • Prev by Date: NSButton title inline editing
  • Next by Date: [SOLVED] Re: NSButton title inline editing
  • Previous by thread: [SOLVED] Re: NSButton title inline editing
  • Next by thread: Re: How to position a window under a button of another window?
  • Index(es):
    • Date
    • Thread