• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
writing NSMutableArray without propertylist objects into a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: USBSampleMIDIDriver
  • Next by Date: System default audio output processing
  • Previous by thread: USBSampleMIDIDriver
  • Next by thread: System default audio output processing
  • Index(es):
    • Date
    • Thread