Re: NSMutableArray is immutable when unarchived
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