Re: [Core Data] recordExistsForKey:Value method?
Re: [Core Data] recordExistsForKey:Value method?
- Subject: Re: [Core Data] recordExistsForKey:Value method?
- From: Charilaos Skiadas <email@hidden>
- Date: Fri, 22 Jul 2005 13:36:28 -0500
On Jul 22, 2005, at 1:24 PM, Charles Haron wrote:
Hello,
Does Core Data provide a mechanism for checking the existence of a
given record without performing a fetch?
From http://developer.apple.com/documentation/Cocoa/Conceptual/
CoreData/index.html?http://developer.apple.com/documentation/Cocoa/
Conceptual/CoreData/Articles/cdTroubleshooting.html
"To retrieve data using a managed object context, you create a fetch
request."
Any particular reason you do not want to use fetch requests?
For example, a method that returns "true" if a record containing a
given attribute value exists.
Something like: - (BOOL) recordExistsForKey:Value
You can write your own....
Thanks,
Charles
Haris
_______________________________________________
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