Nicolas Cellier uploaded a new version of Sound to project The Trunk:
http://source.squeak.org/trunk/Sound-nice.24.mcz
==================== Summary ====================
Name: Sound-nice.24
Author: nice
Time: 1 October 2010, 11:39:06.786 pm
UUID: 120ac11e-6f0a-4161-976c-a1e0f2e82025
Ancestors: Sound-nice.23
1) use #postCopy paradigm
2) _ -> :=
=============== Diff against Sound-nice.23 ===============
Item was removed:
- ----- Method: AbstractSound>>copy (in category 'copying') -----
- copy
- "A sound should copy all of the state needed to play itself, allowing two copies of a sound to play at the same time. These semantics require a recursive copy but only down to the level of immutable data. For example, a SampledSound need not copy its sample buffer. Subclasses overriding this method should include a resend to super."
-
- ^ self clone copyEnvelopes
- !
Item was added:
+ ----- Method: AbstractSound>>postCopy (in category 'copying') -----
+ postCopy
+ "A sound should copy all of the state needed to play itself, allowing two copies of a sound to play at the same time. These semantics require a recursive copy but only down to the level of immutable data. For example, a SampledSound need not copy its sample buffer. Subclasses overriding this method should include a resend to super."
+
+ super postCopy.
+ self copyEnvelopes
+ !
Item was removed:
- ----- Method: MixedSound>>copy (in category 'copying') -----
- copy
- "Copy my component sounds."
-
- ^ super copy copySounds
- !
Item was added:
+ ----- Method: MixedSound>>postCopy (in category 'copying') -----
+ postCopy
+ "Copy my component sounds."
+
+ super postCopy.
+ self copySounds
+ !
Item was removed:
- ----- Method: PluckedSound>>copy (in category 'copying') -----
- copy
-
- ^ super copy copyRing
- !
Item was added:
+ ----- Method: PluckedSound>>postCopy (in category 'copying') -----
+ postCopy
+
+ super postCopy.
+ self copyRing
+ !
Item was removed:
- ----- Method: RepeatingSound>>copy (in category 'copying') -----
- copy
- "Copy my component sound."
-
- ^ super copy copySound
- !
Item was added:
+ ----- Method: RepeatingSound>>postCopy (in category 'copying') -----
+ postCopy
+ "Copy my component sound."
+
+ super postCopy.
+ self copySound
+ !
Item was removed:
- ----- Method: ReverbSound>>copy (in category 'copying') -----
- copy
- "Copy my component sound."
-
- ^ super copy copySound
- !
Item was added:
+ ----- Method: ReverbSound>>postCopy (in category 'copying') -----
+ postCopy
+ "Copy my component sound."
+
+ super postCopy.
+ self copySound
+ !
Item was removed:
- ----- Method: ScorePlayer>>copy (in category 'copying') -----
- copy
- "Copy my component sounds."
-
- ^ super copy copySounds
- !
Item was added:
+ ----- Method: ScorePlayer>>postCopy (in category 'copying') -----
+ postCopy
+ "Copy my component sounds."
+
+ super postCopy.
+ self copySounds
+ !
Item was removed:
- ----- Method: SequentialSound>>copy (in category 'copying') -----
- copy
- "Copy my component sounds."
-
- ^ super copy copySounds
- !
Item was added:
+ ----- Method: SequentialSound>>postCopy (in category 'copying') -----
+ postCopy
+ "Copy my component sounds."
+
+ super postCopy.
+ self copySounds
+ !
Item was changed:
----- Method: SimpleMIDIPort class>>inputPortNumFromUser (in category 'utilities') -----
inputPortNumFromUser
"Prompt the user for a MIDI input port. Answer a port number, or nil if the user does not select a port or if MIDI is not supported on this platform."
"SimpleMIDIPort inputPortNumFromUser"
| portCount dir portList |
+ portCount := self primPortCount.
- portCount _ self primPortCount.
portCount = 0 ifTrue: [^ nil].
portList := OrderedCollection new.
0 to: portCount - 1 do:[:i |
dir := self primPortDirectionalityOf: i.
(dir = 1) | (dir = 3) ifTrue:[portList add: i]].
^UIManager default
chooseFrom: (portList collect:[:i| self portDescription: i])
values: portList
title: 'MIDI port for input:' translated
!
Nicolas Cellier uploaded a new version of Sound to project The Trunk:
http://source.squeak.org/trunk/Sound-nice.24.mcz
==================== Summary ====================
Name: Sound-nice.24
Author: nice
Time: 1 October 2010, 11:39:06.786 pm
UUID: 120ac11e-6f0a-4161-976c-a1e0f2e82025
Ancestors: Sound-nice.23
1) use #postCopy paradigm
2) _ -> :=
=============== Diff against Sound-nice.23 ===============
Item was removed:
- ----- Method: AbstractSound>>copy (in category 'copying') -----
- copy
- "A sound should copy all of the state needed to play itself, allowing two copies of a sound to play at the same time. These semantics require a recursive copy but only down to the level of immutable data. For example, a SampledSound need not copy its sample buffer. Subclasses overriding this method should include a resend to super."
-
- ^ self clone copyEnvelopes
- !
Item was added:
+ ----- Method: AbstractSound>>postCopy (in category 'copying') -----
+ postCopy
+ "A sound should copy all of the state needed to play itself, allowing two copies of a sound to play at the same time. These semantics require a recursive copy but only down to the level of immutable data. For example, a SampledSound need not copy its sample buffer. Subclasses overriding this method should include a resend to super."
+
+ super postCopy.
+ self copyEnvelopes
+ !
Item was removed:
- ----- Method: MixedSound>>copy (in category 'copying') -----
- copy
- "Copy my component sounds."
-
- ^ super copy copySounds
- !
Item was added:
+ ----- Method: MixedSound>>postCopy (in category 'copying') -----
+ postCopy
+ "Copy my component sounds."
+
+ super postCopy.
+ self copySounds
+ !
Item was removed:
- ----- Method: PluckedSound>>copy (in category 'copying') -----
- copy
-
- ^ super copy copyRing
- !
Item was added:
+ ----- Method: PluckedSound>>postCopy (in category 'copying') -----
+ postCopy
+
+ super postCopy.
+ self copyRing
+ !
Item was removed:
- ----- Method: RepeatingSound>>copy (in category 'copying') -----
- copy
- "Copy my component sound."
-
- ^ super copy copySound
- !
Item was added:
+ ----- Method: RepeatingSound>>postCopy (in category 'copying') -----
+ postCopy
+ "Copy my component sound."
+
+ super postCopy.
+ self copySound
+ !
Item was removed:
- ----- Method: ReverbSound>>copy (in category 'copying') -----
- copy
- "Copy my component sound."
-
- ^ super copy copySound
- !
Item was added:
+ ----- Method: ReverbSound>>postCopy (in category 'copying') -----
+ postCopy
+ "Copy my component sound."
+
+ super postCopy.
+ self copySound
+ !
Item was removed:
- ----- Method: ScorePlayer>>copy (in category 'copying') -----
- copy
- "Copy my component sounds."
-
- ^ super copy copySounds
- !
Item was added:
+ ----- Method: ScorePlayer>>postCopy (in category 'copying') -----
+ postCopy
+ "Copy my component sounds."
+
+ super postCopy.
+ self copySounds
+ !
Item was removed:
- ----- Method: SequentialSound>>copy (in category 'copying') -----
- copy
- "Copy my component sounds."
-
- ^ super copy copySounds
- !
Item was added:
+ ----- Method: SequentialSound>>postCopy (in category 'copying') -----
+ postCopy
+ "Copy my component sounds."
+
+ super postCopy.
+ self copySounds
+ !
Item was changed:
----- Method: SimpleMIDIPort class>>inputPortNumFromUser (in category 'utilities') -----
inputPortNumFromUser
"Prompt the user for a MIDI input port. Answer a port number, or nil if the user does not select a port or if MIDI is not supported on this platform."
"SimpleMIDIPort inputPortNumFromUser"
| portCount dir portList |
+ portCount := self primPortCount.
- portCount _ self primPortCount.
portCount = 0 ifTrue: [^ nil].
portList := OrderedCollection new.
0 to: portCount - 1 do:[:i |
dir := self primPortDirectionalityOf: i.
(dir = 1) | (dir = 3) ifTrue:[portList add: i]].
^UIManager default
chooseFrom: (portList collect:[:i| self portDescription: i])
values: portList
title: 'MIDI port for input:' translated
!
Nicolas Cellier uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-nice.503.mcz
==================== Summary ====================
Name: Kernel-nice.503
Author: nice
Time: 1 October 2010, 10:41:05.264 pm
UUID: 23d5be4d-c5ff-4b77-97f7-fb925e59be1f
Ancestors: Kernel-eem.502
Remove #hashMappedBy: and #identityHashMappedBy:
=============== Diff against Kernel-eem.502 ===============
Item was removed:
- ----- Method: Magnitude>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "My hash is independent of my oop."
-
- ^self hash!
Item was changed:
----- Method: MethodFinder>>initialize (in category 'initialize') -----
(excessive size, no diff calculated)
Item was removed:
- ----- Method: Object>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "Answer what my hash would be if oops changed according to map."
-
- ^map newHashFor: self!
Item was removed:
- ----- Method: Object>>identityHashMappedBy: (in category 'comparing') -----
- identityHashMappedBy: map
- "Answer what my hash would be if oops changed according to map."
-
- ^map newHashFor: self!
Item was removed:
- ----- Method: SmallInteger>>identityHashMappedBy: (in category 'comparing') -----
- identityHashMappedBy: map
-
- ^ self!
Nicolas Cellier uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-nice.503.mcz
==================== Summary ====================
Name: Kernel-nice.503
Author: nice
Time: 1 October 2010, 10:41:05.264 pm
UUID: 23d5be4d-c5ff-4b77-97f7-fb925e59be1f
Ancestors: Kernel-eem.502
Remove #hashMappedBy: and #identityHashMappedBy:
=============== Diff against Kernel-eem.502 ===============
Item was removed:
- ----- Method: Magnitude>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "My hash is independent of my oop."
-
- ^self hash!
Item was changed:
----- Method: MethodFinder>>initialize (in category 'initialize') -----
(excessive size, no diff calculated)
Item was removed:
- ----- Method: Object>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "Answer what my hash would be if oops changed according to map."
-
- ^map newHashFor: self!
Item was removed:
- ----- Method: Object>>identityHashMappedBy: (in category 'comparing') -----
- identityHashMappedBy: map
- "Answer what my hash would be if oops changed according to map."
-
- ^map newHashFor: self!
Item was removed:
- ----- Method: SmallInteger>>identityHashMappedBy: (in category 'comparing') -----
- identityHashMappedBy: map
-
- ^ self!
Nicolas Cellier uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-nice.503.mcz
==================== Summary ====================
Name: Kernel-nice.503
Author: nice
Time: 1 October 2010, 10:41:05.264 pm
UUID: 23d5be4d-c5ff-4b77-97f7-fb925e59be1f
Ancestors: Kernel-eem.502
Remove #hashMappedBy: and #identityHashMappedBy:
=============== Diff against Kernel-eem.502 ===============
Item was removed:
- ----- Method: Magnitude>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "My hash is independent of my oop."
-
- ^self hash!
Item was changed:
----- Method: MethodFinder>>initialize (in category 'initialize') -----
(excessive size, no diff calculated)
Item was removed:
- ----- Method: Object>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "Answer what my hash would be if oops changed according to map."
-
- ^map newHashFor: self!
Item was removed:
- ----- Method: Object>>identityHashMappedBy: (in category 'comparing') -----
- identityHashMappedBy: map
- "Answer what my hash would be if oops changed according to map."
-
- ^map newHashFor: self!
Item was removed:
- ----- Method: SmallInteger>>identityHashMappedBy: (in category 'comparing') -----
- identityHashMappedBy: map
-
- ^ self!
Nicolas Cellier uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-nice.150.mcz
==================== Summary ====================
Name: Graphics-nice.150
Author: nice
Time: 1 October 2010, 10:39:00.499 pm
UUID: 20a16c7e-0232-4fd1-a522-23999bb77504
Ancestors: Graphics-ar.149
Remove #hashMappedBy: and #identityHashMappedBy:
=============== Diff against Graphics-ar.149 ===============
Item was removed:
- ----- Method: Point>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "My hash is independent of my oop."
-
- ^self hash!
Item was removed:
- ----- Method: Rectangle>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "My hash is independent of my oop."
-
- ^self hash!
Nicolas Cellier uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-nice.150.mcz
==================== Summary ====================
Name: Graphics-nice.150
Author: nice
Time: 1 October 2010, 10:39:00.499 pm
UUID: 20a16c7e-0232-4fd1-a522-23999bb77504
Ancestors: Graphics-ar.149
Remove #hashMappedBy: and #identityHashMappedBy:
=============== Diff against Graphics-ar.149 ===============
Item was removed:
- ----- Method: Point>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "My hash is independent of my oop."
-
- ^self hash!
Item was removed:
- ----- Method: Rectangle>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "My hash is independent of my oop."
-
- ^self hash!
Nicolas Cellier uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-nice.150.mcz
==================== Summary ====================
Name: Graphics-nice.150
Author: nice
Time: 1 October 2010, 10:39:00.499 pm
UUID: 20a16c7e-0232-4fd1-a522-23999bb77504
Ancestors: Graphics-ar.149
Remove #hashMappedBy: and #identityHashMappedBy:
=============== Diff against Graphics-ar.149 ===============
Item was removed:
- ----- Method: Point>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "My hash is independent of my oop."
-
- ^self hash!
Item was removed:
- ----- Method: Rectangle>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "My hash is independent of my oop."
-
- ^self hash!
Nicolas Cellier uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-nice.386.mcz
==================== Summary ====================
Name: Collections-nice.386
Author: nice
Time: 1 October 2010, 10:37:30.237 pm
UUID: 14bfeb25-a255-4838-87d4-4c4dccac4b2d
Ancestors: Collections-nice.385
Remove #hashMappedBy: and #identityHashMappedBy:
=============== Diff against Collections-nice.385 ===============
Item was removed:
- ----- Method: Array>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "Answer what my hash would be if oops changed according to map."
-
- self size = 0 ifTrue: [^self hash].
- ^(self first hashMappedBy: map) + (self last hashMappedBy: map)!
Item was removed:
- ----- Method: Interval>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "My hash is independent of my oop."
-
- ^self hash!
Item was removed:
- ----- Method: LookupKey>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "Answer what my hash would be if oops changed according to map."
-
- ^key hashMappedBy: map!
Item was removed:
- ----- Method: LookupKey>>identityHashMappedBy: (in category 'comparing') -----
- identityHashMappedBy: map
- "Answer what my hash would be if oops changed according to map."
-
- ^ key identityHashMappedBy: map!
Item was removed:
- ----- Method: String>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "My hash is independent of my oop."
-
- ^self hash!
Item was removed:
- ----- Method: WeakKeyAssociation>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "Answer what my hash would be if oops changed according to map."
-
- ^self key hashMappedBy: map!
Item was removed:
- ----- Method: WeakKeyAssociation>>identityHashMappedBy: (in category 'comparing') -----
- identityHashMappedBy: map
- "Answer what my hash would be if oops changed according to map."
-
- ^ self key identityHashMappedBy: map!
Nicolas Cellier uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-nice.386.mcz
==================== Summary ====================
Name: Collections-nice.386
Author: nice
Time: 1 October 2010, 10:37:30.237 pm
UUID: 14bfeb25-a255-4838-87d4-4c4dccac4b2d
Ancestors: Collections-nice.385
Remove #hashMappedBy: and #identityHashMappedBy:
=============== Diff against Collections-nice.385 ===============
Item was removed:
- ----- Method: Array>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "Answer what my hash would be if oops changed according to map."
-
- self size = 0 ifTrue: [^self hash].
- ^(self first hashMappedBy: map) + (self last hashMappedBy: map)!
Item was removed:
- ----- Method: Interval>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "My hash is independent of my oop."
-
- ^self hash!
Item was removed:
- ----- Method: LookupKey>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "Answer what my hash would be if oops changed according to map."
-
- ^key hashMappedBy: map!
Item was removed:
- ----- Method: LookupKey>>identityHashMappedBy: (in category 'comparing') -----
- identityHashMappedBy: map
- "Answer what my hash would be if oops changed according to map."
-
- ^ key identityHashMappedBy: map!
Item was removed:
- ----- Method: String>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "My hash is independent of my oop."
-
- ^self hash!
Item was removed:
- ----- Method: WeakKeyAssociation>>hashMappedBy: (in category 'comparing') -----
- hashMappedBy: map
- "Answer what my hash would be if oops changed according to map."
-
- ^self key hashMappedBy: map!
Item was removed:
- ----- Method: WeakKeyAssociation>>identityHashMappedBy: (in category 'comparing') -----
- identityHashMappedBy: map
- "Answer what my hash would be if oops changed according to map."
-
- ^ self key identityHashMappedBy: map!