Skip navigation.
 
mlRe: NSArrayController - Mutability lost?
FROM : mmalcolm crawford
DATE : Sat Apr 16 22:32:19 2005

On Apr 16, 2005, at 10:32 AM, Diggory Laycock wrote:

> I still think it's odd that the controller appears to be altering 
> the class of my model's property.
>


It certainly shouldn't be doing that...

I wasn't sure exactly what accessor methods you have.  Have you 
implemented a set<Array> method that looks like this:

- set<Array>:(NSMutableArray *)newArray {
    // ...
    array = [newArray copy];
}

?

If you've used 'copy', note that it returns a new *immutable* array. 
You must use 'mutableCopy'...

If this isn't it, could you give a little more detail?

mmalc

Related mailsAuthorDate
mlNSArrayController - Mutability lost? Diggory Laycock Apr 16, 15:50
mlRe: NSArrayController - Mutability lost? mmalcolm crawford Apr 16, 18:01
mlRe: NSArrayController - Mutability lost? Diggory Laycock Apr 16, 19:32
mlRe: NSArrayController - Mutability lost? mmalcolm crawford Apr 16, 22:32