Re: saving NSSplitView sub-frame positions
Re: saving NSSplitView sub-frame positions
- Subject: Re: saving NSSplitView sub-frame positions
- From: Greg Titus <email@hidden>
- Date: Sat, 27 Apr 2002 14:35:35 -0700
Hi Chris,
Look at OASplitView.[hm] in OmniAppKit. It is a subclass of NSSplitView
that adds API for saving split view location the same way that
NSTableView saves column positions. All you need to do is use an
OASplitView instead of an NSSplitView and then call the
-setPositionAutosaveName: method.
Hope this helps,
--Greg
On Saturday, April 27, 2002, at 02:14 PM, Chris Meyer wrote:
Hi,
Has anyone determined a good way to save the positions of the sub-views
of a NSSplitView (in the same way that NSTableView saves column
positions automatically to the user defaults file)?
I tried setting the sub-views' frames programmatically in windowDidLoad
but that didn't work (it seemed they were being set somewhere else).
Also I tried saving out the sub-views' frames in
splitViewDidResizeSubviews: (after becoming a delegate of the
NSSplitView) but the results were inconsistent...
Anyone encounter this problem and solve it already?
Chris Meyer
_______________________________________________
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.