🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
1 messages
1 total messages Started by Subrata Sircar Mon, 16 Nov 1992 20:01
Re: Splitting apps into UI and core server?
#1783
Author: Subrata Sircar
Date: Mon, 16 Nov 1992 20:01
27 lines
1846 bytes
I thought the point of the CoreServer was NOT to pass all messages through it,  
but to use it to buffer the UI from the implementation.  To that end, I was  
thinking of something along the lines of:

- every object has a UI delegate
- all the [genericField setIntValue:] and [gField intValue] calls would be  
replaces by [UIDelegate setGenericFieldIntValue:] and [UIDelegate  
getGenericFieldIntValue] type calls.
- alert panels are generated by [UIDelegate runAlertPanel::::]

Incidentally, this does mean a lot of cross-talking, but not necessarily more  
objects; one UI delegate could serve multiple objects.  The cross-talking means  
that I'm effectively doubling the number of messages needed to change UI (or  
adding one) and that might be a concern.

That takes care of 90% of my interaction with UI.  Disabling buttons and so  
forth can be done in a similar fashion.  In fact, for most of this, you could  
probably use compiler macros rather than a second object (although that won't  
give you the true decoupling necessary for vending your object between several  
interfaces).

---
Subrata Sircar|ssircar@canon.com (NextMail ok)|Prophet & SPAMIT Charter Member
Canon Information Systems and I do not share the same views on everything.
"I'm just mad that I missed the sexual revolution." - me
"Yes, but you dress much better as a result." - Mike
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads