Freedom™ consists of two parts:
- A file selector/alert box 'server' (FREEDOM.APP) which runs as a parallel application or accessory and waits to be activated by calls via the defined interface (usually AES messages). The number of file selectors and alert boxes which can be opened is only limited by available memory and window handles. The server reports itself on starting using the XAcc Protocol and installs the extended XAcc Names 'XFileSelect\0XFontAck'.
- A resident part FFSEL.PRG. Applications which call the file selector or an alert box send an appropriate request to the server which (if necessary) starts itself in parallel and waits in an event loop for a reply from the server. Inside the event loop various other messages are handled simultaneously (Window redraw, move, size, top, send to back etc) as long as the alerts/file selectors are active and the menu bar of the calling program is dis/re-enabled. By cunning programming this part is up to 8 times re-entrant which means up to 8 different applications, alerts or file selectors may be open before the trap handler ignores any further calls and passes an alert to the system. This part also handles conversion of the reply from Freedom™ using one of the three Selectric™ protocols. This does however present a problem. Because only a single Selectric cookie is passed, it's possible another application(s) could try to communicate simultaneously. To minimise this risk the resident FFSEL sits on messages for applications and passes them on later. The following are specifically 'swallowed':
(AC_CLOSE) ; Sadly, due to problems with Chameleon.
AC_OPEN
MN_SELECTED
WM_CLOSED
WM_FULLED
WM_ARROWED
WM_HSLID
WM_VSLID
WM_SIZED
WM_UNTOPPED
WM_TOPPED
WM_ONTOP
WM_NEWTOP
WM_ICONIFY
WM_UNICONIFY
WM_BOTTOMED
VA_START
VA_STARTED
VA_DRAGACCWIND
AV_SENDKEY ; AV server should be the Freedom™ Protocol
AV_STARTPROG ; supported, if it's a file selector
AV_OPENWIND ; call
AV_OPENCONSOLE
AP_DRAGDROP ; answered with DD_NAK
WM_REDRAW ; passed once (maximum) for each window sent by WM_MOVED ; an application.