[NSString propertyList]

plisthover.pngNSString has a great little method prototyped as

- (id)propertyList

What does it do? To quote the docs:

Parses the receiver as a text representation of a property list, returning an NSString, NSData, NSArray, or NSDictionary object, according to the topmost element.

If you started staring at CFPropertyList(…) functions, just trying to figure out how to read a plist file, the ‘propertyList’ method of NSString is tums for your heart burn.

Also, I’m loving the developer doc’s new “hover over a method to see the short description” as pictured above. If you don’t see this, grab the March ADC Reference Library Update.

Leave a Reply


© 2006 roobasoft, LLC