Deprecated NSXMLElement Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in OS X v10.7

setAttributesAsDictionary:

Sets the attributes of the receiver based on the key-value pairs specified in the passed-in dictionary. (Deprecated in OS X v10.7. This method is deprecated because it does not function properly. Instead use setAttributesWithDictionary:.)

- (void)setAttributesAsDictionary:(NSDictionary *)attributes
Parameters
attributes

A dictionary of key-value pairs where the attribute name is the key and the object value of the attribute is the dictionary value.

Discussion

The method uses these names and object values to create NSXMLNode objects of kind NSXMLAttributeKind. Existing attributes are removed.

Availability
  • Available in OS X v10.4 and later.
  • Deprecated in OS X v10.7.
Declared In
NSXMLElement.h

Did this document help you? Yes It's good, but... Not helpful...