🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #2278

Setting NXSplitView position programmatically

#2278
From: Brian Willoughby
Date: Sat, 23 Jan 1993 10:11
18 lines
1272 bytes
I finally decided to add an NXSplitView to one of my apps.  Pretty  
straightforward, actually.

However, I would like to know if there is an easy way to set the position of  
the divider from my program.  I'd like to support something I haven't seen in  
ProjectManager, but is supported by Mail.app in Mailboxes, and that is for the  
program to remember the SplitView divider position when starting my app and  
automatically returning it to the same position it had when the app was last  
run.

From reading the docs, its seems like I could set the height of ALL the  
subviews and then call -adjustSubviews to update the divider, but isn't there a  
simpler way other than calling 3 to 5 methods?
-- 
Brian Willoughby	Software Design Engineer, BSEE NCSU
BrianW@SoundS.WA.com	Sound Consulting: Software Design and Development
NeXTmail welcome
Technical Details
Message-ID: <C1AxMy.L0G@sounds.wa.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!nwnexus!sounds!brianw

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!nwnexus!sounds!brianw
From: BrianW@SoundS.WA.com (Brian Willoughby)
Subject: Setting NXSplitView position programmatically
Message-ID: <C1AxMy.L0G@sounds.wa.com>
Sender: brianw@sounds.wa.com (Brian Willoughby)
Reply-To: BrianW@SoundS.WA.com
Organization: Sound Consulting, Bellevue, WA, USA
Date: Sat, 23 Jan 1993 10:11:21 GMT
Lines: 18