Re: C API vs PHP API, e.g. gtk_tree_selection_get_selection
| From: | Markus Fischer | Date: | Tue, 24 May 2005 05:34:06 +0000 |
| Subject: | Re: C API vs PHP API, e.g. gtk_tree_selection_get_selection | ||
| References: | 1 2 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-1324@lists.php.net to get a copy of this message | ||
Andrei Zmievski wrote:
I modeled the PHP API mainly on PyGTK. If there is a better way to do something, I am open to changes, if there is a consensus about it.It's always hard to get an API right. I mean companies spend years to do it right. On second thought, I'm not so sure if an API change would be good anyway. The following is sexy enough list($oModel, $oIter) = $tree->get_selection()->get_selected(); if ($oIter) { } and will probably do it. For any sane interaction for the iter the model is required anyway. - Markus