• 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
Working if Cocoa Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Working if Cocoa Core Data


  • Subject: Working if Cocoa Core Data
  • From: "Thiago Rossi" <email@hidden>
  • Date: Wed, 18 Jun 2008 15:33:57 -0300

Hello, guys!

I've been studying the Cocoa Core Data and I have a question about it. I
went through a blog tutorial I got at the Internet and I build my first
Cocoa Application. So I decided to do something by my own: a financial
controller.

To make it simple, I used Account and Transaction objects with an
one-to-many relationship. Their properties are:

*Account*
- name

*Transaction*
- date
- description
- value
- amount

*Amount* is an calculated field and it depends on the previous transactions.
I don't know how to do it! It is not a value I can save on database, for
example, because it changes all the time (I guess I have to mark the
transient field at Core Data).

The view would seem something like this:
Date            Value     Amount
01/01/2008    +450.00    +450.00
01/02/2008    +100.00    +550.00
01/02/2008     -50.00    +500.00

If I add a transaction between the first and the second after some days, it
would show this (changing all the amount values, except from the ones
before):
Date            Value     Amount
01/01/2008    +450.00    +450.00
01/02/2008    +200.00    +650.00
01/02/2008    +100.00    +750.00
01/02/2008     -50.00    +700.00

Can anyone please help me?

I'm not used to this kind of programming like I wrote an entire blog without
any code line. I guss I have to write some code now, but I don't know how,
when and if I'm not abusing on you, which one.

Thank you!

Thiago.
*- I'm a Java programmer who wants to migrate to ObjC/Cocoa.*
_______________________________________________

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

  • Follow-Ups:
    • Re: Working if Cocoa Core Data
      • From: "Hamish Allan" <email@hidden>
    • Re: Working if Cocoa Core Data
      • From: "I. Savant" <email@hidden>
    • Re: Working if Cocoa Core Data
      • From: Hal Mueller <email@hidden>
  • Prev by Date: Re: Swapping splitview subviews
  • Next by Date: Trying to get hang of PDO
  • Previous by thread: Re: NSKeyedArchiver finishEncoding takes forever
  • Next by thread: Re: Working if Cocoa Core Data
  • Index(es):
    • Date
    • Thread