On Jul 27, 2009, at 1:35 PM, Frank D. Engel, Jr. wrote:

I want to create something like an NSPopUpButton, but instead of a menu coming from it, I'd like to display a custom panel that acts like a pop-up menu: it would be a selection interface, but not a simple menu; if the user clicks outside of it, it would just disappear and nothing would change, etc... like pop-up calculators and calendars in some programs...

You'd want a button that stays down when the view is displayed (like a popup). You'd want a view in which to display your complicated UI. For this, you'd need a borderless (or custom-drawn) window to position over the control's host window in which to display your custom view.

There are examples of both online. If you have more specific questions, post them (in other words, "what have you tried", and "break it down").


I'm sure things like this are done often enough, but all of the search terms I'm coming up with are giving me sites that show how to change the appearance of the button itself, not what gets popped up.


I recall someone coming up with something like this (a popup- calendar-date-chooser control of some kind). Perhaps you could learn by example if you found it.

--
I.S.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to