• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Any tricks to dragging an NSTableView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Any tricks to dragging an NSTableView?
      • From: Andy Lee <email@hidden>
References: 
 >Any tricks to dragging an NSTableView? (From: Jason Rusoff <email@hidden>)
 >Re: Any tricks to dragging an NSTableView? (From: "I. Savant" <email@hidden>)
 >Re: Any tricks to dragging an NSTableView? (From: Jason Rusoff <email@hidden>)
 >Re: Any tricks to dragging an NSTableView? (From: Andy Lee <email@hidden>)
 >Re: Any tricks to dragging an NSTableView? (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: Getting the info from the Apple documentation -- Re: New Cocoa w/ CoreData book
  • Next by Date: Re: Saving Issue with Core Data
  • Previous by thread: Re: Any tricks to dragging an NSTableView?
  • Next by thread: Re: Any tricks to dragging an NSTableView?
  • Index(es):
    • Date
    • Thread