TweetFollow Us on Twitter

Code generators
Volume Number:5
Issue Number:9
Column Tag:Kelly's Corner

AppMaker™ and Prototyper™

By Dave Kelly, MacTutor Editorial Board

AppMaker™ vs. Prototyper™

Who says that writing Macintosh applications is difficult? Prototyper™ from SmethersBarnes has been available for quite awhile with virtually no competition. A new contender for the Mac applications development market is now available. Perhaps many of you have seen the advertisements for AppMaker™ by Bowers Development Corporation and Prototyper™ within the pages of MacTutor and wondered what the differences are between the two of them. I’ve now had a chance to use both of them and hope to summarize my opinions within this column.

Traditionally, Macintosh development has involved creating resources for menus, windows, icons etc. which are used by the application. One of the greatest of all the developer tools that Apple has given us is ResEdit which gives us access to the resources and a way to edit most of them. Many programmers have developed their own libraries of functions and procedures including the basic shell which becomes a starting point for the development process. The major drawback of this is the amount of time required to organize and define all of these resources and routines into a working application. MacTutor has tried to help you understand the workings of the Macintosh to assist you in this development process.

Let’s take a comparative look at the way that Prototyper and AppMaker helps you to develop your product. Each one does a good job, but the implementation is different. You may want to refer to MacTutor Vol. 4 No. 8 (or pg. 432 in The Definitive MacTutor) for my first comments about Prototyper. It has been significantly improved since version 1.0 which was reviewed therein. My major complaints have been remedied... C code generation and hierarchical menus. Both Prototyper and AppMaker create the shell of your application for you and allow you to ‘draw’ the user interface for each window, dialog, alert, or menu. Depending on the scope of your application one or the other (or both) of them are ideal ways to get started with your development project. For the following discussion, please assume that we have planned out what menus and windows etc. we will need in our application.

Using Prototyper™

The tutorial for Prototyper is very good, but to give you an idea of what it takes to develop an application I’ll briefly review some of the features of Prototyper. You may want to refer to my comparison chart from time to time to see what differences there are between AppMaker and Prototyper. Prototyper presents you with three icons which allow you to define menus, windows or demo windows. I’ll explain what demo windows are in a moment.

First we will define our windows; windows don’t have to be defined first, but I’ll start with them first anyway. Clicking on the window icon opens up a dialog which allows you to select which type of window, dialog, or alert you wish to use. Next the window opens and you have a palette of tools to use to create buttons, text fields, scroll bars and other controls. The comparison chart shows which tools are available for the customizing the layout of the screen. Window types may even be changed after the layout process has begun, but some items may be lost if not supported by the type of window selected. The location of the window may be adjusted on the screen in a manner similar to that used in ResEdit where the window can be re-sized and moved to the desired position.

Clicking on the menu icon brings up the menu dialog which allows editing of a single menu bar (only one menu bar may be used). A new Prototyper document includes a default Apple, File and Edit menu. Clicking the Hierarchical button in the menu editor dialog will enable the currently selected menu item to have one single level of hierarchical menus. For most applications this is enough, however this is a limitation with Prototyper.

The demo window icon sets up a window which either reads a text file or displays a Picture in a window for simulation purposes only. The text file needs to be in the same folder as Prototyper or it may not remember where the file is and do nothing. The Pictures must be pasted into the window (you can’t load the picture from a file). Demo windows are ONLY useful when using Prototyper to simulate (as a prototype) how an application will work. Code is not generated to support the action of the window.

After the windows have been created and the menu defined, you can go back through and link the controls and menus so that the prototype will look and feel like the application you want. You may link menu items, buttons, or whatever to other menu items, buttons, windows, or whatever. For example you may have a menu item linked to open a window and another menu item linked to close the window. You may also link to commonly used Macintosh dialogs. The problem is that only part of the simulation is generated as code. For example you may link the Page Setup menu item to the actual Page Setup dialog and the Print menu item to the Print dialog. However, when the code is generated, the Page Setup dialog code is not generated (what a shame, so close). The standard GetFile and PutFile dialogs are also simulated when running as a prototype, but no code is generated. It seems that this could have been added easily especially since they give you the source code in the manual to use the SFGetFile/SFPutFile procedures.

The Prototyper manual contains a tutorial and explanation of prototyping your application. A brief explanation of the code generated by Prototyper is given and some tips on how to add your own routines to the source code. Modifying source code can be time consuming until you are familiar with the implementation of the code.

Using AppMaker™

The main difference between Prototyper and AppMaker is that Prototyper allows the prototype to be simulated before the code is generated. Creating dialogs, windows, and alerts is much the same except that the AppMaker has a couple of tools that are different from Prototyper. For example AppMaker may use controls which are stored in a resource and user defined items. These items could always be added with ResEdit for Prototyper anyway.

