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

Fresh From the Land Down Under – The Tou...
After a two week hiatus, we are back with another episode of The TouchArcade Show. Eli is fresh off his trip to Australia, which according to him is very similar to America but more upside down. Also kangaroos all over. Other topics this week... | Read more »
TouchArcade Game of the Week: ‘Dungeon T...
I’m a little conflicted on this week’s pick. Pretty much everyone knows the legend of Dungeon Raid, the match-3 RPG hybrid that took the world by storm way back in 2011. Everyone at the time was obsessed with it, but for whatever reason the... | Read more »
SwitchArcade Round-Up: Reviews Featuring...
Hello gentle readers, and welcome to the SwitchArcade Round-Up for July 19th, 2024. In today’s article, we finish up the week with the unusual appearance of a review. I’ve spent my time with Hot Lap Racing, and I’m ready to give my verdict. After... | Read more »
Draknek Interview: Alan Hazelden on Thin...
Ever since I played my first release from Draknek & Friends years ago, I knew I wanted to sit down with Alan Hazelden and chat about the team, puzzle games, and much more. | Read more »
The Latest ‘Marvel Snap’ OTA Update Buff...
I don’t know about all of you, my fellow Marvel Snap (Free) players, but these days when I see a balance update I find myself clenching my… teeth and bracing for the impact to my decks. They’ve been pretty spicy of late, after all. How will the... | Read more »
‘Honkai Star Rail’ Version 2.4 “Finest D...
HoYoverse just announced the Honkai Star Rail (Free) version 2.4 “Finest Duel Under the Pristine Blue" update alongside a surprising collaboration. Honkai Star Rail 2.4 follows the 2.3 “Farewell, Penacony" update. Read about that here. | Read more »
‘Vampire Survivors+’ on Apple Arcade Wil...
Earlier this month, Apple revealed that poncle’s excellent Vampire Survivors+ () would be heading to Apple Arcade as a new App Store Great. I reached out to poncle to check in on the DLC for Vampire Survivors+ because only the first two DLCs were... | Read more »
Homerun Clash 2: Legends Derby opens for...
Since launching in 2018, Homerun Clash has performed admirably for HAEGIN, racking up 12 million players all eager to prove they could be the next baseball champions. Well, the title will soon be up for grabs again, as Homerun Clash 2: Legends... | Read more »
‘Neverness to Everness’ Is a Free To Pla...
Perfect World Games and Hotta Studio (Tower of Fantasy) announced a new free to play open world RPG in the form of Neverness to Everness a few days ago (via Gematsu). Neverness to Everness has an urban setting, and the two reveal trailers for it... | Read more »
Meditative Puzzler ‘Ouros’ Coming to iOS...
Ouros is a mediative puzzle game from developer Michael Kamm that launched on PC just a couple of months back, and today it has been revealed that the title is now heading to iOS and Android devices next month. Which is good news I say because this... | Read more »

Price Scanner via MacPrices.net

Amazon is still selling 16-inch MacBook Pros...
Prime Day in July is over, but Amazon is still selling 16-inch Apple MacBook Pros for $500-$600 off MSRP. Shipping is free. These are the lowest prices available this weekend for new 16″ Apple... Read more
Walmart continues to sell clearance 13-inch M...
Walmart continues to offer clearance, but new, Apple 13″ M1 MacBook Airs (8GB RAM, 256GB SSD) online for $699, $300 off original MSRP, in Space Gray, Silver, and Gold colors. These are new MacBooks... Read more
Apple is offering steep discounts, up to $600...
Apple has standard-configuration 16″ M3 Max MacBook Pros available, Certified Refurbished, starting at $2969 and ranging up to $600 off MSRP. Each model features a new outer case, shipping is free,... Read more
Save up to $480 with these 14-inch M3 Pro/M3...
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
Amazon has clearance 9th-generation WiFi iPad...
Amazon has Apple’s 9th generation 10.2″ WiFi iPads on sale for $80-$100 off MSRP, starting only $249. Their prices are the lowest available for new iPads anywhere: – 10″ 64GB WiFi iPad (Space Gray or... Read more
Apple is offering a $50 discount on 2nd-gener...
Apple has Certified Refurbished White and Midnight HomePods available for $249, Certified Refurbished. That’s $50 off MSRP and the lowest price currently available for a full-size Apple HomePod today... Read more
The latest MacBook Pro sale at Amazon: 16-inc...
Amazon is offering instant discounts on 16″ M3 Pro and 16″ M3 Max MacBook Pros ranging up to $400 off MSRP as part of their early July 4th sale. Shipping is free. These are the lowest prices... Read more
14-inch M3 Pro MacBook Pros with 36GB of RAM...
B&H Photo has 14″ M3 Pro MacBook Pros with 36GB of RAM and 512GB or 1TB SSDs in stock today and on sale for $200 off Apple’s MSRP, each including free 1-2 day shipping: – 14″ M3 Pro MacBook Pro (... Read more
14-inch M3 MacBook Pros with 16GB of RAM on s...
B&H Photo has 14″ M3 MacBook Pros with 16GB of RAM and 512GB or 1TB SSDs in stock today and on sale for $150-$200 off Apple’s MSRP, each including free 1-2 day shipping: – 14″ M3 MacBook Pro (... Read more
Amazon is offering $170-$200 discounts on new...
Amazon is offering a $170-$200 discount on every configuration and color of Apple’s M3-powered 15″ MacBook Airs. Prices start at $1129 for models with 8GB of RAM and 256GB of storage: – 15″ M3... Read more

Jobs Board

*Apple* Systems Engineer - Chenega Corporati...
…LLC,** a **Chenega Professional Services** ' company, is looking for a ** Apple Systems Engineer** to support the Information Technology Operations and Maintenance Read more
Solutions Engineer - *Apple* - SHI (United...
**Job Summary** An Apple Solution Engineer's primary role is tosupport SHI customers in their efforts to select, deploy, and manage Apple operating systems and Read more
*Apple* / Mac Administrator - JAMF Pro - Ame...
Amentum is seeking an ** Apple / Mac Administrator - JAMF Pro** to provide support with the Apple Ecosystem to include hardware and software to join our team and 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
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.