Re: Best way to implement a "dynamic" panel
Re: Best way to implement a "dynamic" panel
- Subject: Re: Best way to implement a "dynamic" panel
- From: Jerry Krinock <email@hidden>
- Date: Sat, 4 Oct 2008 20:45:13 -0700
On 2008 Oct, 04, at 10:07, Andreas Eriksson wrote:
I'm wondering what's the best way to implement a panel with a very
dynamic layout, similar to the iCal panel used to edit events? I need
the panel to resize, and other controls to move as other controls are
inserted, removed, or resized.
Well, I don't know if it's the ^best^ way, but I've written a custom
"alert" window which does this. As far as the dynamic layout, before
invoking -display, it starts at x=0, adds a margin, then marches
across, setting the x-origin of each subview. Then it does the same
thing on the y-axis. It is quite brute-force, but it works. Does
anyone know a better way?
_______________________________________________
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