|
From: | Helge Hess |
Subject: | Re: Renaissance menus on OS X ? |
Date: | Fri, 03 Jan 2003 17:11:54 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021212 |
Nicola Pero wrote:
Can I have a Pop-Up (with connections) in English and a Pop-Up (with connections) + a TextField (without connections) in Fenchfor exemple.I'm not sure what the question is, but nothing stops you from having a separate .gsmarkup file for English, and a separate .gsmarkup file for French if you so need (and if you have that much time to spend), exactly in the same way as .gorm files.
I think the question is: do gsmodel files support conditionals ? This is what I meant with them being more "WO-like". Eg:
<var:if condition="NSApp.language" value="French"> <popup/> <input type="text"/> </var:if> <var:if condition="NSApp.language" value="English"> <popup/> </var:if>Currently gsmarkup files are exact descriptions of the resulting tree, but they could be templates which *create* the exact descriptions.
For example a repetition could create a toolbar row: <hbox> <var:foreach list="MyBundleManager.allPrefBundles" item="item"> <button var:label="item.bundlePath.stringByDeletingLastPathComponent"/> </var:foreach> </hbox>XUL does that with RDF datasources which is a bit weird. Eg XUL also allows something like "WO reusable components" with something called "XBL".
I'm didn't find a lot of time yet to play with R., but I plan to make some prototype that shows my idea ;-)
Greetings Helge
[Prev in Thread] | Current Thread | [Next in Thread] |