Re: NSSplitView can't expand once collapsed
Re: NSSplitView can't expand once collapsed
- Subject: Re: NSSplitView can't expand once collapsed
- From: Michael Johnston <email@hidden>
- Date: Wed, 20 Aug 2003 14:03:14 +0200
I am trying to use the workaround for un-collapsing NSSplitView you
referenced below, but I get a crash unless I retain all the old
collapsed views. Otherwise, there is a bad access:
#0 0x9068ba50 in objc_msgSend
#1 0x90136990 in CFEqual
#2 0x901a9cc4 in __CFSetAddValueAndReturn
#3 0x90140c4c in CFSetGetValueIfPresent
#4 0x97e09e40 in -[NSCFSet member:]
#5 0x97e108dc in -[NSSet containsObject:]
#6 0x930f123c in -[NSNibOutletConnector initWithCoder:]
#7 0x9314b4ac in -[NSView setAutoresizingMask:]
#8 0x9314fca4 in -[NSSplitView _drawRect:withOpaqueAncestor:]
whenever any sort of drawing is required of the splitView and the
thrown-away subview has gone out of scope. It seems
removeFromSuperviewWithoutNeedingDisplay is not actually removing the
view from the private set of collapsed views.
From your code I can't see if you were retaining leftView anywhere, but
even if you were you should have got the above problem after the second
programmatic un-collapse.
Unless I'm missing something????
Cheers,
Michael Johnston
On Sunday, March 2, 2003, at 09:23 AM, Nicholas Riley wrote:
Yup, this is a total mess. Horizontal splits are even worse as you
can't even uncollapse from code after a programmatic collapse. This
is my workaround, though it would need to be adapted for your
purposes.
<http://cocoa.mamasam.com/COCOADEV/2003/02/2/57202.php>
Please file a bug on this issue (I did, #3179051, which is not marked
as a duplicate).
--
=Nicholas Riley <email@hidden> |
<http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.