[squeak-dev] The Inbox: Morphic-ct.1623.mcz
commits at source.squeak.org
commits at source.squeak.org
Sat Feb 1 12:49:13 UTC 2020
Christoph Thiede uploaded a new version of Morphic to project The Inbox:
http://source.squeak.org/inbox/Morphic-ct.1623.mcz
==================== Summary ====================
Name: Morphic-ct.1623
Author: ct
Time: 1 February 2020, 1:49:06.372633 pm
UUID: 2e64e67e-c69c-4041-a9cc-8925d9335986
Ancestors: Morphic-cmm.1618
Proposal: Add logic to remove all morphic alarms of a receiver
I like to use this method in #delete of custom Morph classes. It's often easier than looking up all senders of #addAlarm:* to find out the exact selectors of the alarms to remove ...
=============== Diff against Morphic-cmm.1618 ===============
Item was added:
+ ----- Method: Morph>>removeAlarms (in category 'events-alarms') -----
+ removeAlarms
+
+ self alarmScheduler ifNotNil: [:scheduler |
+ scheduler removeAlarmsFor: self].!
Item was added:
+ ----- Method: MorphicAlarmQueue>>removeAlarmsWithReceiver: (in category 'removing') -----
+ removeAlarmsWithReceiver: receiver
+
+ ^ heap removeAllSuchThat: [ :each | each receiver == receiver ]!
Item was added:
+ ----- Method: PasteUpMorph>>removeAlarmsFor: (in category 'alarms-scheduler') -----
+ removeAlarmsFor: aTarget
+ worldState removeAlarmsFor: aTarget!
Item was added:
+ ----- Method: WorldState>>removeAlarmsFor: (in category 'alarms') -----
+ removeAlarmsFor: aTarget
+ self lockAlarmsDuring: [:locked |
+ locked removeAlarmsWithReceiver: aTarget ]!
More information about the Squeak-dev
mailing list
|