NSUndoManager w/ Document based app
NSUndoManager w/ Document based app
- Subject: NSUndoManager w/ Document based app
- From: Luc Van Bogaert <email@hidden>
- Date: Wed, 25 Jan 2012 22:23:30 +0100
Hi,
I'm currently experimenting for the first time with NSUndoManager in a document-based app. I think I understand the most important basics, and have even succeeded in implementing some working code, where objects can be added or removed from an array property in some model object, which is a subclass of NSDocument, all with working undo/redo capability.
One thing I don't quite understand is why my document windows won't display the 'dot' in the close button when the model array property changes, even though my documents seem to keep track of the edited state correctly when I close the windows, because closing a dirty document window brings up a save dialog as expected, and a unedited one does not.
As I understand, this should automatically be taking care of by the undo manager, and I'm not supposed to send a updateChangeCount: message.
Thanks for any advice.
--
Luc Van Bogaert
_______________________________________________
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