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

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!ukma!wupost!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!ssircar@canon.com
  3. From: ssircar@canon.com (Subrata Sircar)
  4. Subject: Re: Splitting apps into UI and core server?
  5. Message-ID: <9211161959.AA12141@alychne-nc.canon.com>
  6. Sender: daemon@magnus.acs.ohio-state.edu
  7. Reply-To: ssircar@canon.com
  8. Organization: The Ohio State University
  9. Date: Mon, 16 Nov 1992 20:01:43 GMT
  10. Lines: 27
  11.  
  12.  
  13. I thought the point of the CoreServer was NOT to pass all messages through it,  
  14. but to use it to buffer the UI from the implementation.  To that end, I was  
  15. thinking of something along the lines of:
  16.  
  17. - every object has a UI delegate
  18. - all the [genericField setIntValue:] and [gField intValue] calls would be  
  19. replaces by [UIDelegate setGenericFieldIntValue:] and [UIDelegate  
  20. getGenericFieldIntValue] type calls.
  21. - alert panels are generated by [UIDelegate runAlertPanel::::]
  22.  
  23. Incidentally, this does mean a lot of cross-talking, but not necessarily more  
  24. objects; one UI delegate could serve multiple objects.  The cross-talking means  
  25. that I'm effectively doubling the number of messages needed to change UI (or  
  26. adding one) and that might be a concern.
  27.  
  28. That takes care of 90% of my interaction with UI.  Disabling buttons and so  
  29. forth can be done in a similar fashion.  In fact, for most of this, you could  
  30. probably use compiler macros rather than a second object (although that won't  
  31. give you the true decoupling necessary for vending your object between several  
  32. interfaces).
  33.  
  34. ---
  35. Subrata Sircar|ssircar@canon.com (NextMail ok)|Prophet & SPAMIT Charter Member
  36. Canon Information Systems and I do not share the same views on everything.
  37. "I'm just mad that I missed the sexual revolution." - me
  38. "Yes, but you dress much better as a result." - Mike
  39.