|
|
listening for an object created event
Is it possible for an object, objClassB say, to listen for when an
object of another class, objClassA say, is being created (or has just
been created)?
I can define ClassA having an event and for the event to be broadcast
(using notify) at the end of the constructor.
However the syntax for adding a listener
addlistener(Hsource,'EventName',callback), and all of the examples
(that I can see) in the documentation require an objClassA to exist
already.
The examples typically show a method of ClassB being passed an
objClassA and the listener being added in the method.
But by that stage it's too late in that objClassA has already been
created.
I want an objClassB to listen for the creation of objClassA not just
listen for any changes that may occur to it.
Can this be done, and if so how?
|
|
0
|
|
|
|
Reply
|
pouncingmoose
|
3/2/2011 6:03:29 AM |
|
|
0 Replies
272 Views
(page loaded in 0.064 seconds)
Similiar Articles: listening for an object created event - comp.soft-sys.matlab ...Is it possible for an object, objClassB say, to listen for when an object of another class, objClassA say, is being created (or has just been create... how to check if an object has already been created - comp.lang ...listening for an object created event - comp.soft-sys.matlab ..... listen for when an object of another class, objClassA say, is being created (or has just been ... some GPIB-tcl questions - comp.lang.tcllistening for an object created event - comp.soft-sys.matlab ... some GPIB-tcl questions - comp.lang.tcl... to Tcl, which is more object oriented ... also look into using ... Detecting when the garage door opens or is left opened - comp.home ...listening for an object created event - comp.soft-sys.matlab ... Detecting when the garage door opens or is left opened - comp.home ..... way a door that is "ajar" will ... How redirect event between two public class? - comp.lang.java.gui ...listening for an object created event - comp.soft-sys.matlab ... How redirect event between two public class? - comp.lang.java.gui ... Hi, How can I send information about ... Worker Threads and EDT - comp.lang.java.gui... have a transitive dependency back to some UI object? ... in the places where UI elements are created, modified or ... That is, things which listen to the business objects ... definition of knowledge - can't beat it - comp.ai.philosophy ...... or instruction b : knowledge of a particular event or ... of crime 5 : the process by which the form of an object ... They are our senses, isn't it, so we have to listen to ... [comp.publish.cdrom] CD-Recordable FAQ, Part 1/4 - comp.publish ...Archive-name: cdrom/cd-recordable/part1 Posting-Frequency: monthly Last-modified: 2008/10/09 Version: 2.71 Send corrections and updates to And... top 10 uses for random data compression?? anyone? - comp ...Better assign events now or Ann will hourly lead them around you. How will you object the latin ugly destinations ... Just listening past a archive with the wedding is too ... How best to detect duplicate values in a column? - comp.databases ...CREATE TABLE surans ... And if there's a logical "object", which together with a ... my proposed application to have several users listen to ... listening for an object created event - comp.soft-sys.matlab ...Is it possible for an object, objClassB say, to listen for when an object of another class, objClassA say, is being created (or has just been create... Lesson 2: Event Handling - Microsoft Corporation: Software ...In this lesson we use the Visio Application object to listen for Visio events. Once the COM add-in is notified of a newly created document event, it makes a call to the ... 7/23/2012 6:44:11 PM
|
|
|
|
|
|
|
|
|