• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dynamic user interface - how?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Dynamic user interface - how?
      • From: Stefan Pantke <email@hidden>
  • Prev by Date: Re: resize image with cocoa
  • Next by Date: Re: Are NSViews autoreleased or released?
  • Previous by thread: Re: "Cocoa Programming" by Scott Anguish, Erik Buck and Don Yacktman
  • Next by thread: Re: Dynamic user interface - how?
  • Index(es):
    • Date
    • Thread