NSTreeController/NSBrowser Crash (with link to example project that demonstrates the issue)

  • I have written a very simple app that populates an NSBrowser bound to
    an NSTreeController with a tree of NSTreeNode objects that is 2 levels
    deep.  The app can be made to crash (at least on my system) by
    grabbing the bottom right corner of the window and pulling left to
    narrow the window as far as possible (you may need to expand and
    contract a few times to trigger the crash).

    Given the linked code (also summarized below) what could be causing
    this crash?  If anyone has time to perhaps build this project and have
    a look, I would be very grateful.

    Here are the key lines of code, without which neither the data will
    show up in the NSBrowser, nor will it crash:

        [treeController bind:@"contentArray" toObject:self
    withKeyPath:@"rootArray" options:nil];
        [browser bind:@"content" toObject:treeController
    withKeyPath:@"arrangedObjects" options:nil];

    The full xcode project is avaliable here: http://loglibrary.com:3000/treetest.tar.gz

    Thanks,
    -Adam
previous month december 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