twui icon indicating copy to clipboard operation
twui copied to clipboard

text-renderer select issue

Open Naituw opened this issue 13 years ago • 1 comments

(My english is poor , but I'm trying hard to explain this. : ) ) I have a textRenderer in a TUITableViewCell , but it is abnormal when I use mouse drag to select text in it.

The background didn't change when I dragging.

I found TUITableViewCell has override selfs' mouseDragged: method for cell reordering function.

so I add [super mouseDragged:event]; in this method. method seems like below now.

-(void)mouseDragged:(NSEvent *)event {
  // notify our table view of the event
    [super mouseDragged:event];
  [self.tableView __mouseDraggedCell:self offset:_mouseOffset event:event];
}

Is that correct ?

Naituw avatar Aug 22 '11 01:08 Naituw

You can see it in example app , cell is draggable, but you can select text in it only by double click it or drag and mouse up, background color change when you did mouse up.

Naituw avatar Aug 23 '11 00:08 Naituw