The Trunk: System-dtl.241.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: System-dtl.241.mcz

commits-2
A new version of System was added to project The Trunk:
http://source.squeak.org/trunk/System-dtl.241.mcz

==================== Summary ====================

Name: System-dtl.241
Author: dtl
Time: 30 January 2010, 10:00:40.376 pm
UUID: 4d4d420e-4618-4fe6-ab0f-c63a28bb622f
Ancestors: System-dtl.240

Add Project>>dispatchTo:addPrefixAndSend:withArguments:
Allow classes with MVC and Morphic dependencies to dispatch through Project current to invoke appropriate methods. Prevents accumulation of unrelated implementations in Project.


=============== Diff against System-dtl.240 ===============

Item was added:
+ ----- Method: Project>>dispatchTo:addPrefixAndSend:withArguments: (in category 'dispatching') -----
+ dispatchTo: requestor addPrefixAndSend: baseSelector withArguments: arguments
+ "Sender wants to perform a method with dependencies on the type of project.
+ Dispatch to an appropriate method for the current project."
+
+ | selector |
+ selector := (self selectorPrefixForDispatch, baseSelector) asSymbol.
+ ^ requestor perform: selector withArguments: arguments!

Item was added:
+ ----- Method: Project>>selectorPrefixForDispatch (in category 'dispatching') -----
+ selectorPrefixForDispatch
+ "A string to be preppended to selectors for project specific methods"
+
+ ^ self subclassResponsibility!