• 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
Read only NSMutableArray after unarchiving
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Read only NSMutableArray after unarchiving


  • Subject: Read only NSMutableArray after unarchiving
  • From: David Lee <email@hidden>
  • Date: Thu, 12 Dec 2002 13:26:19 +0100

Hi,

I have been having some trouble with encoding and decoding using NSArchiver/NSUnarchiver under Mac OS X 10.1.5.
Basically I have been encoding NSMutableArray objects (which themselves are filled with objects that follow the NSCoding protocol). My application decodes all the data correctly however I get this message when running from within project builder whenever I try to edit one of the arrays that has been deserialized from disk. It seems it is now a read only array. What do I have to do to stop this behaviour?

RRV Studio[691] *** -[NSCFArray removeObjectAtIndex:]: mutating method sent to immutable object

Dave Lee
University of the West of England (U.W.E)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: How to archive opaque CF objects
  • Next by Date: NSRunLoop and NSURL
  • Previous by thread: Re: How to archive opaque CF objects
  • Next by thread: Re: Read only NSMutableArray after unarchiving
  • Index(es):
    • Date
    • Thread