Re: Problem using NSSpliter, not able to Regain the size of Shrink Subviews, and how to get the previous changed Splitter Window on Relaunching
Re: Problem using NSSpliter, not able to Regain the size of Shrink Subviews, and how to get the previous changed Splitter Window on Relaunching
- Subject: Re: Problem using NSSpliter, not able to Regain the size of Shrink Subviews, and how to get the previous changed Splitter Window on Relaunching
- From: James Bucanek <email@hidden>
- Date: Mon, 29 Aug 2005 07:45:37 -0700
Sumit Chaudhary wrote on Monday, August 29, 2005:
>
>
>Hi all ,I am facing some problems in NSSplitview,
> Firstly,when I shrinks one window to zero width
> Then again expanding it doesn't expands the subviews
> inside the box,
Are you saying that the NSSplitView itself does re-expand, or are you talking about one of the views within the NSSplitView?
If the former, then you probably need to fix the auto-size settings so the NSSplitView tracks the size of its container. Also, I wouldn't let the window be resized to "zero width" in the first place.
If you're talking about the views inside the split view, there are a number of delegate methods for NSSplitView that control how the divider position changes when the view is resized. Add these methods to your delegate object and you can make divider resize however you want. See the NSSplitView documentation.
>and if I change the splitter location
> and Quit the Application,then again launching should open
> the window with my last changed position of splitter
> at quit time.
If you want to preserve the position of the splitter in a window, you must do that yourself. NSSplitView does not, and cannot, save this information for you. Read the Cocoa documentation for "User Defaults".
--
James Bucanek
_______________________________________________
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