For the icon-path (that rows of icons over the browser) of Xws, I'm using
a NSMatrix in the NSRadioModeMatrix mode.

To start dnd from a selected cell I've used: 

  - (BOOL)trackMouse:(NSEvent *)theEvent 
              inRect:(NSRect)cellFrame 
              ofView:(NSView *)controlView 
        untilMouseUp:(BOOL)untilMouseUp 

But, updating from cvs, I noticed that, now, only the NSTrackModeMatrix
and the NSHighlightModeMatrix modes let me use this method.

>From the Apple documentation:
"
NSTrackModeMatrix:
The NSCells are asked to track the mouse with 
trackMouse:inRect:ofView:untilMouseUp: whenever the mouse is inside  their
bounds. No highlighting is performed.

NSHighlightModeMatrix:
An NSCell is highlighted before it's asked to track the mouse, then
unhighlighted when it's done tracking.

NSRadioModeMatrix:
Selects no more than one NSCell at a time. Any time an NSCell is selected,
the previously selected NSCell is unselected.

NSListModeMatrix:
NSCells are highlighted, but don't track the mouse.
"

It seems that only in the NSListModeMatrix mode, the cell doesn't track
the mouse!

But, if the last changes to NSMatrix are correct, how can I intercept the
first mouse-down in a cell to test if it is the start of a dragging,
before let it send its action?

Please help me because this problem is stopping all my work.

Thank you

        Enrico

Reply via email to