When I select a result in the 'Find in Project' panel, then scroll a bit around in the document window, and select the same result again in the 'Find in Project' panel, nothing happens. I have to select another entry first for something to happen.
Gerd
On 03/10/2005, at 22.32, Gerd Knops wrote:
When I select a result in the 'Find in Project' panel, then scroll a bit around in the document window, and select the same result again in the 'Find in Project' panel, nothing happens. I have to select another entry first for something to happen.
I've been bitten by this myself a few times. The problem of course being, that I don't get any notification from the NSOutlineView, when user clicks an already selected item -- but I'll see what I can do to get one :)
On Mon, Oct 3, at 3:36 PM, Allan Odgaard wrote:
On 03/10/2005, at 22.32, Gerd Knops wrote:
When I select a result in the 'Find in Project' panel, then scroll a bit around in the document window, and select the same result again in the 'Find in Project' panel, nothing happens. I have to select another entry first for something to happen.
I've been bitten by this myself a few times. The problem of course being, that I don't get any notification from the NSOutlineView, when user clicks an already selected item -- but I'll see what I can do to get one :)
Deselect it during the original notification, or if that is to early use a timer...
Or if you want to keep the selection, you probably need this in a subclass of NSOutlineView (tested, verbose for clarity):
- (void)mouseDown:(NSEvent *)theEvent { int mouseRow=[self rowAtPoint:[self convertPoint:[theEvent locationInWindow]fromView:nil]];
BOOL mouseDownOnSelectedRow=[self isRowSelected:mouseRow];
if(mouseDownOnSelectedRow) { // Whatever.... }
[super mouseDown:theEvent]; }
Gerd
On 03/10/2005, at 22.51, Gerd Knops wrote:
I've been bitten by this myself a few times. The problem of course being, that I don't get any notification from the NSOutlineView, when user clicks an already selected item -- but I'll see what I can do to get one :)
Deselect it during the original notification, or if that is to early use a timer...
Or if you want to keep the selection
I do, since the “Replace” acts on a (potential) selection.
you probably need this in a subclass of NSOutlineView (tested, verbose for clarity):
Cool, thanks! I added the code, and it's working. But I'm going to bed now, so I'll do a nightly build tomorrow.