To use AppMaker you select what you want to edit (Menu, Window, Dialog, or Alert) from a menu. The items which already exist show up in a list window similar to the list of items that Prototyper displays except that only menus show up when the menu item is selected, only windows show up when the window item is selected, etc. A unique feature of the window tools is the Palette tool. With this you may use a picture as a palette in the application similar to the palette found in MacPaint or other paint programs. The picture is split into several columns and rows which become the palette in the application.

The menu editor looks like a Mac screen with a menu bar at the top. The default menu has Apple, File, and Edit menus already created. It is very important to note here that each menu must include an ID name in order to be linked properly. For example, the Apple menu must have the name ‘Apple’ in order to link properly. This is created automatically for you, but if you deleted a name by mistake, you might not be able to figure out why the code was not generated properly. At least you can know that something is missing when you try to compile the application and get an error. Hierarchical menus are linked to each other by their resource names also. If you type a menu item title that is the same as a menu resource name, the Hierarchical structure is automatically linked up when you create your code.

Windows, Dialogs, and Alerts are linked with resource names also, however, you don’t have as much control over linking menu items to windows as you do in Prototyper. The good thing about it is that because there are fewer specific definitions, the code is more generic and possibly easier to modify. With either Prototyper or AppMaker you will need to modify and add to the code that is generated. With AppMaker you may even modify the AppMaker code so that it will add the modified code when application code is generated. Prototyper doesn’t allow you to “pre-modify” the code before the source code is generated. Included with the AppMaker application are libraries for all the supported languages which are used to support the code which AppMaker generates.

AppMaker generates code that is Multifinder Aware. Multifinder Aware means that WaitNextEvent is used instead of GetNextEvent, therefore the application understands suspend and resume events. A SIZE resource is included so that Multifinder will know how much memory to allocate to the application. Multifinder Aware applications will be sent “null” events when they are running in the background so that they may perform background processing.

The AppMaker manual is a 114 page spiral bound book with a tutorial and full explanation of all AppMaker source code and libraries. The explanation of the libraries is a great help in modifying or adding to the source code.

The Verdict

Whether to use Prototyper™ or AppMaker™ is a personal decision. I think that both of them have advantages. I prefer Prototyper for its ability to try out an application before it is written, but I prefer AppMaker for its unique features that Prototyper does not have such as Multifinder Awareness and the ability to create multiple menu bars. Its a tie. Both of these applications get high marks for what they do.

Prototyper™ 2.1

SmethersBarnes

P. O. Box 639, Dept. 400

Portland, Oregon 97207

1-800-237-3611

Upgrades to registered 1.0 users are $49.

Price: $249

Pros: Ability to prototype application without compiling. Creates Pascal and C source code.NO COPY PROTECTION.

Cons: Does not link Page Setup, Print or SFGetFile/SFPutFile routines. Can’t create more than one menu bar per file. Only one level of Hierarchical menus. Simple additions to source code is easy, but is somewhat difficult to change structure.

AppMaker™ 1.0

Bowers Development

P. O. Box 9

Lincoln Center, MA. 01773

617-259-8428

Price: $295

Pros: Creates Pascal and C source code. Applications created are Multifinder Aware. Resource IDs and names are user modifiable. NO COPY PROTECTION.

Cons: No prototyping capability. Does not link Page Setup or Print routines.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Challenge those pesky wyverns to a dance...
After recently having you do battle against your foes by wildly flailing Hello Kitty and friends at them, GungHo Online has whipped out another surprising collaboration for Puzzle & Dragons. It is now time to beat your opponents by cha-cha... | Read more »
Pack a magnifying glass and practice you...
Somehow it has already been a year since Torchlight: Infinite launched, and XD Games is celebrating by blending in what sounds like a truly fantastic new update. Fans of Cthulhu rejoice, as Whispering Mist brings some horror elements, and tests... | Read more »
Summon your guild and prepare for war in...
Netmarble is making some pretty big moves with their latest update for Seven Knights Idle Adventure, with a bunch of interesting additions. Two new heroes enter the battle, there are events and bosses abound, and perhaps most interesting, a huge... | Read more »
Make the passage of time your plaything...
While some of us are still waiting for a chance to get our hands on Ash Prime - yes, don’t remind me I could currently buy him this month I’m barely hanging on - Digital Extremes has announced its next anticipated Prime Form for Warframe. Starting... | Read more »
If you can find it and fit through the d...
The holy trinity of amazing company names have come together, to release their equally amazing and adorable mobile game, Hamster Inn. Published by HyperBeard Games, and co-developed by Mum Not Proud and Little Sasquatch Studios, it's time to... | Read more »
Amikin Survival opens for pre-orders on...
Join me on the wonderful trip down the inspiration rabbit hole; much as Palworld seemingly “borrowed” many aspects from the hit Pokemon franchise, it is time for the heavily armed animal survival to also spawn some illegitimate children as Helio... | Read more »
PUBG Mobile teams up with global phenome...
Since launching in 2019, SpyxFamily has exploded to damn near catastrophic popularity, so it was only a matter of time before a mobile game snapped up a collaboration. Enter PUBG Mobile. Until May 12th, players will be able to collect a host of... | Read more »
Embark into the frozen tundra of certain...
Chucklefish, developers of hit action-adventure sandbox game Starbound and owner of one of the cutest logos in gaming, has released their roguelike deck-builder Wildfrost. Created alongside developers Gaziter and Deadpan Games, Wildfrost will... | Read more »
MoreFun Studios has announced Season 4,...
Tension has escalated in the ever-volatile world of Arena Breakout, as your old pal Randall Fisher and bosses Fred and Perrero continue to lob insults and explosives at each other, bringing us to a new phase of warfare. Season 4, Into The Fog of... | Read more »
Top Mobile Game Discounts
Every day, we pick out a curated list of the best mobile discounts on the App Store and post them here. This list won't be comprehensive, but it every game on it is recommended. Feel free to check out the coverage we did on them in the links below... | Read more »

