NSTableView editing problem...

  • Hi

    I use in IB a table view with 2 columns. Each column is connected to
    an array controller.
    Under the table view, i have 2 text fields. One per column and each
    are connected to the array controller like the columns of table view.

    So, if I use my program, I press the plus button. A new Record will
    be inserted in the table view and I can set a text in the text fields.
    I can set a text directly in the table view cell too. No problem at
    this time.

    I can insert more than one record by pressing a few times on the add
    button. The table view will get the new records. I can set a text on
    each text fields.
    But ! If I set the text in the table view dirrectly and I use the TAB
    key to acces to the next cell, AND I go on the first row and after
    the second, .... I will get an exeption like this from the table view
    when I save the content :

    2006-10-11 16:27:26.564 ...[5146] *** Assertion failure in -
    [NSTextFieldCell _objectValue:forString:errorDescription:],
    AppKit.subproj/NSCell.m:1298
    2006-10-11 16:27:26.565 ...[5146] Exception raised during posting of
    notification.  Ignored.  exception: Invalid parameter not satisfying:
    aString != nil

    The table view as the sensation that not all cell are filled. But all
    cell contain a value.
    If I do the same, but I access the cell only per mouse click, it will
    work perfectly !!!

    Can some body help me ?

    Thanks
    Marc
  • Hi

    I use in IB a table view with 2 columns. Each column is connected to
    an array controller via the binding.
    Under the table view, i have 2 text fields. One per column and each
    are connected to the array controller like the columns of table view.

    So, if I use my program, I press the plus button. A new Record will
    be inserted in the table view and I can set a text in the text fields.
    I can set a text directly in the table view cell too. No problem at
    this time.

    I can insert more than one record by pressing a few times on the add
    button. The table view will get the new records. I can set a text on
    each text fields.
    But ! If I set the text in the table view dirrectly and I use the TAB
    key to acces to the next cell, AND I go on the first row and after
    the second, .... I will get an exeption like this from the table view
    when I save the content :

    2006-10-11 16:27:26.564 ...[5146] *** Assertion failure in -
    [NSTextFieldCell _objectValue:forString:errorDescription:],
    AppKit.subproj/NSCell.m:1298
    2006-10-11 16:27:26.565 ...[5146] Exception raised during posting of
    notification.  Ignored.  exception: Invalid parameter not satisfying:
    aString != nil

    The table view as the sensation that not all cell are filled. But all
    cell contain a value.
    If I do the same, but I access the cell only per mouse click, it will
    work perfectly !!!

    Is that a bug ?
    Can some body help me ?

    Thanks
    Marc
previous month october 2006 next month
MTWTFSS
            1
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