NSTreeController/NSBrowser Crash (with link to example project that demonstrates the issue)
NSTreeController/NSBrowser Crash (with link to example project that demonstrates the issue)
- Subject: NSTreeController/NSBrowser Crash (with link to example project that demonstrates the issue)
- From: Adam Thorsen <email@hidden>
- Date: Sun, 30 Dec 2007 21:08:50 -0700
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden