Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

text-renderer select issue #58

Open
Naituw opened this issue Aug 22, 2011 · 1 comment
Open

text-renderer select issue #58

Naituw opened this issue Aug 22, 2011 · 1 comment

Comments

@Naituw
Copy link

Naituw commented Aug 22, 2011

(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
Copy link
Author

Naituw commented Aug 23, 2011

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant