Re: NSArrayController and the single NSMutableArray
Re: NSArrayController and the single NSMutableArray
- Subject: Re: NSArrayController and the single NSMutableArray
- From: Scott Stevenson <email@hidden>
- Date: Wed, 4 May 2005 17:20:15 -0700
On May 4, 2005, at 5:11 PM, Glen Low wrote: Surely addObject: qualifies as "one of the key-value-coding-compliant array mutation methods"? (Or do I really have to -willChange:valuesAtIndexes:forKey every time I touch the NSMutableArray??)
I haven't played with this particular issue on Tiger yet, but Panther required that do some special things to make this work. Two of the more popular options are:
1. Implement indexed accessors for the key:
2. Use the array proxy returned from -mutableArrayValueForKey: instead of the array itself. This approach is much cleaner in my opinion, but it is possibly slower than the other.
- Scott
|
_______________________________________________
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