[Gambas-user] Modules cant raise events :-(
bbb888
bbruen at ...2308...
Mon Jan 11 02:39:57 CET 2010
I have a module called "env" that "holds" three system wide objects
(CurrentUser, CurrentProject, CurrentSystem). Lots of forms access and use
these objects (Login, FMain etc etc).
I am trying to signal an unknown number of listeners when one of these
objects changes, for example is the user changes to another "project". But
modules cant raise events.
I don't want to raise the event inside the objects classes (e.g.
CurrentProject is an instance of Project) as ... actually I don't know why,
but it seems wrong (the object itself doesn't know it's changed).
I am having trouble coming up with a solution. Can anyone suggest a
solution or a workaround?
tia
bruce
--
View this message in context: http://old.nabble.com/Modules-cant-raise-events-%3A-%28-tp27104759p27104759.html
Sent from the gambas-user mailing list archive at Nabble.com.
More information about the User
mailing list