|
Fernando,
> Is there an easy way to get a list of all the events a class can
> trigger?
Yes.
From a class browser's class menu, or the class tree's context menu, you can
select Browse=>Published events.
From code, you can ask an object for its #publishedEvents, which usually ends
up calling the class-side method #publishedEventsOfInstances. E.g. trace
through:
SessionManager current publishedEvents.
But be aware that:
a) The event lists are only advisory (no object can know all the events that
will be triggered off it).
b) The event lists will only be accurate if someone has attempted to keep them
up-to-date and correct (the Dolphin classes are usually pretty good in this).
c) Views usually trigger the events off their Presenter, rather than off
themselves.
d) All the information about published events is stripped during deployment....
-- chris
|