note 42 added to gtk.gtkobject.method.connect_object.php
| From: | alan_k at hklc dot com | Date: | Tue, 25 Sep 2001 03:02:35 +0000 |
| Subject: | note 42 added to gtk.gtkobject.method.connect_object.php | ||
| Groups: | php.gtk.webmaster | ||
| Request: | Send a blank email to php-gtk-webmaster+get-52@lists.php.net to get a copy of this message | ||
this should be
$object->connect_object('event',array(&$someobject,itsmethod));
passing by reference is advised, otherwise any changes to the object made at runtime will not be
reflected in the values of the object when the method is called
eg. use
&$this
rather than
$this
http://gtk.php.net/manual/en/gtk.gtkobject.method.connect_object.php