Getting a managed object from an NSController from a table view row index
Getting a managed object from an NSController from a table view row index
- Subject: Getting a managed object from an NSController from a table view row index
- From: "Mike R. Manzano" <email@hidden>
- Date: Thu, 22 Feb 2007 11:11:47 -0800
I have an NSTableView being fed data from CoreData. My
NSArrayController subclass is also the NSTableView's data source, so
I can provide drag-and-drop functionality.
Within -tableView:validateDrop:proposedRow:proposedDropOperation: I'd
like to get the NSManagedObject represented by proposedRow. Right
now, I am changing the NSArrayController's current selection to the
proposedRow, and then using selectedObjects to get the object I need.
It would seem to me that there is a better way of getting the object
I need without changing the controller's selection. How do you do that?
Thanks!
Mike
_______________________________________________
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