Re: NSArrayController -addObjects and undo - [improved but still confused]
Re: NSArrayController -addObjects and undo - [improved but still confused]
- Subject: Re: NSArrayController -addObjects and undo - [improved but still confused]
- From: Quincey Morris <email@hidden>
- Date: Tue, 10 Nov 2009 14:29:03 -0800
On Nov 10, 2009, at 14:08, email@hidden wrote:
I accept all of this except that when observing NSArrayController -
arrangedObjects it seems that NSKeyValueChangeSetting is all you
ever get, regardless of the nature of the changes to the underlying
content.
If you're really getting a stream of NSKeyValueChangeSetting
notifications for the same array property during undo, it would be
worth submitting a bug report. The behavior indicates that whatever is
responsible for KVO compliance (which might be Core Data itself, or
the NSArrayController) isn't being careful about how it's applying the
changes. It's still an implementation detail, but your expectation of
*one* of those non-specific notifications (or several of the more fine-
grained notifications) seem reasonable.
But from an NSUndoManager perspective it would seem like a rational
expectation that is not met in practice.
It's very unlikely that this is the undo manager's fault. It sounds
more like a slight flaw in Core Data, or an "impedance mismatch"
between Core Data and NSArrayController.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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