Re: Dynamic user interface - how?
Re: Dynamic user interface - how?
- Subject: Re: Dynamic user interface - how?
- From: Kaspar Fischer <email@hidden>
- Date: Tue, 6 Dec 2005 18:18:34 +0100
Answering myself, one solution is to create a NIB-file
for a slider, one for a checkbox, one for a group of
radio buttons, etc., and to load this NIB-file and add
it via NSView's -[addSubview] to a given, initially
empty view of the main window.
On 18.12.2004, at 16:44, Kaspar Fischer wrote:
Dear everybody,
I am writing a small application where part of the user
interface needs to be built dynamically. That is, the
user somehow tells me what controls (checkboxes, groups
of radio buttons, sliders) she wants and the application
has to show this interface at runtime.
Ideally, the user could select the controls within the
GUI, i.e., she can drag new controls from a palette to
the view just like in interface builder. But for the
moment I would be totally happy if I managed to create
the interface from a text-file, say:
Slider "Temperature:" range -10..10;
Checkbox "Snow:";
Radio buttons "Storm" or "Rain" or "Sunny";
This would create a slider, a checkbox, and a group
of three radio buttons.
Can anybody give me a hint how to do this?
Many thanks!
Kaspar
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden