Generating Object API Code

Goal: Launch the code generation wizard and generate the Object API code for a message-based iPhone application.

  1. Right-click in the SUP101 Mobile Application Diagram and select Generate Code.
  2. In the code generation wizard, accept the default, Continue without a configuration, and click Next.
  3. Enter these configuration options and click Next:
    Option Description
    Language Select Objective-C.
    Platform Accept the default, iPhone.
    Unwired server Select My Unwired Server.
    Server domain Accept default.
    Name prefix The prefix for the generated files. Leave blank.
    Project path Accept the default or enter a different location for the generated project files.
    Clean up destination before code generation Select this option to clean up the destination folder before generating the device client files.
    Message-based Selected by default when you select Objective-C as the language.

    iphone_code_generation_configure
  4. In the next window, select the mobile business objects for which to generate the metadata classes and click Finish.
    This generates Objective-C code into the specified output location.