Re: A question about core data.
Re: A question about core data.
- Subject: Re: A question about core data.
- From: Michael Swan <email@hidden>
- Date: Thu, 12 Apr 2012 14:19:59 -0400
mparchet,
Let Core Data do the heavy lifting for you, that is what it is there for.
If you use an array controller with your UI and set up bindings you can get away with out writing any code to make the base of your UI work.
If I remember correctly you can send your own SQL queries but you can do _almost_ anything you need to do easier through Core Data so you should really question anytime you start to make your own queries.
If you need some guidance on using Core Data with a financial related app check out my blog @ http:www.theMikeSwan/blog, I wrote a sample app for tracking expenses that may be of assistance to you.
As for fetch requests, they are really useful for doing searches of the data.
Above all keep in mind that Core Data is NOT a database, it is a persistence framework. If you think of it as a database you will just make your life harder.
Hope this helps,
Mike Swan
ETCP Certified Entertainment Electrician
http://www.theMikeSwan.com
"The Ego is the little self that pretends to be the only self and speaks so loudly that the still, small voice of the Greater Self, whose whisperings come from within the Soul, are rarely heard - unless we learn to listen."
On 12 Apr, 2012, at 2:23 AM, email@hidden wrote:
> Message: 12
> Date: Wed, 11 Apr 2012 00:18:12 +0200
> From: Michael Parchet <email@hidden>
> To: email@hidden
> Subject: A question about core data.
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hello,
>
> I have started a billing project with coco and core data. In my project,
> I have a form that the user must fill to add a customer (for example)
> but it seems that core data have only an array controller with a manage
> object context to manage the core data database. Is it true ?
>
> In some language (such as java), I can send some sql query to the
> database. such as (insert into Customeer etc..), I can also send a set
> of query (transaction).
>
> On the apple website, in a guide, I have reed an information about fetch
> request How it work ? Can the fetch request help me in my project ?
>
> Tanks for your help ?
>
> Best regards
>
> mparchet
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden