home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-08-05 | 3.0 KB | 83 lines | [TEXT/KAHL] |
- 05Aug93 e
-
- eConsole adds a scrollable two-style interaction window, as well as a
- program editor to Mac applications which use the ANSI Library. It also
- handles menus, and edit window preferences. See eConsole User Notes.
-
- How To Add eConsole to you ThinkC project...
-
- eConsole is a ThinkC console/gui replacement. It is intended to be used
- with one of ThinkC's ANSI projects. To include it in your ThinkC project
- you should do the following...
-
- [this is a cryptic - comments welcome]
- [You must know how to use ThinkC & program for the Mac..]
-
- I assume that you currently include a ThinkC ANSI project in your project;
- you will also need to include MacTraps and MacTraps2. In ThinkC 5 (but not
- in ThinkC 6) include PrGlue as well. It doesn't matter what segment these
- are in, so long as no segment is bigger than 32K.
-
- Copy the ANSI project of your choice and rebuild it without console.c
- Replace the ANSI project in your project with the new version.
-
- Your project should have a <signature>. These are officially only available
- from Apple, so if you're distributing your application, get an official
- signature. If the application is for your own use only, just pick a four
- character sequence that doesn't conflict with any of the applications you
- have installed on your Mac. [The SML/NJ signature is 'NJML']
-
- You must place the <signature> for your project in the Creator box in the
- ThinkC's Set Project Type... dialog. While you're there, set the Type box
- to 'APPL' and the Size Flags to 50C0
-
- Include the resources of eEdit.rsrc in your project's resource file. If
- there are any resource numbering conflicts you will either have to renumber
- your resources, or renumber mine and change os_mac.h
-
- If your project doen not have a resource file, copy eEdit.rsrc and rename
- it to <your-project-name>.rsrc
-
- Your resource file should also have appropriate BNDL FREF and ICN# resources
- in order for AppleEvents and Finder Drag & Drop to work correctly.
-
- Include the following C files in your project:
- os_mac.c
- os_mac_console.c
- os_mac_eKeys.c
- os_mac_eStyle.c
- os_mac_eEdit.c
- os_mac_Print.c
- Again, it doesn't matter what segment these are in, so long as no segment
- is bigger than 32K. In SML/NJ the first two C files are in a segment with
- MacTraps and MacTraps2, and the last four C files are in their own segment.
-
- You should place the following header files where ThinkC will see them:
- os_mac.h
- os_mac_eEdit.h
- os_mac_eventchk.h
- AERegistry.h (or a newer version, if you have it, from Apple)
-
- Edit the file os_mac.h changing these lines:
- #define PREFS_FILENAME "\pTricia Preferences"
- #define CREATOR 'TMcM'
-
- The PREFS_FILENAME is the filename for the preferences file. This file will
- be created in the System Folder:Preferences Folder. The CREATOR is the
- <signature> described above.
-
- You must also define a void doAbout(void); It should display an about dialog.
- Here's a simple example:
- extern void doAbout(void)
- { DialogPtr dlg;
- short i;
- dlg=GetNewDialog(about_dlogID,NULL,(WindowPtr)(-1L));
- ModalDialog((ModalFilterProcPtr)NULL,&i);
- DisposDialog(dlg);
- }
-
- Good luck.
-
- e
-
-