[squeak-dev] The Trunk: System-dtl.241.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Feb 1 02:00:59 UTC 2010

A new version of System was added to project The Trunk:

==================== 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!

More information about the Squeak-dev mailing list