home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / next / programm / 8272 < prev    next >
Encoding:
Text File  |  1993-01-23  |  1.2 KB  |  30 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!nwnexus!sounds!brianw
  3. From: BrianW@SoundS.WA.com (Brian Willoughby)
  4. Subject: Setting NXSplitView position programmatically
  5. Message-ID: <C1AxMy.L0G@sounds.wa.com>
  6. Sender: brianw@sounds.wa.com (Brian Willoughby)
  7. Reply-To: BrianW@SoundS.WA.com
  8. Organization: Sound Consulting, Bellevue, WA, USA
  9. Date: Sat, 23 Jan 1993 10:11:21 GMT
  10. Lines: 18
  11.  
  12.  
  13. I finally decided to add an NXSplitView to one of my apps.  Pretty  
  14. straightforward, actually.
  15.  
  16. However, I would like to know if there is an easy way to set the position of  
  17. the divider from my program.  I'd like to support something I haven't seen in  
  18. ProjectManager, but is supported by Mail.app in Mailboxes, and that is for the  
  19. program to remember the SplitView divider position when starting my app and  
  20. automatically returning it to the same position it had when the app was last  
  21. run.
  22.  
  23. From reading the docs, its seems like I could set the height of ALL the  
  24. subviews and then call -adjustSubviews to update the divider, but isn't there a  
  25. simpler way other than calling 3 to 5 methods?
  26. -- 
  27. Brian Willoughby    Software Design Engineer, BSEE NCSU
  28. BrianW@SoundS.WA.com    Sound Consulting: Software Design and Development
  29. NeXTmail welcome
  30.