• 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: Dropping into One of Several Columns
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: When in the launch cycle does coredata data become available.
  • Next by Date: Re: Relaunching an application
  • Previous by thread: Re: Best way to hook up Font Panel to floater (that isn't first responder)?
  • Next by thread: General MVC and ownership question
  • Index(es):
    • Date
    • Thread