• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Core Data Fetch Request Template
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Core Data Fetch Request Template
      • From: Colin Doncaster <email@hidden>
  • Prev by Date: Re: 2nd try, tabbing doesn't work properly in NSTableView?
  • Next by Date: Re: copy versus arrayWithArray:
  • Previous by thread: Re: Remounting afp Filesystem
  • Next by thread: Re: Core Data Fetch Request Template
  • Index(es):
    • Date
    • Thread