> >  .....
> >  And let's store the "fl-nib" as a JSON file.
> >  Not so much because I think that's a good solution.
> >  More because it really annoys the XML folk.  :-)
> >
> > --
> >  Ian
> 
> We also could consider using Lua for this task. It's a very
> lightweight scripting language and could make the nib files simple but
> extensible.

Is a scripting language (and extensibility) needed?

I thought (and am likely wrong) the "nib" idea was that, in your app
bundle, you have localised sub-folders, plus a default. When the app
runs, it loads the appropriate nib for your locale, if present, or the
default one if not, and forms the GUI.
These localised items are "hard coded" by the app creators, and are
basically fixed at compile time. They are not intended to be modified by
the end-user (although I think sometimes they can be.)
So, as I saw it, any parsing would happen at compile time and scripting
support at runtime is not required.
The GUI can differ slightly from locale to locale, but it is *not* laid
out dynamically at runtime - the variants are all laid out at build
time, probably by an actual human designer, who will do a better job
than many auto-layout tools (I'd hope!)

Of course, if we want to let the end-user fiddle with the GUI, then a
scripting language is probably a good idea (for certain unspecified
values of "good", obviously.) But that takes you back into the
Motif-tools area and slower startup times.



SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to