Re: Any tricks to dragging an NSTableView?
Re: Any tricks to dragging an NSTableView?
- Subject: Re: Any tricks to dragging an NSTableView?
- From: Andy Lee <email@hidden>
- Date: Wed, 19 Apr 2006 21:35:09 -0400
On Apr 19, 2006, at 8:19 PM, Jason Rusoff wrote:
I tried offsetting the frame of the supeview, but to no avail.
This doesn't sound like you tried Savant's suggestion, exactly. He
said to try the -enclosingScrollView, not the superview. (This is
assuming the table view is in a scroll view.) When a view is in a
scroll view, there are actually a couple of degrees of nested views.
See the docs for -enclosingScrollView.
Another thought: you may need to call -setNeedsDisplay: with the old
and new frame rectangles of the view. The doc for -setFrame: says
"It neither redisplays the receiver nor marks it as needing display.
You must do this yourself with display or setNeedsDisplay:."
I'm working on a variant of Sketch and trying to add a new graphic
class that is a table view.
Just a heads-up -- I believe the order in which subviews are drawn is
not guaranteed, so you may run into issues with front-to-back
layering of your table view graphics.
--Andy
_______________________________________________
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