Price Scanner via MacPrices.net

Free iPhone 15 plus Unlimited service for $60...
Boost Infinite, part of MVNO Boost Mobile using AT&T and T-Mobile’s networks, is offering a free 128GB iPhone 15 for $60 per month including their Unlimited service plan (30GB of premium data).... Read more
$300 off any new iPhone with service at Red P...
Red Pocket Mobile has new Apple iPhones on sale for $300 off MSRP when you switch and open up a new line of service. Red Pocket Mobile is a nationwide MVNO using all the major wireless carrier... Read more
Clearance 13-inch M1 MacBook Airs available a...
Apple has clearance 13″ M1 MacBook Airs, Certified Refurbished, available for $759 for 8-Core CPU/7-Core GPU/256GB models and $929 for 8-Core CPU/8-Core GPU/512GB models. Apple’s one-year warranty is... Read more
Updated Apple MacBook Price Trackers
Our Apple award-winning MacBook Price Trackers are continually updated with the latest information on prices, bundles, and availability for 16″ and 14″ MacBook Pros along with 13″ and 15″ MacBook... Read more
Every model of Apple’s 13-inch M3 MacBook Air...
Best Buy has Apple 13″ MacBook Airs with M3 CPUs in stock and on sale today for $100 off MSRP. Prices start at $999. Their prices are the lowest currently available for new 13″ M3 MacBook Airs among... Read more
Sunday Sale: Apple iPad Magic Keyboards for 1...
Walmart has Apple Magic Keyboards for 12.9″ iPad Pros, in Black, on sale for $150 off MSRP on their online store. Sale price for online orders only, in-store price may vary. Order online and choose... Read more
Apple Watch Ultra 2 now available at Apple fo...
Apple has, for the first time, begun offering Certified Refurbished Apple Watch Ultra 2 models in their online store for $679, or $120 off MSRP. Each Watch includes Apple’s standard one-year warranty... Read more
AT&T has the iPhone 14 on sale for only $...
AT&T has the 128GB Apple iPhone 14 available for only $5.99 per month for new and existing customers when you activate unlimited service and use AT&T’s 36 month installment plan. The fine... Read more
Amazon is offering a $100 discount on every M...
Amazon is offering a $100 instant discount on each configuration of Apple’s new 13″ M3 MacBook Air, in Midnight, this weekend. These are the lowest prices currently available for new 13″ M3 MacBook... Read more
You can save $300-$480 on a 14-inch M3 Pro/Ma...
Apple has 14″ M3 Pro and M3 Max MacBook Pros in stock today and available, Certified Refurbished, starting at $1699 and ranging up to $480 off MSRP. Each model features a new outer case, shipping is... Read more

Jobs Board

Omnichannel Associate - *Apple* Blossom Mal...
Omnichannel Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Operations Associate - *Apple* Blossom Mall...
Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Cashier - *Apple* Blossom Mall - JCPenney (...
Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Mall Read more
IT Systems Engineer ( *Apple* Platforms) - S...
IT Systems Engineer ( Apple Platforms) at SpaceX Hawthorne, CA SpaceX was founded under the belief that a future where humanity is out exploring the stars is Read more
*Apple* Systems Administrator - JAMF - Activ...
…**Public Trust/Other Required:** None **Job Family:** Systems Administration **Skills:** Apple Platforms,Computer Servers,Jamf Pro **Experience:** 3 + years of Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.