[gme-users] Recognizing transactions within an add-on
Adam Nagel
nagelar at isis.vanderbilt.edu
Mon Jun 7 13:05:03 CDT 2010
I'm working on an add-on that is designed to prevent the accidental
deletion of connections as a result of other actions by the user. It
does this by catching events in RawComponent::ObjectEvent( ... ). If
the user takes an action that would result in the deletion of one or
more connections, the component should prompt the user once, and if the
user chooses to proceed, then the component should remember that
decision and not re-prompt for the rest of the deletions in the
transaction. If the user wants to abort, the component will abort the
transaction.
Is there some unique information about the current transaction that I
can store in the RawComponent class so that it can "remember" the user's
choice for every remaining event in the transaction? Is there a simpler
way to get this behavior?
Adam Nagel
Staff Engineer, Institute for Software Integrated Systems (ISIS)
Vanderbilt University
<mailto:nagelar at isis.vanderbilt.edu> nagelar at isis.vanderbilt.edu
(615) 294-6393
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20100607/18a6b0f7/attachment.html
More information about the gme-users
mailing list