writing NSMutableArray without propertylist objects into a file
writing NSMutableArray without propertylist objects into a file
- Subject: writing NSMutableArray without propertylist objects into a file
- From: "sandeep chandran" <email@hidden>
- Date: 13 Jun 2007 13:09:28 -0000
hi all,
Sorry this is not a QT related problem,
i have a NSMutableArray selectedSamples, and the array elements are objects of type
Samples
Samples is a class that holds the property of each sample.
i want to write selectedsamples to a file and need to read it back.
NSMutableArray's WriteToFile function is returning NO because objects are not propertylist
objects.
converting this array to mutable dictonary has the same effect.
i tried this method
NSFileManager *fM = [NSFileManager defaultManager];
[fM createFileAtPath:@"/tempfile" contents:[NSArchiver
archivedDataWithRootObject:selectedQuestions ] attributes:nil];
and is also not working.
can anyone suggest the right way of reading and writing NSMutableArry whose elements are
class Objects (that are not in property list).
Thanking you
Sandeep
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden