home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / next / programm / 7235 < prev    next >
Encoding:
Text File  |  1992-11-15  |  1.3 KB  |  28 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!monty@intuitiveedge.com
  3. From: monty@intuitiveedge.com (Montgomery Zukowski)
  4. Subject: Splitting apps into UI and core server?
  5. Message-ID: <9211151841.AA00343@intuitiveedge.com>
  6. Sender: daemon@magnus.acs.ohio-state.edu
  7. Reply-To: monty@intuitiveedge.com
  8. Organization: The Ohio State University
  9. Date: Sun, 15 Nov 1992 18:41:16 GMT
  10. Lines: 16
  11.  
  12.     Has anyone given much thought on how to split applications into a  
  13. core server and a user interface object?  Are there any examples on the  
  14. archives?  I'm working on objects to support this right now but I don't want  
  15. to re-invent the wheel.
  16.     My approach right now is to split everything into two.  I have as  
  17. classes DocumentManager and DocumentManagerUI, Document and DocumentUI,  
  18. TextDoc and TextDocUI and a FileObject.  A lot of stuff will happen through  
  19. delegation, like if a document is being saved for the first time and the file  
  20. already exists, a Document would see if it has a UI delegate and if so a  
  21. message would be sent and the DocumentUI would put up the alert panel and go  
  22. from there.
  23.     This approach involves a lot of cross talking and many classes where  
  24. one used to suffice, but I'm not sure how else to go about it.
  25.     Thoughts anyone?
  26.  
  27. Monty
  28.