Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 924845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:25:34+00:00 2026-05-15T19:25:34+00:00

I am trying a simple application using NSArrayController and cocoa bindings. The application contains

  • 0

I am trying a simple application using NSArrayController and cocoa bindings. The application contains – a table with only one column, two buttons “+, -” to add and delete records, two text fields to show count of records entered and sum of these records.

To allow user to enter numbers only, I have assigned NSNumberFormatter to the NSTextField cell.

The model class: “Transaction” contains only one property: “amount”. I have used @property and @synthesize to declare and define its accessor methods.

So in all, I want to perform following task:

  1. Allowing user to insert, edit, modify numbers in each row in table.
  2. Displaying count of records entered in a text field.
  3. Displaying aggregate of numbers entered in other text field.

I am able to achieve 1st pt. via cocoa bindings but when I tried to implement 2nd and 3rd pt., it is not working as intended.

I did following things for 2nd and 3rd pt.

for 2nd pt….
1. In binding preference of a text field. I am binding value to array controller.
2. Setting model key path as @count.amount

for 3rd pt….
1. In binding preference of a text field. I am binding value to array controller.
2. Setting model key path as @sum.amount

Can anyone suggest me where I may be wrong or some other way to achieve my requirements??

Thanks,

Miraaj

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T19:25:35+00:00Added an answer on May 15, 2026 at 7:25 pm

    this problem is resolved now I did following things to resolve it:

    1. Used @count bound to the arrayController’s “arrangedObjects”
    2. For the sum part: i. Binded value property of text field to transactions
      array controller. ii. Set controller
      key as – arrangedObjects iii. Set
      model key path as – @sum.amount

    cheers…. Miraaj

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make a simple Cocoa application using XCode 3.2.3. In interface builder
I am trying to develop one simple application using Java, Flex and Blazeds. I
I am trying to create a simple blog application using asp.net. I am a
I'm trying to build a simple c application using gcc on aix gcc -I.
I'm trying to launch a very simple android application using OpenStreetMaps-Tools for Android ,
I'm trying to create a very simple chat application in Flex/.Net using FluorineFX but
I am trying to create a simple iPhone application using HTML/JavaScript/CSS with the help
Hello dearest community, I am trying to build a simple AutoUpdate application using VB.NET.
I am trying to implement simple chat application using flex. In it all my
I am trying to make a simple application using Google App Engine. Below is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.