[Q][Connectors] attachmentPointNearest: should be an
integerPoint?
Ned Konz
ned at bike-nomad.com
Thu Apr 10 04:01:45 UTC 2003
On Wednesday 09 April 2003 07:34 pm, Hernan Tylim wrote:
> Hi Ned,
> I found that in Morph>>attachmentPoints the attachment point is
> converted into an integer point:
>
> attachmentPoints
> ^ self attachmentPointSpecs
> collect: [:ea |
> (self perform: ea first withArguments: ea
> allButFirst) asIntegerPoint ]
>
> But in Morph>>attachmentPointNearest: you don't
>
> attachmentPointNearest: aPoint
> ^ (self attachmentPointAndSpecNearest: aPoint) first
>
> Shouldn't both be integer (or float) points?
They should probably all be integer points, though I suspect I convert
them as needed (having been bit by this before).
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|