Okay, so should I interpret your response as meaning that I should
assume that people use setter methods, and if scripts don't and this
causes problems then this will teach people that they should use setter
methods? :-) I ask because my other potential option for implementing
a system for implementing listeners is to add a hack using something
like __getattr__/__setattr__ to monitor the fields for changes.
Cheers,
Greg
On 04/08/2011 12:04 PM, Edward K. Ream wrote:
On Fri, Apr 8, 2011 at 10:54 AM, Gregory Crosswhite
<[email protected]> wrote:
As I mentioned before, I would like to add support to Leo's core class to
add listeners that are notified of changes in the data model. I am
ignorant, though, about how scripts generally work with the Leo class. Do
they generally use the setX methods to alter it, or do they generally
set/access fields directly?
A good rule is to use setters if they exist :-)
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.