• 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
Re: ICal Alarm View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ICal Alarm View


  • Subject: Re: ICal Alarm View
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 13 Feb 2008 15:52:38 -0800


On 13 Feb '08, at 11:54 AM, Chris Schmitt wrote:

I assume that the alarm controls are built into a custom view because as soon as you change the alarm from none to a type, another alarm object is added under neither.

There are a couple of ways to get that effect:

(1) Use an NSMatrix of NSPopUpButtonCells. Then you can insert a new row at the top or bottom when you need to.
Or,
(2) Use individual NSPopUpButton views, whose springs make them follow the bottom of their container view. Programmatically grow the container view's frame's height, which moves the pop-ups down, then instantiate a new pop-up control and add it as a subview of the container, at the top.
Or,
(3) On Leopard, use an NSCollectionView containing NSPopUpButtons. As a bonus you get the slide animation for free.


—Jens_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >ICal Alarm View (From: Chris Schmitt <email@hidden>)
 >Re: ICal Alarm View (From: Chris Schmitt <email@hidden>)
 >Re: ICal Alarm View (From: Jens Alfke <email@hidden>)
 >Re: ICal Alarm View (From: Chris Schmitt <email@hidden>)

  • Prev by Date: Re: Uncaught exceptions thrown by Cocoa documented anywhere?
  • Next by Date: [OT][ANN] Nanoki
  • Previous by thread: Re: ICal Alarm View
  • Next by thread: Re: ICal Alarm View
  • Index(es):
    • Date
    • Thread