Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fetching a unique data set using core data




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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.