Any tricks to dragging an NSTableView?
Any tricks to dragging an NSTableView?
- Subject: Any tricks to dragging an NSTableView?
- From: Jason Rusoff <email@hidden>
- Date: Tue, 18 Apr 2006 19:21:19 -0700
I'm trying to drag an NSTableView around in my layout program, and finding that the table only redraws within it's original cliprect. I subclassed NSTableView and I move the table when my subclass' mousedown method is called. Once that is called I track the mouse and move the table. To move the table I shift the table's frame and call it's diplay method. I'm still an old carbon developer,so there might be something I don't expect going on here. Do I need to do something else to update the area within which the table will draw? Does the tableview class lock out frame changes while the mouse is down? Do I need to call into NSControl trackMouse to get this to work? Any other tips on how best to redraw a table while it is dragged around in a document?
Thanks,
Jason Rusoff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden