[squeak-dev] The Inbox: Tools-ct.1147.mcz
Christoph.Thiede at student.hpi.uni-potsdam.de
Tue Apr 26 13:57:05 UTC 2022
thank you! In doubt, I would always use #allSubInstancesDo: instead of #allInstancesDo: for the same reason we (almost) always use #isKindOf: rather than #isMemberOf: - because any subclass might just be an implementation detail of the original protocol. I think this is an amount of speculative generality that does not hurt. :-) There are indeed some subclasses of Workspace (e.g., I think TruffleSqueak does this), and by default, their styling should just work like in any normal workspace.
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Taeumel, Marcel
Gesendet: Dienstag, 26. April 2022 13:52:15
Betreff: Re: [squeak-dev] The Inbox: Tools-ct.1147.mcz
Hi Christoph --
There are no subclasses of Workspace. I am not sure whether we even want to encourage to have some. At least not in this way. Hmm... #allInstancesDo: should be sufficient for this purpose.
Anyway: +1 :)
Am 26.04.2022 12:12:48 schrieb commits at source.squeak.org <commits at source.squeak.org>:
A new version of Tools was added to project The Inbox:
==================== Summary ====================
Time: 26 April 2022, 12:12:36.942702 pm
Updates workspace styles after toggling #shouldStyle preference. This also improves the liveness in the preference wizard.
=============== Diff against Tools-tpr.1146 ===============
Item was changed:
----- Method: Workspace class>>shouldStyle: (in category 'preferences') -----
+ ShouldStyle := aBoolean.
+ self allSubInstancesDo: [:workspace | workspace changed: #style].!
- ShouldStyle := aBoolean!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev