Adding an alert for closing a custom view

You can add an alert to display when a user closes a custom view in the app.

Perform this task by editing the file MyConfiguration.plist in the copy of the DeploymentKitApp in Xcode on your computer.

Procedure

  1. In the file MyConfiguration.plist, in the Property List view, locate the key labelled CustomViewCloseAlertMessage.
    Key Type Value
    CustomViewCloseAlertMessage String Custom View Close Alert Message
  2. Edit the entry, providing the alert message to display.

    The alert is displayed only if the message setting contains one or more characters for the string value.

    Note: In the Source Code view, this section appears as follows.
    <key>CustomViewCloseAlertMessage</key>
    <string>Custom View Close Alert Message</string>
    
    Key Type Value
    CustomViewCloseAlertMessage String My new custom view close message.
  3. Optional: Locate the key labelled CustomViewCloseAlertTitle.
    Key Type Value
    CustomViewCloseAlertTitle String Custom View Close Alert Title
  4. Optional: Edit the entry, providing the title for the alert message.
    Note: In the Source Code view, this section appears as follows.
    <key>CustomViewCloseAlertTitle</key>
    <string>Custom View Close Alert Title</string>
    Key Type Value
    CustomViewCloseAlertTitle String My new custom view close title.

Result

The customized alert is displayed when the user closes the custom web view that is used for custom startup action and for customized menu items.
Related reference