Re: NSArrayController - Mutability lost?
Re: NSArrayController - Mutability lost?
- Subject: Re: NSArrayController - Mutability lost?
- From: mmalcolm crawford <email@hidden>
- Date: Sat, 16 Apr 2005 13:32:19 -0700
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
_______________________________________________
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