Re: Dropping into One of Several Columns
Re: Dropping into One of Several Columns
- Subject: Re: Dropping into One of Several Columns
- From: Benjamin Stiglitz <email@hidden>
- Date: Mon, 3 Mar 2008 17:19:40 -0800
I've got an NSTableView with multiple text column and I'd like to be
able to control where a drop of some text goes based on in which
column the user is making the drop. Since the validateDrop: member
function of the table's data source does not provide a 'proposed
column', I'm going to guess that I'm going to have to (in -
[NSTableDataSource
tableView:validateDrop:proposedRow:proposedDropOperation:]) grab the
mouse position and figure out the column over which the user is
hovering, validate the drop destination, and cache the column number
for later use (in -[NSTableDataSource
tableView:acceptDrop:row:dropOperation:]). It also looks like I'll
have to do my own highlighting if I want only the specific column to
respond to the drop.
Before I launch into what looks like a bit of code, I would
appreciate it if someone could confirm this approach or else tell me
I'm missing something rather obvious.
You’re exactly correct—you’ll have to roll your own here. Please file
a bug if you’d like to see this in the kit.
-Ben_______________________________________________
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