Fetched Property in XCode Data Model Editor for minimum value

Posted by wal on Stack Overflow See other posts from Stack Overflow or by wal
Published on 2010-04-19T01:37:10Z Indexed on 2010/04/19 1:43 UTC
Read the original article Hit count: 500

Filed under:
|
|

How do I add a Fetched Property in XCode's Data Model Editor for minimum value of one attribute??

My model:

Model

Item (name, note, storedItem)
StoredItem (price, item)
Item 1 ---> N StoredITem (1->N Relationship)

I want that Item has a fetched property named minPrice and its value is the minimum value setted for price in the storedItems.

Example:

Item1 (banana, storedItem1 ... storedItem4, 10)
StoredItem1 (10,item1)
StoredItem2 (15,item1)
StoredItem3 (30,item1)
StoredItem4 (54,item1)

What do I put in Destination?? StoredItem?

Fetched Property in Data Model Editor

And what do I put in Expression??

Expression in Data Model Editor

© Stack Overflow or respective owner

Related posts about xcode

Related posts about fetched-property