Re: Getting a managed object from an NSController from a table view row index
Re: Getting a managed object from an NSController from a table view row index
- Subject: Re: Getting a managed object from an NSController from a table view row index
- From: "R. Matthew Emerson" <email@hidden>
- Date: Thu, 22 Feb 2007 14:43:13 -0500
On Feb 22, 2007, at 2:11 PM, Mike R. Manzano wrote:
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?
How about sending arrangedObjects to the controller and using
proposedRow to index into the returned array?
_______________________________________________
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