Re: Accepting drops on a tableview's tableheader
Re: Accepting drops on a tableview's tableheader
- Subject: Re: Accepting drops on a tableview's tableheader
- From: Corbin Dunn <email@hidden>
- Date: Fri, 20 Feb 2009 08:45:09 -0800
Yes; the *only* way to do this is with subclassing the header and
implementing the drag and drop methods.
FWIW, that Finder behavior is very subtle.
corbin
On Feb 20, 2009, at 8:38 AM, rajesh wrote:
One way could be
sublass your headerView and try to handle drag into the view
(NSTableHeaderView is subClass of NSView....)
If column is what you need then you can retrieve it by - (NSInteger)
columnAtPoint:(NSPoint)aPoint
I think it should be pretty much it and you can always now what
table is involved with your custom HeaderView by
- (NSTableView *)tableView to trigger any changes e.g
reload.....
~Rajesh
On Feb 20, 2009, at 5:28 PM, Sean McBride wrote:
Hi all,
How can I accept drops onto my NSTableView/NSOutlineView's
NSTableHeaderView?
I have drag and drop working in general, but
tableView:validateDrop:proposedRow:proposedDropOperation: is never
called if I hover over the tableheader.
(I want to follow Finder's behaviour of accepting drops on the
header as
a way to move deeper items to the root.)
Thanks,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden