• 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
Dragging from a NSTable bound to NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dragging from a NSTable bound to NSArrayController


  • Subject: Dragging from a NSTable bound to NSArrayController
  • From: "David Brennan" <email@hidden>
  • Date: Thu, 8 Mar 2007 18:01:09 +0000

Hi,

I have setup up a NSTable, that is bound to an NSArrayController. When
I select a number of items in the table. Then do a drag the function

- (BOOL)tableView:(NSTableView *)aTableView
writeRowsWithIndexes:(NSIndexSet *)rowIndexes
	 toPasteboard:(NSPasteboard*)pboard

gets called, but my problem is that if the user has sorted the items
in the table, the rowIndexes that get passed to tableView:
writeRowsWithIndexes: toPasteboard: do not match to the correct items
in the NSArrayController.

How do I find the correct items.

Thanks,
Dave.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: Dragging from a NSTable bound to NSArrayController
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Re: subentity key undefined after merging models
  • Next by Date: Re: alloc init thread safe?
  • Previous by thread: Re: subentity key undefined after merging models
  • Next by thread: Re: Dragging from a NSTable bound to NSArrayController
  • Index(es):
    • Date
    • Thread