Re: No sure way to tell whether an array is mutable?
Re: No sure way to tell whether an array is mutable?
- Subject: Re: No sure way to tell whether an array is mutable?
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 25 Jan 2007 19:43:31 -0700
On Jan 25, 2007, at 7:21 PM, Kenny Leung wrote:
I think I have just been burned by something sinister: an object
says that it is an NSMutableArray, but turns out to be non-mutable.
The only (publicly available) method I know of telling an NSArray and
an NSMutableArray apart is by calling -classForCoder on the array. A
mutable array will return [NSMutableArray class]; an immutable array
won't.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden