• 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
Getting a managed object from an NSController from a table view row index
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread 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


  • Follow-Ups:
    • Re: Getting a managed object from an NSController from a table view row index
      • From: "R. Matthew Emerson" <email@hidden>
  • Prev by Date: Vertically aligning text in a table while preserving fontSize bindings
  • Next by Date: Re: Getting a managed object from an NSController from a table view row index
  • Previous by thread: Re: Vertically aligning text in a table while preserving fontSize bindings
  • Next by thread: Re: Getting a managed object from an NSController from a table view row index
  • Index(es):
    • Date
    • Thread