On May 7, 2009, at 6:01 AM, Bridger Maxwell wrote:

Hey,
I have a project in which I need to construct an interface, composed of
several "widgets," dynamically. Basically, when the user starts the
application they choose which components they will be working with. Each of these components will have a nib file, with a single view. They will all be different sizes. I need to lay those out on a single screen. I want it to be fairly predictable, so removing one widget doesn't completely rearrange the
entire interface.

I have been thinking about this problem for a while, and still have nothing to show for it. I am not even sure where to start. I would imagine this is a common problem, and has been tackled many times before me (for example, Expose lays out all of the windows very nicely). Do you have any advice on
where to look, or a neat algorithm to use?

Thank You,
Bridger Maxwell


You probably looking for a Layout Manager.

Mozilla's XUL, .NET's XAML and Adobe's FLEX provide Layout managers:
http://en.wikipedia.org/wiki/Layout_manager
http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000517.html

For Java there is whole bunch of Layout Mangers:
http://wiki.java.net/bin/view/Javadesktop/LayoutManagerShowdown


When studying the specs and docs, you might get an idea of what you need to implement your own. Java is also open source, you can look at the code or even port it to Objective-C. Please send us a note when you have done it ;)


Regards
Andreas


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/agrosam%40onlinehome.de

This email sent to agro...@onlinehome.de

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to