Re: ICal Alarm View
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