• 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: 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
  • Follow-Ups:
    • Re: NSMutableArray is immutable when unarchived
      • From: Nick Zitzmann <email@hidden>
    • Re: NSMutableArray is immutable when unarchived
      • From: SA Dev <email@hidden>
References: 
 >NSMutableArray is immutable when unarchived (From: nick briggs <email@hidden>)

  • Prev by Date: Re: Scheduling tasks
  • Next by Date: Re: NSMutableArray is immutable when unarchived
  • Previous by thread: NSMutableArray is immutable when unarchived
  • Next by thread: Re: NSMutableArray is immutable when unarchived
  • Index(es):
    • Date
    • Thread