[Pharo-project] [COTDC] 27 - DropEvent
Today: DropEvent Comment Of The Day Contest - One Day One Comment Rules: #1: Each day a not commented class is elected. Each day the best comment will be integrated with name of the author(s). #2: If you cannot comment it, deprecate it. Results: http://code.google.com/p/pharo/wiki/CommentOfTheDayContest Laurent
Anyone ? Laurent On Mon, Mar 7, 2011 at 6:38 PM, laurent laffont <laurent.laffont@gmail.com>wrote:
Today: DropEvent
Comment Of The Day Contest - One Day One Comment Rules: #1: Each day a not commented class is elected. Each day the best comment will be integrated with name of the author(s). #2: If you cannot comment it, deprecate it. Results: http://code.google.com/p/pharo/wiki/CommentOfTheDayContest
Laurent
Please .... Laurent On Tue, Mar 8, 2011 at 7:27 PM, laurent laffont <laurent.laffont@gmail.com>wrote:
Anyone ?
Laurent
On Mon, Mar 7, 2011 at 6:38 PM, laurent laffont <laurent.laffont@gmail.com
wrote:
Today: DropEvent
Comment Of The Day Contest - One Day One Comment Rules: #1: Each day a not commented class is elected. Each day the best comment will be integrated with name of the author(s). #2: If you cannot comment it, deprecate it. Results: http://code.google.com/p/pharo/wiki/CommentOfTheDayContest
Laurent
I model the event produced when a hand drops a (grabbed) morph into another morph. I know the position of the drop, the dropped morph and the hand that produced me. See HandMorph>>dropMorph:event: for an example of usage. On Wed, Mar 9, 2011 at 8:07 AM, laurent laffont <laurent.laffont@gmail.com> wrote:
Please .... Laurent On Tue, Mar 8, 2011 at 7:27 PM, laurent laffont <laurent.laffont@gmail.com> wrote:
Anyone ? Laurent
On Mon, Mar 7, 2011 at 6:38 PM, laurent laffont <laurent.laffont@gmail.com> wrote:
Today: Â DropEvent
Comment Of The Day Contest - One Day One Comment Rules: #1: Each day a not commented class is elected. Each day the best comment will be integrated with name of the author(s). #2: If you cannot comment it, deprecate it. Results:Â http://code.google.com/p/pharo/wiki/CommentOfTheDayContest Laurent
Thanks a lot Fernando. Laurent. On Wed, Mar 9, 2011 at 8:38 AM, Fernando Olivero <fernando.olivero@usi.ch>wrote:
I model the event produced when a hand drops a (grabbed) morph into another morph. I know the position of the drop, the dropped morph and the hand that produced me. See HandMorph>>dropMorph:event: for an example of usage.
On Wed, Mar 9, 2011 at 8:07 AM, laurent laffont <laurent.laffont@gmail.com> wrote:
Please .... Laurent On Tue, Mar 8, 2011 at 7:27 PM, laurent laffont < laurent.laffont@gmail.com> wrote:
Anyone ? Laurent
On Mon, Mar 7, 2011 at 6:38 PM, laurent laffont <laurent.laffont@gmail.com> wrote:
Today: DropEvent
Comment Of The Day Contest - One Day One Comment Rules: #1: Each day a not commented class is elected. Each day the best
comment
will be integrated with name of the author(s). #2: If you cannot comment it, deprecate it. Results: http://code.google.com/p/pharo/wiki/CommentOfTheDayContest Laurent
I would add the following: ========================== To handle this event a morph should override one of these methods: #acceptDroppingMorph:event: #justDroppedInto:event: Additionaly, a morph can specify if it wants to accept a dropped morph by overriding #wantsDroppedMorph:event:. Symmetrically, the morph being dropped can specify if it wants to be dropped in another morph by overriding #wantsToBeDroppedInto:. Note that for a successful drop operation both parties need to agree. On Mon, Mar 7, 2011 at 2:38 PM, laurent laffont <laurent.laffont@gmail.com>wrote:
Today: DropEvent
Comment Of The Day Contest - One Day One Comment Rules: #1: Each day a not commented class is elected. Each day the best comment will be integrated with name of the author(s). #2: If you cannot comment it, deprecate it. Results: http://code.google.com/p/pharo/wiki/CommentOfTheDayContest
Laurent
Added. Thanks Ricardo. Laurent. On Wed, Mar 9, 2011 at 7:50 PM, Ricardo Moran <richi.moran@gmail.com> wrote:
I would add the following:
==========================
To handle this event a morph should override one of these methods:
#acceptDroppingMorph:event: #justDroppedInto:event:
Additionaly, a morph can specify if it wants to accept a dropped morph by overriding #wantsDroppedMorph:event:. Symmetrically, the morph being dropped can specify if it wants to be dropped in another morph by overriding #wantsToBeDroppedInto:. Note that for a successful drop operation both parties need to agree.
On Mon, Mar 7, 2011 at 2:38 PM, laurent laffont <laurent.laffont@gmail.com
wrote:
Today: DropEvent
Comment Of The Day Contest - One Day One Comment Rules: #1: Each day a not commented class is elected. Each day the best comment will be integrated with name of the author(s). #2: If you cannot comment it, deprecate it. Results: http://code.google.com/p/pharo/wiki/CommentOfTheDayContest
Laurent
participants (3)
-
Fernando Olivero -
laurent laffont -
Ricardo Moran