Re: Disabling Undo in Core Data
Re: Disabling Undo in Core Data
- Subject: Re: Disabling Undo in Core Data
- From: Quincey Morris <email@hidden>
- Date: Sat, 1 Aug 2009 12:59:07 -0700
On Aug 1, 2009, at 12:38, Jerry Krinock wrote:
On 2009 Aug 01, at 05:11, Squ Aire wrote:
2) Which brings me to the second option. Keep the undo stuff there
so that the NSManagedObjectContextObjectsDidChangeNotification will
properly be sent out, as I want. However, instead just get rid of
the Undo and Redo menu items.
I'd say it's quite reliable!
If that's going to be the solution, I'd suggest also doing
'document.undoManager.levelsOfUndo = 1'. (In OldSpeak: '[[document
undoManager] setLevelsOfUndo: 1]'.)
WRT the larger issue, we know that there's nothing accidental in the
Core Data APIs. It's *possible* that this is a defect in the Core Data
design (needing undo enabled in order to get change notifications),
but it's also *possible* that there's a carefully thought-out reason
why the two things are linked. (For example, that the information
needed to produce the notifications is precisely the same as the
information needed for undo. So, beyond removing the menu items and
limiting the number of undo actions as above, the perceived need to
turn off Core Data undo may be imaginary.)
Did you post here in general about the limitations you found in using
the notifications? It's likely you posted specifics, but was there a
higher level discussion that I don't recall?
_______________________________________________
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