Re: window with a lot of controllers
Re: window with a lot of controllers
- Subject: Re: window with a lot of controllers
- From: Allan Odgaard <email@hidden>
- Date: Mon, 10 May 2004 23:56:59 +0200
On 10. May 2004, at 16:21, Denis Queffeulou wrote:
I wonder if it is possible with Cocoa to create GUI interfaces windows
programmatically (like in Java) ?
With Cocoa you need to pixel-position every gadget in code, instead of
e.g. letting a layout manager do it. So it's not entirely like Java...
It's because if I have a GUI with MANY controllers (many tabs with
many NSSliders), I think it would be very time consuming to do the
bindings between outlets and GUI component in Interface Builder (very
tedious).
I agree, but the alternative is often worse, so I would not go there.
Instead look into if e.g. your sliders could be cells in an NSMatrix or
similar to reduce the number of manual bindings/connections.
You may also create a hybrid, e.g. an NSView subclass which manage a
number of subviews, and then instantiate that view in IB and only make
a connection to this one...
If you post e.g. a link to an image showing the GUI you have in mind
and/or a more detailed explanation of its function, we may be able to
help you cut some corners :)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.