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 protected]
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/rajesh%40vangennep.nl

This email sent to [email protected]


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to