Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000483 [Squeak 5.2] feature always 11-01-04 22:26 11-22-04 23:46
Reporter ned View Status public  
Assigned To ned
Priority normal Resolution fixed  
Status resolved  
Summary 0000483: Identity of triggering object is unavailable in scripts
Description We have several ways to trigger scripts from other objects:
- explicit action from a script (tellAllSiblings:, doScript:, triggerScript:, etc.)
- action in response to a user-defined event (triggered on the World)
- action in response to a predefined event (triggered on a specific recipient by another Morph)
- direct call of a script by name from another script

The attached changeset adds a new slot to the 'scripting' vocabulary category that will report the object that is triggering a given script, either by triggering an event (user custom or predefined), or directly via triggerScript: or doScript:.

This can be used, for instance, to discover the identity of a Connector that just connected to MyMorph in a script on MyMorph that is triggered on the #connectedTo event.
Additional Information
Attached Files  GetTriggeringObject-nk.1.cs [^] (19,154 bytes) 11-01-04 22:26

- Relationships

- Notes
(0000575 - 77 - 77 - 77 - 77 - 77 - 77)
ned
11-01-04 22:28

The attached CS should give us the ability to get the object. Please test it.
 
(0000576 - 15 - 15 - 15 - 15 - 15 - 15)
ned
11-01-04 22:28

wanted feedback
 
(0000577 - 149 - 173 - 173 - 173 - 173 - 173)
ned
11-01-04 22:29

Reminder sent to michael

Hi Michael,
This is something that is useful and a good addition to the Squeakland update stream, IMO.
What do you think?
 
(0000723 - 20 - 20 - 20 - 20 - 20 - 20)
ned
11-22-04 23:46

Fixed by attached CS
 

- Issue History
Date Modified Username Field Change
11-01-04 22:26 ned New Issue
11-01-04 22:26 ned File Added: GetTriggeringObject-nk.1.cs
11-01-04 22:28 ned Status assigned => resolved
11-01-04 22:28 ned Resolution open => fixed
11-01-04 22:28 ned Note Added: 0000575
11-01-04 22:28 ned Status resolved => feedback
11-01-04 22:28 ned Resolution fixed => reopened
11-01-04 22:28 ned Note Added: 0000576
11-01-04 22:29 ned Issue Monitored: michael
11-01-04 22:29 ned Note Added: 0000577
11-01-04 22:36 ned Status feedback => assigned
11-22-04 23:46 ned Status assigned => resolved
11-22-04 23:46 ned Resolution reopened => fixed
11-22-04 23:46 ned Note Added: 0000723


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
55 total queries executed.
35 unique queries executed.
Powered by Mantis Bugtracker