• 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: [Core Data] recordExistsForKey:Value method?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >[Core Data] recordExistsForKey:Value method? (From: Charles Haron <email@hidden>)

  • Prev by Date: Re: NSTableView column order in Interface Builder
  • Next by Date: Re: Strange issue when converting from hex to float
  • Previous by thread: [Core Data] recordExistsForKey:Value method?
  • Next by thread: Re: [Core Data] recordExistsForKey:Value method?
  • Index(es):
    • Date
    • Thread