Re: WOBrowser Error java.lang.UnsupportedOperationException: addAll is not a supported operation in com.webobjects.foundation.NSArray
Re: WOBrowser Error java.lang.UnsupportedOperationException: addAll is not a supported operation in com.webobjects.foundation.NSArray
- Subject: Re: WOBrowser Error java.lang.UnsupportedOperationException: addAll is not a supported operation in com.webobjects.foundation.NSArray
- From: David Avendasora <email@hidden>
- Date: Tue, 06 Sep 2011 09:59:59 +0800
On Sep 6, 2011, at 4:05 AM, Johann Werner wrote:
> That error suggests that you want to add objects to an NSArray. An NSArray is immutable thus the error 'not supported'. You should use NSMutableArrays.
You could fill and NSArray<NSArraysAreNotMutableMistake> with the number of times I've made this mistake. The oddities of an immutable class extending a mutable one...
Actually, make that an NSMutableArray<NSArraysAreNotMutableMistake> because I know I'll make it again. Probably tomorrow.
Dave
PS. Okay! Fine, Chuck! I'll probably make this mistake yet today.
Grumble.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden