NSTableView behavior change in Leopard

  • I'm fairly new to Cocoa programming and have just installed Leopard
    and tried one of the small apps I wrote with Tiger. The issue is with
    editing cells in a NSTableView. Under Tiger when I would press return
    in a cell I was editing, it would start editing the cell below it.
    Under Leopard it selects the entire row below it with no cells
    selected for editing. Can anyone point me in the right direction to
    getting the Tiger behavior back under Leopard?

    I tried opening IB and looking around, but didn't see anything
    obvious, but it has changed a lot since Xcode 2.0. I recompiled it
    under Leopard but that doesn't change anything.

    Thanks,
    Dave
  • Look at

    - (void)textDidEndEditing:(NSNotification *)notification
    and in particular the NSTextMovement object, you'll know "how" the
    edition did end (tab, return etc...)

    Good luck

    PS: I hate the new tableview editing system in Leopard, Tiger
    tableview edition was much more intuitive and fluid.

    On 27 oct. 07, at 22:32, <davelist...> wrote:

    >
    > I'm fairly new to Cocoa programming and have just installed Leopard
    > and tried one of the small apps I wrote with Tiger. The issue is
    > with editing cells in a NSTableView. Under Tiger when I would press
    > return in a cell I was editing, it would start editing the cell
    > below it. Under Leopard it selects the entire row below it with no
    > cells selected for editing. Can anyone point me in the right
    > direction to getting the Tiger behavior back under Leopard?
    >
    > I tried opening IB and looking around, but didn't see anything
    > obvious, but it has changed a lot since Xcode 2.0. I recompiled it
    > under Leopard but that doesn't change anything.
    >
    > Thanks,
    > Dave

    Aurélien,
    Objective Decision Team
  • Also, for what it's worth, the old way of ending editing was strange
    and inconsistent with the rest of the OS. Many apps overrode the "edit
    next row" behavior to do what it now does on Leopard. The "edit next
    row" is generally expected in spreadsheet type applications.

    --corbin

    On Oct 28, 2007, at 11:06 PM, Aurélien Hugelé wrote:

    > Look at
    >
    > - (void)textDidEndEditing:(NSNotification *)notification
    > and in particular the NSTextMovement object, you'll know "how" the
    > edition did end (tab, return etc...)
    >
    > Good luck
    >
    > PS: I hate the new tableview editing system in Leopard, Tiger
    > tableview edition was much more intuitive and fluid.
    >
    > On 27 oct. 07, at 22:32, <davelist...> wrote:
    >
    >>
    >> I'm fairly new to Cocoa programming and have just installed Leopard
    >> and tried one of the small apps I wrote with Tiger. The issue is
    >> with editing cells in a NSTableView. Under Tiger when I would press
    >> return in a cell I was editing, it would start editing the cell
    >> below it. Under Leopard it selects the entire row below it with no
    >> cells selected for editing. Can anyone point me in the right
    >> direction to getting the Tiger behavior back under Leopard?
    >>
    >> I tried opening IB and looking around, but didn't see anything
    >> obvious, but it has changed a lot since Xcode 2.0. I recompiled it
    >> under Leopard but that doesn't change anything.
    >>
previous month october 2007 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