Core Data Fetch Request Template
Core Data Fetch Request Template
- Subject: Core Data Fetch Request Template
- From: Niels Meersschaert <email@hidden>
- Date: Sun, 20 Aug 2006 19:11:35 -0400
I'm trying to see how this is possible to do directly in the model.
I have an entity with several attributes. I'd like to create a fetch
request in the model which is based on an expression like @max, @sum,
etc of one of the attributes of an entity. However, whenever I try
doing this in the model, it won't let me compile saying the syntax
can't be parsed. I've tried using the predicate builder & selecting
expression, but no joy as it says it's not the correct format. I am
able to do the same functionality with bindings setting my model key
path to @max.attributeName. How can I configure a fetch request in
the model such that I can get all entities whose attribute is the max
like I can in the binding?
Thanks,
Niels
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden