• 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: Jason Rusoff <email@hidden>
  • Date: Wed, 19 Apr 2006 17:19:39 -0700

I tried offsetting the frame of the supeview, but to no avail. I feel like I've tried everything, and I can't get it to draw in a new spot. I don't need a fix, I'd just like to hear from Ali or Mike F that this should be possible. I feel like maybe I'm taking the wrong approach and I need to call dragImageForRowsWithIndexes and then draw that image while the user drags. I'm working on a variant of Sketch and trying to add a new graphic class that is a table view. I'm just wondering if there is something the table view is doing when it gets a mouse down event to lock it's cliprect.
Thanks,
Jason

On Wednesday, April 19, 2006, at 05:14AM, I. Savant <email@hidden> wrote:

>
>   Is the table view enclosed in a scroll view or some other view?
>Table views are usually contained within a scroll view, so moving the
>table's frame wouldn't produce the results you're looking for. Try
>asking the table view for its -enclosingScrollView and move that
>instead.
>
>--
>I.S.
>
>
>On Apr 18, 2006, at 10:21 PM, Jason Rusoff wrote:
>
>> 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:
>> 40gmail.com
>>
>> This email sent to email@hidden
>
>
>
 _______________________________________________
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>)

  • Prev by Date: AsyncSockets connection timeout
  • Next by Date: Cheap replacement for bezierPathWithOvalInRect fill?
  • Previous by thread: Re: Any tricks to dragging an NSTableView?
  • Next by thread: Re: Any tricks to dragging an NSTableView?
  • Index(es):
    • Date
    • Thread