Re: Simply read a value when using core data ?
Re: Simply read a value when using core data ?
- Subject: Re: Simply read a value when using core data ?
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 26 Sep 2005 09:18:57 -0400
- Thread-topic: Simply read a value when using core data ?
on 2005-09-26 6:40 AM, Kubernan from 10191 Technologies at
email@hidden wrote:
> What i want to do is do not call the sheet if the first name and the
> last name
> was already filled (for example in a previous use of this document).
>
> So my question is how to know - programmatically - the content value
> of my people entity ?
> I don't know if i should use the controller or something else (i.e.
> core data APIs).
The Core Data documentation contains an example code snippet for determining
whether an object with a particular value exists. Basically, you issue a
fetch request with an appropriate predicate. I don't have the URL handy, but
you can find it with some judicious searching.
--
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