The Trunk: Morphic-ar.303.mcz

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

The Trunk: Morphic-ar.303.mcz

commits-2
Andreas Raab uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-ar.303.mcz

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

Name: Morphic-ar.303
Author: ar
Time: 10 January 2010, 10:27:03.371 am
UUID: c4dd34d3-743a-2343-a4ca-488a5934b43c
Ancestors: Morphic-jcg.302

Replace offerMenuFrom:shifted: by offerMenu:from:shifted: which takes an additional argument, the model to retrieve the menu from and perform the actions on.

=============== Diff against Morphic-jcg.302 ===============

Item was added:
+ ----- Method: MorphicProject>>offerMenu:from:shifted: (in category 'utilities') -----

+ offerMenu: menuSelector from: aModel shifted: aBoolean

+ "Pop up a menu whose target is aModel and whose contents are provided

+ by sending the menuSelector to the model. The menuSelector takes two

+ arguments: a menu, and a boolean representing the shift state."

+

+ | aMenu |

+ aMenu := MenuMorph new defaultTarget: aModel.

+ aModel perform: menuSelector with: aMenu with: aBoolean.

+ aMenu popUpInWorld

+ !


Item was removed:
- ----- Method: MorphicProject>>offerMenuFrom:shifted: (in category 'utilities') -----

- offerMenuFrom: menuRetriever shifted: aBoolean

- "Pop up a menu whose target is the receiver and whose contents are provided

- by sending the menuRetriever to the receiver. The menuRetriever takes two

- arguments: a menu, and a boolean representing the shift state."

-

- | aMenu |

- aMenu := MenuMorph new defaultTarget: self.

- self perform: menuRetriever with: aMenu with: aBoolean.

- aMenu popUpInWorld!