Re: Need help setting up KVO
Re: Need help setting up KVO
- Subject: Re: Need help setting up KVO
- From: Yevgeniy Goldberg <email@hidden>
- Date: Wed, 21 Mar 2007 20:44:07 -0500
Yes,
The object I need to fetch should correspond to the current selection
in the TableView.
Here is what I'm trying to accomplish:
When the selection in the TableView changes I need to access various
properties of the object that corresponds to the new selection.
The TableView presents 2 columns, where the actual model object has
about 20 fields.
When the user selects a new row in the TableView the application
needs to gain access to all 20 of the model fields and determine
further course of action based in the retrieved values.
What is the best way to get this done?
Best regards,
-Eugene
On Mar 21, 2007, at 8:26 PM, mmalc crawford wrote:
On Mar 21, 2007, at 5:59 PM, Yevgeniy Goldberg wrote:
I need to be able to retrieve a Managed Object from a Managed
Object Context in response to a new selection being made in my
NSTableView
First: why? What are you trying to accomplish?
Is the object you want to fetch related to the selection?
Second: If you really do need to execute a fetch, can you not use
the table view delegate method
tableView:shouldSelectRow:
?
mmalc
_______________________________________________
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