Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.