• 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
Re: NSOutlineView assertion failure on collapse
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView assertion failure on collapse


  • Subject: Re: NSOutlineView assertion failure on collapse
  • From: Corbin Dunn <email@hidden>
  • Date: Tue, 16 Dec 2008 16:01:16 -0800


On Dec 16, 2008, at 3:54 PM, Roland Rabien wrote:

In building a small app that reproduces the problem I found the cause of the assertion. It's caused by me being stupid.

The following code reproduces the assertion:

- (void)outlineViewItemWillCollapse:(NSNotification *)notification
{
	id itm = [[notification userInfo] objectForKey:@"NSObject"];
	[tree expandItem:itm];
}

Is this a bug? Or is the assertion valid.

I think the assertion is valid, but it may be possible for us to provide a better assertion. Something along the lines of "expanding item X while it was being collapsed". If you do have a test case, please log it into a bug, so we can either add a better assertion, or document the behavior.


Thank you for taking the time to simplify the problem.
-corbin



What my code was supposed to do is select the item being collapsed if a child was selected. I used my standard select item function which selects an item an expands it, causing the assertion.


Thanks,
Roland

_______________________________________________

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


References: 
 >NSOutlineView assertion failure on collapse (From: "Roland Rabien" <email@hidden>)
 >Re: NSOutlineView assertion failure on collapse (From: Corbin Dunn <email@hidden>)
 >Re: NSOutlineView assertion failure on collapse (From: "Roland Rabien" <email@hidden>)

  • Prev by Date: Re: NSOutlineView assertion failure on collapse
  • Next by Date: UNIX signals
  • Previous by thread: Re: NSOutlineView assertion failure on collapse
  • Next by thread: Main Thread autorelease pool, memory usage question?
  • Index(es):
    • Date
    • Thread