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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
