Re: Any tricks to dragging an NSTableView?
Re: Any tricks to dragging an NSTableView?
- Subject: Re: Any tricks to dragging an NSTableView?
- From: Scott Anguish <email@hidden>
- Date: Thu, 20 Apr 2006 00:52:21 -0400
On Apr 19, 2006, at 11:59 PM, Sherm Pendley wrote:
Obviously, the order in which subviews of the table view would be
drawn is undefined, but wouldn't a Sketch-like app define its own -
drawRect: for its top-level canvas view, which would iterate
through and draw the table view and its siblings in a known order?
well, yes. But a sketch-like app wouldn't use views as the items in
its display list.
Views are a heavyweight object and just aren't suited to this use
(Avoid the Overuse of Views - View Programming Guide for Cocoa
<http://developer.apple.com/documentation/Cocoa/Conceptual/
CocoaViewsGuide/Optimizing/chapter_7_section_2.html#//apple_ref/doc/
uid/TP40002978-CH11-112116>)
if you need to drag a table-view around, you're better off capturing
an NSImage of the view and dragging that until the user drops it.
then move the table view.
_______________________________________________
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