Code Monkey home page Code Monkey logo

Comments (6)

digital-pers0n avatar digital-pers0n commented on August 30, 2024

Have you tried to bind NSTableColumn programmatically? For cell-based table views it should be something like this:

    NSTableColumn *column = [myTableView tableColumnWithIdentifier: @"column"];
    [column bind: NSValueBinding
        toObject: myArrayController
     withKeyPath: @"arrangedObjects.someKey"
         options: nil];

from libs-gui.

gcasa avatar gcasa commented on August 30, 2024

from libs-gui.

fredkiefer avatar fredkiefer commented on August 30, 2024

The problem here seems to be that the numberOfRows for the NSTableView is not computed from the value binding of the column. I am not sure how this should be done in general, although the simple case with just one column should be easy.

from libs-gui.

gcasa avatar gcasa commented on August 30, 2024

One issue I am running into with this is that it seems to get into infinite recursion. I'm wondering if it might not be possible for you to take a look and see if you can understand what I am doing wrong. :(

from libs-gui.

fredkiefer avatar fredkiefer commented on August 30, 2024

Could you please explain what you are doing and how to reproduce the recursion issue you are seeing?
I am willing to help but first need to understand where you are going. Getting your simple example to work won't be a problem. As I wrote it is the general solution where I don't know how to processed.

from libs-gui.

fredkiefer avatar fredkiefer commented on August 30, 2024

I implemented that simple solution I talked about above. This should resolve this specific issue. If you have further problems, please open a new ticket.

from libs-gui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.