• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: saving NSSplitView sub-frame positions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >saving NSSplitView sub-frame positions (From: Chris Meyer <email@hidden>)

  • Prev by Date: Re: "Wrapping" of Carbon code
  • Next by Date: Re: Reading ID3 Tags
  • Previous by thread: saving NSSplitView sub-frame positions
  • Next by thread: Re: saving NSSplitView sub-frame positions
  • Index(es):
    • Date
    • Thread