• 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: Cocoa newbie needs direction
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa newbie needs direction


  • Subject: Re: Cocoa newbie needs direction
  • From: Anthony Magee <email@hidden>
  • Date: Sun, 3 Sep 2006 13:20:30 -0500


On Sep 3, 2006, at 1:07 PM, Mike Abdullah wrote:

You certainly can.  However, I think we need a couple more details :)

As far as I can make out, you have some kind of arrangement like this

 ----------
| +3.23
| -2.43
| -4.51
| +94.45		<-- This is the NSTableView right?
| -324.53
| -1.28
 -----------

======= <- And then you want an NSTextField down here that shows the current balance of the transactions above

Is this right?

Almost, but more like this

Deposit  |  Debit
----------------------
10.00      |
                | 23.45
100.00   |

So there are two distinct columns (all values are positive) and only one can be occupied.


Mike.

On 3 Sep 2006, at 19:00, Anthony Magee wrote:

Hello list,

I am trying to learn Cocoa from a Java background. Currently reading Hillegass's "Cocoa Programming" but I need some pointers that he doesn't specifically mention.

I am writing a simple ledger program that relies on an NSTableView for display. Via the chapter on binding I am using an NSArrayController to take care of all the data management. My dilemma is that I need to keep a single text field updated with the current balance of an account. Can I do this using bindings also, or should I use notification? I'm really at a loss of where to go from here. TIA


Anthony Magee 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:
40gmail.com


This email sent to email@hidden


Anthony Magee 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


References: 
 >Cocoa newbie needs direction (From: Anthony Magee <email@hidden>)

  • Prev by Date: Re: Tab and Enter in NSTextView
  • Next by Date: Re: Tab and Enter in NSTextView
  • Previous by thread: Re: Cocoa newbie needs direction
  • Next by thread: Re: Cocoa newbie needs direction
  • Index(es):
    • Date
    • Thread