Re: NSSplitView size, how to change ?!
Re: NSSplitView size, how to change ?!
- Subject: Re: NSSplitView size, how to change ?!
- From: Vince DeMarco <email@hidden>
- Date: Mon, 21 Jan 2002 15:58:13 -0800
On Monday, January 21, 2002, at 01:40 PM, Gore wrote:
On Monday, January 21, 2002, at 10:59 , Vince DeMarco wrote:
On Monday, January 21, 2002, at 10:50 AM, Gore wrote:
I've been looking for a method to change the poition/size of the
splitview position, is there a method like setSplitViewSize: or is
there something special I'll have to do !?
You have to set the frame of one of the views (or more) and the split
view will adjust.
vince
hmmm, I tryed that with one view in the splitview, and it didn't work, I
tryed to call setFrame: to one of the splitview views (2 views) but
nothing happend, did I do something wrong ?!
I just check out some internal code (which i can't send to you sorry) that
figures out the percentage that each view occupies (stores this in the
defaults) then on app startup, uses this value to reset the frame of each
of the views in the splitview and then tells the splitview to redraw
itself. ([splitview setNeedsDisplay:])
mail does this and it works find.
Try doing both views.
vince