[TxMt] 'Find in Project' bug
Gerd Knops
gerti at bitart.com
Mon Oct 3 20:51:42 UTC 2005
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
More information about the textmate
mailing list