Software Development Kit
to the Delphi-Win32 and Free Pascal compilers
Home > Wiki > Creating application

Creating application

english (en)

This document contains a summary of the steps necessary to create an application with PressObjects. Several of the following steps will be improved or removed when the Project Explorer, which is under development, becomes available.

  • Create a new project
  • If required, create the Presenter of the main form (see MVP);
  • If the project is a program, modify the main project file by substituting the call to 'Application.Run' with:
    • '<MainPresenterClass>.Run' - if the application has a main Presenter class, or
    • 'PressApp.Run' (PressApplication unit) - if the application doesn't have a main Presenter class.
  • If the project is not a program, therefore isn't possible to change the 'Application.Run' call, create an initialization section on any unit of the project with PressApp.InitPackage call. Some of the internal services of the PressObjects SDK need this call to work properly;
  • Include the persistence service in the project (see Persistence);
  • Create a business class model (see Business classes). Note that the current InstantObjects' broker implementation requires two synchronized business models, the PressObjects model (used by several PressObjects frameworks) and the InstantObjects model (used to create and synchronize the database, and to retrieve and store persistent objects);
  • Create forms for the business classes;
  • Create a Presenter for each form (see MVP);
  • Create Commands and connect them as desired - with the Model through its context menu, and/or with visual components and/or menu items (see MVP).