• 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: NSSplitView can't expand once collapsed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSplitView can't expand once collapsed


  • Subject: Re: NSSplitView can't expand once collapsed
  • From: Nicholas Riley <email@hidden>
  • Date: Sun, 2 Mar 2003 02:23:22 -0600
  • Mail-followup-to: matt neuburg <email@hidden>, email@hidden

On Sat, Mar 01, 2003 at 09:04:37PM -0800, matt neuburg wrote:
> I think I'm seeing a bug, as follows.
>
> I have an NSSplitView with two subviews. If I "collapse" one of the
> subviews programatically (i.e. I set its height to zero, so that the user
> sees only the other subview), then I can expand it again later
> programatically (e.g. I set both subviews to have the same height, and
> adjust subviews).
>
> But if (via the delegate methods) I permit the user to collapse a subview
> by hand, I can't find a way to expand it again programatically. Everything
> I try gives funky results, wrong sizes, drawing glitches, and so on. If
> anyone has counterexample code showing that there is a way to expand a
> subview that the user has collapsed, I'd like to see it. Thanks - m.

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.

  • Prev by Date: Re: NSPoint
  • Next by Date: I discovered a great site for adults: http://www.HappyHug.com
  • Previous by thread: Re: NSPoint
  • Next by thread: I discovered a great site for adults: http://www.HappyHug.com
  • Index(es):
    • Date
    • Thread