Re: splitter and views resize problems
Re: splitter and views resize problems
- Subject: Re: splitter and views resize problems
- From: Nicko van Someren <email@hidden>
- Date: Wed, 13 Jul 2005 15:43:49 +0100
On 7/13/05, Luc Vandal <email@hidden> wrote:
In my main window, I have 3 views distributed like this:
A | B
____
CCC
A = NSOutlineView
B & C = NSTextView
One thing I don't understand is that there seems to be more than 3
views overall. When I run this code:
NSArray* aViews = [splitter subviews];
NSArray* aSubViews = [[aViews objectAtIndex:0] subviews];
int nCount = [aViews count]; //returns 2, which seems ok
nCount = [aSubViews count]; //returns 5, when I guess that it should
return 2 as well?
I'm trying to resize those views on the fly but really don't know how!
Have you checked that [aViews objectAtIndex:0] is the second
NSSplitView not the text view? The text view is wrapped up in an
NSScrollView, which can have five subviews if the scroll bars are all
showing.
Cheers,
Nicko
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden