How to make a popup view?
How to make a popup view?
- Subject: How to make a popup view?
- From: Brant Sears <email@hidden>
- Date: Sun, 17 Nov 2002 11:14:19 -0800
I want to make a reusable control that is a date picker. When the user
clicks the date, a calendar image should popup where the user can
select a new date. The Newton OS had a control like this and I want to
use one in my application.
I've been looking through the AppKit documentation and I do see an
NSPopUpButton. What I need is something like NSPopUpButton except that
it should popup a custom view instead of a menu. In other words, I need
this view to detect when/if the user has clicked outside of it so that
it can go away. I can think of at least one (kind of hacky) way to make
this happen, but I'd much prefer to do it the "right" way.
I am aware that BlackHoleMedia has a date picker similar to what I
want, but it does not popup from a button. So, what I'm trying to
create will be similar to that one, but should take up less space in
the window when it is not being used.
I hope I'm not asking something that has already been beat into the
ground here.
Thanks.
Brant Sears
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.