• 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
Re: NSMutableArray is immutable when unarchived
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableArray is immutable when unarchived


  • Subject: Re: NSMutableArray is immutable when unarchived
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 15 Jul 2005 07:15:10 -0600


On Jul 15, 2005, at 06:41 AM, SA Dev wrote:

You're replacing your _triggers NSMutableArray with an NSArray on init. :-)

[NSMutableArray array] returns an NSArray - immutable.

That is incorrect; -[NSMutableArray array] returns an autoreleased NSMutableArray. Notice that it returns an object of type "id" rather than an object of type "NSArray"... That's so subclasses can return their own version of the object.


Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >NSMutableArray is immutable when unarchived (From: nick briggs <email@hidden>)
 >Re: NSMutableArray is immutable when unarchived (From: SA Dev <email@hidden>)

  • Prev by Date: SOLVED: NSMutableArray is immutable when unarchived
  • Next by Date: CoreData: "Can't reassign an object to a different store once it has been saved."?
  • Previous by thread: SOLVED: NSMutableArray is immutable when unarchived
  • Next by thread: html for safari on the fly
  • Index(es):
    • Date
    • Thread