• 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 complete madness - SOLVED
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSplitView complete madness - SOLVED


  • Subject: Re: NSSplitView complete madness - SOLVED
  • From: Alan Nilsson <email@hidden>
  • Date: Fri, 13 Dec 2002 15:42:55 -0800

on 12/13/02 1:05 PM, Alan Nilsson at email@hidden wrote:

Solved with a NSView subclass


> OK I have a window which contains two split views, one inside of the other.
> The idea is to get a tall tree like view on the left side of the window then
> 2 tableviews stacked on the right side. (like entourage)
>
> This is not a problem, I created on splitview, put a tableview and another
> splitview inside of it.
>
> The problem is that one of the tableviews in the second (horizintal)
> splitview has two buttons associated with it and need to track with the
> tableview when the splitview is adjusted.
>
> So in an attempt to do this, in the second splitview I added one tableview
> (the one w/o buttons) then added a custom view, then inside of the custom
> view I added 2 buttons and a tableview.
>
> Here is the problem: In a completely random pattern, sometimes the
> tableview shows up correctly, other times, the tableview is clipped so I
> don't see the header or the left column, while other times I see the whole
> tableview but it is compressed into half the width of the customview.
>
> This happens both when I run the app and when I *preview* it in IB.
>
> Both buttons draw correctly and in the correct locations.
>
> The following is what I have in awakeFromNib:
>
> [typesView setVertical:YES];
> [typesView adjustSubviews];
> [typesView setNeedsDisplay:YES];
> [detailView adjustSubviews];
> [detailView setNeedsDisplay:YES];
>
> So what am I not understanding about the view hierarchy that would cause
> this?
>
> Any idea's suggestions would be appreciated.
>
> Alan
> _______________________________________________
> 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.

References: 
 >NSSplitView complete madness (From: Alan Nilsson <email@hidden>)

  • Prev by Date: ANN: TFM 1.1, doc & src code searching, view tool
  • Next by Date: Re: ANN: TFM 1.1, doc & src code searching, view tool
  • Previous by thread: NSSplitView complete madness
  • Next by thread: ANN: TFM 1.1, doc & src code searching, view tool
  • Index(es):
    • Date
    • Thread