Re: [Core Data] recordExistsForKey:Value method?
Re: [Core Data] recordExistsForKey:Value method?
- Subject: Re: [Core Data] recordExistsForKey:Value method?
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 22 Jul 2005 15:04:16 -0400
on 2005-07-22 2:24 PM, Charles Haron at email@hidden wrote:
> Does Core Data provide a mechanism for checking the existence of a given
> record without performing a fetch?
>
> For example, a method that returns "true" if a record containing a given
> attribute value exists.
>
> Something like: - (BOOL) recordExistsForKey:Value
Somewhere in the Core Data documentation, you'll find sample code showing
you exactly how to determine whether a record exists. If I recall correctly,
you're expected to perform a fetch with an appropriate predicate.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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