• 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: Highlight entire table view for drag and drop?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Highlight entire table view for drag and drop?


  • Subject: Re: Highlight entire table view for drag and drop?
  • From: Corbin Dunn <email@hidden>
  • Date: Wed, 16 Aug 2006 14:32:11 -0700

On Aug 16, 2006, at 2:05 PM, Nick Zitzmann wrote:

On Aug 16, 2006, at 2:39 PM, Brian Amerige wrote:

Is it possible to have my entire NSTableView highlight when I have a drag and drop situation, as opposed to the single black line under each row?

Sort of.

Well, not "sort of". This is actually the way to do it (the black square represents the whole as a drop target). Granted, the black highlight doesn't look particularly good, and that will be addressed. I assume that is what you mean by "sort of"? If not, please elaborate and I'll try to address the issue.


How to do it is to use setDropRow, copied from the header:

/* To be used from validateDrop: if you wish to "re-target" the proposed drop. To specify a drop on the second row, one would specify row=2, and op=NSTableViewDropOn. To specify a drop below the last row, one would specify row=[tv numberOfRows], and op=NSTableViewDropAbove. To specify a drop on the entire tableview, one would specify row=-1 and op=NSTableViewDropOn.
*/
- (void)setDropRow:(NSInteger)row dropOperation: (NSTableViewDropOperation)op;


-corbin


_______________________________________________ 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
References: 
 >Highlight entire table view for drag and drop? (From: Brian Amerige <email@hidden>)
 >Re: Highlight entire table view for drag and drop? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: models for selling software
  • Next by Date: Added attributes to entity -> Moved values: Why?
  • Previous by thread: Re: Highlight entire table view for drag and drop?
  • Next by thread: [ANN] OpenGL Bootcamp at Big Nerd Ranch, Sept 11 - 15
  • Index(es):
    • Date
    • Thread