• 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
Retrieving the distinct values of an attribute for a Core Data entity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Retrieving the distinct values of an attribute for a Core Data entity


  • Subject: Retrieving the distinct values of an attribute for a Core Data entity
  • From: "Jon C. Munson II" <email@hidden>
  • Date: Fri, 13 Feb 2009 13:25:30 -0500
  • Organization: JTA Enterprises LLC

Namaste!

I'm hoping someone can point me in the right direction for the following.
I'm not sure what search terms to use, so I was blindly groping around
before I wrote the list.

I need to retrieve the distinct values of a given attribute in a Core Data
entity.

In SQL, this is trivial:  "SELECT column FROM table GROUP BY column;"

How is this accomplished in the Core Data context?

Many thanks in advance! 

Peace, Love, and Light,

/s/ Jon C. Munson II



_______________________________________________

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

  • Follow-Ups:
    • Re: Retrieving the distinct values of an attribute for a Core Data entity
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: NSCollectionView inside an NSSplitView?
  • Next by Date: Re: Window Max Zoom Size
  • Previous by thread: Re: NSCollectionView inside an NSSplitView?
  • Next by thread: Re: Retrieving the distinct values of an attribute for a Core Data entity
  • Index(es):
    • Date
    • Thread