[squeak-dev] The Trunk: Morphic-nice.308.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Jan 18 18:42:02 UTC 2010


Nicolas Cellier uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-nice.308.mcz

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

Name: Morphic-nice.308
Author: nice
Time: 18 January 2010, 7:40:18.951 pm
UUID: 675250fd-4321-e24c-add9-2967ca6f007d
Ancestors: Morphic-nice.307

move temp assignment outside block

=============== Diff against Morphic-nice.307 ===============

Item was changed:
  ----- Method: JoystickMorph>>chooseJoystickNumber (in category 'menu') -----
  chooseJoystickNumber
  	"Allow the user to select a joystick number"
  
  	| result aNumber str |
  	str := self lastRealJoystickIndex asString.
  	result := UIManager default 
  				request: ('Joystick device number (currently {1})' translated format: {str})
  				initialAnswer: str.
+ 	aNumber := [result asNumber] on: Error do: [:err | ^Beeper beep].
- 	[aNumber := result asNumber] on: Error do: [:err | ^Beeper beep].
  	(aNumber > 0 and: [aNumber <= 32]) 
  		ifFalse: 
  			["???"
  
  			^Beeper beep].
  	realJoystickIndex := aNumber.
  	self setProperty: #lastRealJoystickIndex toValue: aNumber.
  	self startStepping!




More information about the Squeak-dev mailing list