Re: Request for help in getting table View to reflect fetch results
Re: Request for help in getting table View to reflect fetch results
- Subject: Re: Request for help in getting table View to reflect fetch results
- From: mmalc crawford <email@hidden>
- Date: Sun, 15 Jul 2007 14:23:21 -0700
On Jul 15, 2007, at 2:11 PM, Ernest Schaal wrote:
It appears that the present Mac documentation makes it easy for the
novice to get started in developing a data base, and you can easily
make a quick-and-dirty one on the fly, but such a database lacks many
features (like fetch requests that modify the table view). To do more,
you really have to know the code well enough to make you own
controllers from scratch rather than use the ones made by the
control-drag from the model to the interface window.
It's not clear why you make this statement. Per a previous reply,
this is typically not the case.
What are you doing that is different from a typical Core Data
application?
On Jul 14, 2007, at 6:46 PM, Ernest Schaal wrote:
I haven't figured out how to apply that fetch to a table view.
If you're using a standard table view data source, you simply
implement the relevant data source methods then after the fetch tell
the table view to reloadData.
If you're using an array controller and bindings, you change your
array in a KVO-compliant manner and the table view will update
automatically, or you can set the array directly as the content. Or
it may be that you don't need to write any code at all (your fetch
looks fairly straightforward...).
mmalc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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