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
-
name
property -
shouldDecodeUnicodeSequences
property -
entries
property
Creating a String Table
Modifying the String Table
Creating Output
Properties
entries
The string table entries of the receiver
@property (nonatomic, readonly) NSArray *entries
Declared In
DTLocalizableStringTable.h
Instance Methods
addEntry:
Appends a new string table entry to the receiver
- (void)addEntry:(DTLocalizableStringEntry *)entry
Parameters
- entry
The new entry to add
Declared In
DTLocalizableStringTable.h
initWithName:
Creates a new string table with a given name
- (id)initWithName:(NSString *)name
Parameters
- name
The name of the string table
Declared In
DTLocalizableStringTable.h
stringRepresentationWithEncoding:error:entryWriteCallback:
Creates a textual representation of the string table
- (NSString *)stringRepresentationWithEncoding:(NSStringEncoding)encoding error:(NSError **)error entryWriteCallback:(DTLocalizableStringEntryWriteCallback)entryWriteCallback
Parameters
- 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
writeToFolderAtURL: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)entryWriteCallback
Parameters
- 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