|
---------------------
XCode/Interface Builder
Interface Builder works very well with Ada Applications through the use of the Carbon Bindings (See Bindings page for more information). Support for XCode and Interface Builder is supplied as part of the same installer that installs the Carbon Bindings as well as the Sample Code.
XCode integration for ada works in the same manner as the older Project Builder integration (below).
---------------------
Project Builder/Interface Builder
Interface Builder works very well with Ada Applications through the use of the Carbon Bindings (See Bindings page for more information). Support for Project Builder and Interface Builder is supplied as part of the same installer that installs the Carbon Bindings as well as the Sample Code.
When you select the New Project the PB dialog provides the option to select a number of Ada Project Types, currently:
Applications
Ada Carbon Application (Bib Based)
Ada Carbon Application
Frameworks and Libraries
Ada Carbon Library
Ada Library
Tool
Ada Standard Tool
The Ada Library and Ada Standard Tool options both create standard Unix outputs (an archive file or command line applications).
In addition, we have added templates to PB for various Ada file types such as Ada main program, Ada package spec, and Ada package body. the New File Option
The Files are displayed in PB windows using color syntax as shown here.
Apple has a nice document that's a quick introduction to using Project Builder . The code is in c , but the Project Builder Ada templates contain the Ada translation of the code in the tutorial. Using Project Builder with Ada is done as documented in this document. So if you want to see an introduction to using PB and Interface Builder check it out.
The Ada-only thing to keep in mind is that when you select files to be in your project, you put both specs and bodies in the project. But you only select (via the small checkbox next to the filename) those you want compiled. That means if you have a spec alone, you select it. If a spec and body exists, the spec is in the project but the little checkbox next to spec is NOT checked. Other than that, things work just like c for the most part.
For help using project builder see the tutorial available as part of the Project Builder Scripts available below. It is an excellent explination of how to create a basic Project Builder Ada Application.
Back to Top
-----------------------
Reformat
This is an Ada Pretty Printer originally developed by
This program was originally part of a Microsoft Windows based Ada IDE called AdaGuide for windows from Martin Carlisle and his team at the US Air Force Academy. For information on this product send email to carlislem@acm.org.
About 1996 or so Jim Hopper and Mike Feldman extracted the pretty printing code from this IDE and created a Unix command line tool to do the pretty printing for the Apple Macintosh under Tenons MachTen product and named it Reformat.
This Macintosh version was updated to the code from the current version of AdaGuide, and ported to MacOSX in the spring of 2002 by Jim Hopper. A MacOS X Carbon based GUI was later added to create the current version.
Each input file will be checked for its origin (Macintosh (CR), Unix (LF), DOS/Windows (CR, LF)) and their end of lines will be saved in Unix format (LF).
This is a VERY preliminary version and so I havent posted the source code yet. But i have found it useful, and would appreciate any feedback. The sit file contains a first cut at a manual.
Reformat has a nice preference dialog to allow the user to select his formatting options and saves them in the Mac preferences.
Back to Top
-----------------------
Lookup
This tool is an original tool from Jim Hopper. Its purpose is to help with the development of MacOS X Carbon applications. It allows you to type an identifier name like OSErr and hit the lookup button to get the full package name, in this case CoreServices.Carboncore.MacTypes.OSErr. The application has a help menu that works as well as help tags (hover the mouse over a button or field to get told what it is). Note the cool icon, and the Ada stuff in the dialog and the about dialog. I will release source code when I get a chance to clean it up. What is does seems fairly simple until you start developing carbon code and unless you have an incredible memory it quickly becomes a standard part of your desktop!
Back to Top
-----------------------
AFlex/AYACC
Aflex : Download AFlex
Download AFlex Documentation (PDF)
AYACC: Download AYACC
Download AYACC Documentation (PDF)
Back to Top
-----------------------
Project Builder Scripts
This package contains several scripts that ease the development of Ada applications and tools using Apples Project Builder.
The first two scripts changeStyle and Convert2AdaStyle were developed by Philip Gonia and work together to Automate the modification of newly created Nib based Ada projects. Included is a supporting Ada based dialog, ChangeStyleDialog, and a very nice tutorial on the scripts and their use.
The next script written by Jim Hopper allow block commenting and uncommenting of Ada source lines in the PB editor.
The third script written by Jim Hopper along with its supporting unix tool (reformat) performs Ada Pretty Printing of the selected source code in the PB editor. The output style of the PP is somewhat configurable. Edit the script in
~/Library/Application\ Support/Project\ Builder/Scripts/70-Ada/20-ada_reformat.sh
Finally the last script (early BETA) and its supporting applescript scripts are provided to allow the developer to recursively remove all CVS directories for the current active project.
For more information on what the options mean see the documentation supplied with the gui version of reformat available from this page.
Back to Top
|