The unload:language:territory:characterSet:index: protocol is used to create or add an indexed message to a message catalog file for a particular locale and character set. This protocol can also be used to overwrite the value of an existing indexed external message. Several indexed external messages can be stored in a single message catalog file by making repeated calls using
unload:language:territory:characterSet:index:. The following example illustrates the process of unloading indexed messages into a message catalog file. Return values of all
NlsMessageCatalog operations must be checked to ensure that the operation has succeeded.
The loadLanguage:territory:characterSet:index: protocol retrieves an indexed external message from a message catalog file. The
NlsMessageCatalog answers the message retrieved from the catalog, or
nil if an error occurs. The following example illustrates the procedure for loading indexed external messages.
You can delete an indexed external message from a message catalog file using the deleteIndex:language:territory:characterSet: protocol. This operation removes only the indexed external message stored for the specified language, territory, character set, and index and does not affect any other indexed external messages or message dictionaries. The following example demonstrates how to delete an indexed external message from a message catalog file.