Re: CoreData without bindings
Re: CoreData without bindings
- Subject: Re: CoreData without bindings
- From: Luc Vandal <email@hidden>
- Date: Thu, 23 Aug 2007 11:30:57 -0400
On 23-Aug-07, at 11:17 AM, I. Savant wrote:
On 8/23/07, Luc Vandal <email@hidden> wrote:
Where can I find a sample app (Window-based app if possible) or
tutorial to learn about using Core Data without bindings?
I don't know that there are any besides the copious documentation,
but what do you want to know? If you want to get some instances of an
entity, create a predicate and a fetch request, then execute it and
you've got your results.
If you want to get the value of one of those objects, you ask it
using -valueForKey: or -valueForKeyPath: ... same for setting:
-setValue:forKey: or -setValue:forKeyPath:
This is all covered in the Core Data Programming Guide as well as
the Key-Value Coding Programming Guide.
--
I.S.
Well, the thing is that I have a NSTableView that will display
several types of data. For example, it could display only items bound
to a certain group but could also display items ordered by groups
(where you'd display the group and it's items undeneath, then another
group and so on). I would also have a NSOutlineView that would not
only display data like in the NSTableView, but also other non-data
items, such as a trash item.
Since it's my first Core Data application, I have a hard time
figuring out how I could achieve this with bindings since my
understanding is that the binding would have to change depending on
the data I want to display in the views.
_______________________________________________
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