Cocoa control to replace the GtkTable widget ?
Hi, Question, I would like to know if there is a "cocoa like" of the GtkTable widget http://pygtk.org/pygtk2tutorial/sec-PackingUsingTables.html Regards, Stephane
Question, I would like to know if there is a "cocoa like" of the GtkTable widget
NSMatrix, sort of. To quote every other post on cocoa-dev: what are you trying to do? -Ben
If you know OpenERP (www.openerp.com), I write a new client for this project, On 08 Apr 2009, at 20:40, Benjamin Stiglitz wrote:
Question, I would like to know if there is a "cocoa like" of the GtkTable widget
NSMatrix, sort of.
To quote every other post on cocoa-dev: what are you trying to do?
-Ben _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Sorry, thank you for your help On 08 Apr 2009, at 20:40, Benjamin Stiglitz wrote:
Question, I would like to know if there is a "cocoa like" of the GtkTable widget
NSMatrix, sort of.
To quote every other post on cocoa-dev: what are you trying to do?
-Ben _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Sorry, thank you for your help
I’m not sure if I was able to help! When I asked “what are you trying to do,” I meant: “what does the UI you are trying to create look like?” NSMatrix is only appropriate for certain, very limited interfaces. Otherwise you’ll need to roll your own, or play in IB. -Ben
In fact, I have to draw my screen dynamically. I explain. In OpenERP, we use the xml files to describe the layout of our views, with these xml files, we can create easily our screens. For example: Here is the xml description of a screen <form string="Blabla"> <separator string="Description" colspan="4" /> <field name="name" /> <field name="date" /> <button name="" string="Click !" /> </form> This xml description tells to the OpenERP client that it must create a new screen with the following design: This screens contains a container widget (GktTable) with 4 columns |------------------------------------------------------------------| | Description | | Name: [ ] Date: [ ] | | BUTTON [Click !] | |------------------------------------------------------------------| The separator with the "Description" string takes 4 columns because there is the colspan attribute with 4 as value. Each field takes two columns, one for the label of this field and the second for the text_field or any control (date_field, table_view, etc...) The "Click !" button takes one colum because there is no label for this widget. So, for this screen, with the Gtk client, we had to create a GtkTable with 4 colums and 3 lines. I am looking for the equivalent with Cocoa. How can I create the equivalent ? Stephane On 08 Apr 2009, at 23:48, Benjamin Stiglitz wrote:
Sorry, thank you for your help
I’m not sure if I was able to help!
When I asked “what are you trying to do,” I meant: “what does the UI you are trying to create look like?” NSMatrix is only appropriate for certain, very limited interfaces. Otherwise you’ll need to roll your own, or play in IB.
-Ben _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
participants (2)
-
Benjamin Stiglitz
-
Stéphane Wirtel