• 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
Derived count
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Derived count


  • Subject: Derived count
  • From: Lachlan Deck <email@hidden>
  • Date: Fri, 9 Feb 2007 10:32:39 +1100

Hi there,

For some time now we've been using the technique of defining a non- class property in the model called "derivedCount" with it's definition as count(*).

Works great. e.g.,

EOEditingContext ec; // assume exists
EOFetchSpecification fetchSpec; // assume exists
NSArray results;

fetchSpec.setRawRowKeyPaths( new NSArray( "derivedCount" ) );
results = ec.objectsWithFetchSpecification( rawFetchspecification );

My question is, would this work equally well with the shared editing context using the readerLocking?

with regards,
--

Lachlan Deck



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: D2W How do I format my dates globally?
  • Next by Date: Help please: ClassCastException during appendToResponse
  • Previous by thread: Re: D2W How do I format my dates globally?
  • Next by thread: Help please: ClassCastException during appendToResponse
  • Index(es):
    • Date
    • Thread