I'm designed a media preview as part of an application and have
previously been using ContainerControls to provide the various preview
formats: Text, Audio, Video, Picture, and Web. But I'm getting
attacked by more bugs than I can workaround on both Mac OS X and
Windows XP. For example, closing an HTMLViewer in a ContainerControl
crashes the application.
So I said, "I'm a very good web designer/programmer, why don't I do
everything via HTML?" - kind of like Safari does for it's RSS reader.
This is easy. Writing the web server is also pretty trivial, already
done that. But the question arises: if the user is not connected to a
network, can I still access localhost urls? If not, using an
integrated webserver/htmlviewer simply won't work.
Hmm. That's a sticky question; do you have a localhost if the user has
no network devices defined in System Preferences? I don't know the
answer.
I'd say you could wrap your web connections in a class that abstracts
the actual connection. If a network is available, it can use localhost
(or a remote host, if that's useful). If no network connection is
possible, you could use a interprocess socket to simulate the
connection, or a serial connection, or whatever. In any case,
abstracting the connection opens up a lot of options that you could
seamlessly include at a later date.
Eric M. Williams
Oxalyn Software
http://software.oxalyn.com/
AE Monitor
http://software.oxalyn.com/AEMonitor/
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>