DTLocalizableStringTable Class Reference
| Inherits from | NSObject |
| Declared in | DTLocalizableStringTable.h |
Overview
Class representing a strings table. A strings table consists of key value pairs which are represented by DTLocalizableStringEntry instances.
Tasks
Getting Information
-
nameproperty -
shouldDecodeUnicodeSequencesproperty -
entriesproperty
Creating a String Table
Modifying the String Table
Creating Output
Properties
entries
The string table entries of the receiver
@property (nonatomic, readonly) NSArray *entriesDeclared In
DTLocalizableStringTable.hInstance Methods
addEntry:
Appends a new string table entry to the receiver
- (void)addEntry:(DTLocalizableStringEntry *)entryParameters
- entry
The new entry to add
Declared In
DTLocalizableStringTable.hinitWithName:
Creates a new string table with a given name
- (id)initWithName:(NSString *)nameParameters
- name
The name of the string table
Declared In
DTLocalizableStringTable.hstringRepresentationWithEncoding:error:entryWriteCallback:
Creates a textual representation of the string table
- (NSString *)stringRepresentationWithEncoding:(NSStringEncoding)encoding error:(NSError **)error entryWriteCallback:(DTLocalizableStringEntryWriteCallback)entryWriteCallbackParameters
- encoding
The output string encoding
- error
If an error occurs it will be output via this parameter
- entryWriteCallback
The block to execute before an entry is output
Return Value
An NSString containing the contents of the receiver
Declared In
DTLocalizableStringTable.hwriteToFolderAtURL:encoding:error:entryWriteCallback:
Writes a textual representation of the string table into a file
- (BOOL)writeToFolderAtURL:(NSURL *)url encoding:(NSStringEncoding)encoding error:(NSError **)error entryWriteCallback:(DTLocalizableStringEntryWriteCallback)entryWriteCallbackParameters
- url
The file URL to write to
- encoding
The output string encoding
- error
If an error occurs it will be output via this parameter
- entryWriteCallback
The block to execute before an entry is output
Return Value
An NSString containing the contents of the receiver
Declared In
DTLocalizableStringTable.h