Re: Questions and problems with clist
| From: | Geoff A. Virgo | Date: | Tue, 23 Oct 2001 10:07:56 +0000 |
| Subject: | Re: Questions and problems with clist | ||
| References: | 1 2 3 4 5 6 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-384@lists.php.net to get a copy of this message | ||
It actually was a copy, but passing by reference doesn't make any difference (in terms of my current problem)..... I'd already tried that:). The problem happens only when you select multiple rows in the clist by mousing while depressing the <shift> key and only on the first attempt to launch with the keyboard. Second and afterwards attempts work fine. If you select all rows using either of the menus or the keyboard shortcut it works every time. If you select multiple rows using the <ctrl> mouse modifier it works every time. The problem seems to lie in the <shift> modifier.
Besides...... call passes and returns by reference has been deprecated for a while now hasn't it? Thought I read something about pass and create by reference being the default for the Zend 2 engine. That is of course when the good folks over at Zend decide to bless us with the new version:)
At 03:28 AM Tuesday, 10/23/2001, Alan Knowles wrote:
Are you sure it is the reference of the object and not a copy - make sure you using the & anywhere where you pass the variable about.. $clist = &new Gtkclist(); or in objects be carefull.. $this->clist = & new Gtkclist(); $this->connect("press",array(&$this,"mymethod"); or do_somestuff_on_the_clist(&$clist); function do_somestuff_on_the_clist(&$clist) { $clist->add_node....-geoff ---------- Programmer: an advanced tool used for converting caffeine into code.