Generate Objective-C code for applications that will run on Apple devices.
From | Action |
---|---|
The Mobile Application Diagram | Right-click within the Mobile Application Diagram and select Generate Code. |
WorkSpace Navigator | Right-click the Mobile Application project folder that contains the mobile objects for which you are generating API code, and select Generate Code. |
Option | Enter |
---|---|
Language | Objective-C |
Platform | iOS |
Unwired Server | Specify an Unwired Server connection profile to which the generated code connects at runtime. |
Server domain | Choose the domain to which the generated code will connect. If you specified an Unwired Server to which you previously connected successfully, the first domain in the list is chosen by default. You can enter a different domain manually. Note: This field is only enabled when an Unwired Server is selected.
|
Page size | Not enabled for Objective-C. |
Name Prefix | Enter a name prefix for Objective C. |
Destination | Specify the destination of the generated device client files. Enter (or Browse) to either a Project path (Mobile Application project) location or File system path location. Select Clean up destination before code generation to clean up the destination folder before generating the device client files. |
Replication-based | This option is not available for iOS. |
Message-based | Selected by default. |
By default, the MBO source code and supporting documentation are generated in the project's Generated Code folder. The generated files are located in the <MBO_project_name> folder under the includes and src folders. The includes folder contains the header (*.h) files and the src folder contains the implementation (*.m) files.
Because there is no namespace concept in Objective-C, all generated code is prefixed with packagename_. For example, "SampleApp_".
Objective-C File | Description |
---|---|
MBO class (for example, SampleApp_Customer.h, SampleApp_Customer.m) | Include all the attributes, operations, object queries, and so on, defined in this MBO. |
synchronization parameter class (for example, SampleApp_CustomerSynchronizationParameter.h, SampleApp_CustomerSynchronizationParameter.m) | Include any synchronization parameters defined in this MBO. |
Key generator classes (for example, SampleApp_KeyGenerator.h, SampleApp_KeyGenerator.m) | Include generation of surrogate keys used to identify and track MBO instances and data. |
Personalization parameter classes (for example, SampleApp_PersonalizationParameters.h, SampleApp_PersonalizationParameters.m) | Include any defined personalization keys. |