NSArrayController and Auto Rearrange Content

  • I have a subclass of NSTableView that I use that allows the use of the
    return key during a field edit to move to the next row and begin
    editing. This works fine _unless_ the field I'm editing happens to be
    one that NSArrayController is observing and thus causes a
    rearrangeObjects call. When this happens my table view loses focus and
    its' textDidEndEditing: method is never called.

    This happens even if the field in question is no longer the primary
    sort criteria. Turning off the auto rearrange content support of
    NSArrayController fixes it and calls my subclasses textDidEndEditing:
    method.

    Has anyone else seen this and found a way to keep the focus on the
    table view after its' contents are rearranged like this?

    Ashley