Re: Calculated Field examples for Core Data
Re: Calculated Field examples for Core Data
- Subject: Re: Calculated Field examples for Core Data
- From: Clayton Leitch <email@hidden>
- Date: Sat, 13 Aug 2005 07:49:49 -0400
I am using cocoa bindings to display everything now. As I said
everything works perfectly and I use Core Data to manage the data
store. The first thing I tried was to look at if there was some way
to access the data values in the various fields. This led me to the
custom accessor page on Apple's site. However, when I attempted to
get value for key on the various elements of the managed objects in
the core data structure, I was never able to have the value appear.
Next I considered that I needed a controller object to retrieve the
values. I was unsuccessful there too. Then I thought if there was
an example available that showed this type of operation, that might
give me an idea. To google I went. I found several code fragments
but nothing that represented a complete project. How do I access the
elements of the managed objects with value for key? A simple
complete project that showed how this worked is all I need.
On Aug 13, 2005, at 2:27 AM, mmalcolm crawford wrote:
On Aug 12, 2005, at 4:24 PM, Clayton Leitch wrote:
I have everything working in a simple contract tracking program
that uses core data. There are two entities, contract and
invoiceData. There is a one to many relationship between contract
and invoiceData, one contract to many invoices. Contracts are
generally for one year and there will be one invoice for each
month. The data on the invoice is the actual bill amount, the
expected bill amount, that was predicted at the start of the
contract. I would like to calculate the difference between the
amounts automatically and display. Secondly, I would like to
calculate the total of all invoices received against the contract,
to date and display it. Downloadable code example would be helpful.
This is not a Core Data issue.
How would you approach this if you were not using Core Data? What
strategies have you tried so far? What mechanism are you using to
display your data (bindings?)?
mmalc
<http://www.catb.org/~esr/faqs/smart-questions.html>
_______________________________________________
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
_______________________________________________
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