Skip to content
mirek edited this page Sep 26, 2010 · 2 revisions

YAML.framework for Objective-C

## Reading

+ (NSMutableArray *) YAMLWithStream: (NSInputStream *) stream options: (YAMLReadOptions) opt error: (NSError **) error;
+ (NSMutableArray *) YAMLWithData: (NSData *) data options: (YAMLReadOptions) opt error: (NSError **) error;

Read options:

  • kYAMLReadOptionImmutable
  • kYAMLReadOptionMutableContainers
  • kYAMLReadOptionMutableContainersAndLeaves
  • kYAMLReadOptionStringScalars - values are read as NSString. Useful in the situations where you're just interested in displaying information, for example in the table cells.

Returned object will be a list of documents. Often you will be interested in just the first document.

Clone this wiki locally