Re: NSMutableArray is immutable when unarchived
Re: NSMutableArray is immutable when unarchived
- Subject: Re: NSMutableArray is immutable when unarchived
- From: SA Dev <email@hidden>
- Date: Fri, 15 Jul 2005 08:41:05 -0400
Nick:
You're replacing your _triggers NSMutableArray with an NSArray on
init. :-)
[NSMutableArray array] returns an NSArray - immutable.
Try:
_triggers = [[NSMutableArray alloc] init];
On Jul 15, 2005, at 6:02 AM, nick briggs wrote:
- (id)initWithObject:(id)anObject
{
if(self = [super init])
{
...
_triggers = [[NSMutableArray array]retain];
...
}
return self;
}
_______________________________________________
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