| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
plist = [[NSDictionary alloc] initWithContentsOfFile:[@"~/Music/iTunes/iTunes Music Library.xml" stringByExpandingTildeInPath]];
vince
Le vendredi, 6 dic 2002, ` 04:57 Europe/Zurich, crucial felix a icrit :
i try using this: NSPropertyListSerialization method:
+ (id)propertyListFromData:(NSData *)data mutabilityOption:(NSPropertyListMutabilityOptions)opt format:(NSPropertyListFormat *)format errorDescription:(NSString **)errorString
he he he, you mismatched the types
here is the right code
NSString * errorString;
int format;
[NSPropertyListSerialization
propertyListFromData:data mutabilityOption:NSPropertyListMutableContainersAndLeaves
format: &format
errorDescription:&errorString];
if(errorString)
{
NSLog(errorString);
[errorString autorelease];
}
| References: | |
| >Re: NSData to plist (From: Jérôme Laurens <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.