Cocoa Bindings, NSControllers, Source Lists and Multiple Selection

  • Hi all,

    I'm currently trying to implement a Core Data application with what
    amounts to two entities: a Data entity, and a group entity with a
    many->one relationship with the data entity.

    i have two table views set up, a source list which is bound to the
    Group NSArrayController, and a data list which is bound to the Data

    my problem comes from trying to allow multiple source selection. I
    have the data NSArrayController's contentSet bound the Group's
    selection.dataset, and contentArrayForMultipleSelection bound to

    my problem is that I keep getting this exception:
    -[NSCFArray objectAtIndex:]: index (2) beyond bounds (2)

    switching from source to source in the app works fine. multiple
    select works fine, as long as i only add extra sources. when a source
    is deselected, the data table stops updating and then the app crashes
    if you click on data table.

    Does anyone know what i'm doing wrong based off of that, or if not,
    can anyone point me to a sample project that has multiple select
    source lists?


previous month october 2006 next month
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today