• 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 make a popup view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re[2]: ANN: GDL2
  • Next by Date: Re: NSArray losing its data
  • Previous by thread: Re: How can I "highlight" user interface objects? (Final answer I hope...)
  • Next by thread: How to attach a formatter with a NSTableColumn
  • Index(es):
    • Date
    • Thread