[squeak-dev] The Trunk: ST80-ar.83.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Jan 10 18:29:56 UTC 2010


Andreas Raab uploaded a new version of ST80 to project The Trunk:
http://source.squeak.org/trunk/ST80-ar.83.mcz

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

Name: ST80-ar.83
Author: ar
Time: 10 January 2010, 10:29:39.932 am
UUID: 4c65e960-ad5e-a740-a662-7401ef55cb63
Ancestors: ST80-ar.82

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 ST80-ar.82 ===============

Item was added:
+ ----- Method: MVCProject>>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 := CustomMenu new.

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

+ 	aMenu invokeOn: aModel!


Item was removed:
- ----- Method: MVCProject>>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 := CustomMenu new.

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

- 	aMenu invokeOn: self!





More information about the Squeak-dev mailing list