Re: splitter subviews resize
Re: splitter subviews resize
- Subject: Re: splitter subviews resize
- From: Scott Stevenson <email@hidden>
- Date: Mon, 2 May 2005 20:55:25 -0700
On May 1, 2005, at 5:41 PM, Luc Vandal wrote:
I can't seem to resize subviews in a NSSplitter. It has 2 views and
one of them has 2 views. Here's my code:
NSArray* aViews = [splitter subviews];
NSArray* aSubViews = [[aViews objectAtIndex:0] subviews];
//Resize views
[[aSubViews objectAtIndex:0] setFrameSize:rTreeView.size];
[[aSubViews objectAtIndex:1] setFrameSize:rMainView.size];
[[aViews objectAtIndex:1] setFrameSize:rStatusView.size];
It doesn't do anything so I guess that is not the proper way to
resize views?
A lot of people are using RBSplitView instead of NSSplitView nowadays:
http://www.brockerhoff.net/src/rbs.html
- Scott
_______________________________________________
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