• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTreeController/NSBrowser Crash (with link to example project that demonstrates the issue)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Very strange problem about "setString" method of NSTextView.
  • Next by Date: Re: Storing licence info (other than NSUserDefaults)
  • Previous by thread: Re: Very strange problem about "setString" method of NSTextView.
  • Next by thread: NSTextField setTextColor: not working as expected
  • Index(es):
    • Date
    • Thread