On Nov 10, 2009, at 14:08, jonat...@mugginsoft.com 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com