• 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
Can I sort across a relation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can I sort across a relation?


  • Subject: Can I sort across a relation?
  • From: Todd Freese <email@hidden>
  • Date: Thu, 26 Oct 2006 18:22:18 -0500

Is it possible to have core data sort across a relation? I have two entities like this: Clip--->SourceListLink

I want to sort Clips based on an attribute in SourceListLink. The following does not work:

NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"sourceListLinks.sortKey" ascending:YES];
[fetchRequest setSortDescriptors:[NSArray arrayWithObject:sortDescriptor]];


sourceListLinks is a defined relationship between the Clip entity and the SourceListLink entity.

Thanks in advance.

Todd
_______________________________________________
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


  • Prev by Date: Re: Re: Keys down while dragging
  • Next by Date: Re: (RS) hi-res clock function
  • Previous by thread: Re: Seeking debugging advice
  • Next by thread: new Docoa (AppKiDo alternative)
  • Index(es):
    • Date
    • Thread