• 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
Re: fetching a unique data set using core data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fetching a unique data set using core data


  • Subject: Re: fetching a unique data set using core data
  • From: Andreas Mayer <email@hidden>
  • Date: Sat, 13 Aug 2005 20:45:50 +0200


Am 13.08.2005 um 20:14 Uhr schrieb mmalcolm crawford:

then you can use array/set operators on the result, such as @distinctUnionOfObjects:

Speaking of which: Are those array operators supposed to throw an exception if there's an object missing?


Take this example from the page you quoted above:

[savingsAccount valueForKeyPath:@”email@hidden”]

Now, say, one transaction does not have a payee assigned. In that case @distinctUnionOfObjects does seem to throw an exception:

*** -[NSCFSet addObject:]: attempt to insert nil

What I would have expected instead is that I get back an array of all existing objects.

Do I need to loop through the transactions myself or is there some other way around this problem?


Andreas _______________________________________________ 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
References: 
 >fetching a unique data set using core data (From: Alan Donsky <email@hidden>)
 >Re: fetching a unique data set using core data (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: CoreData "Could Not Merge Changes"
  • Next by Date: Re: Screen snapshot example code posted
  • Previous by thread: Re: fetching a unique data set using core data
  • Next by thread: What is an NSNextStepFrame?
  • Index(es):
    • Date
    • Thread