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 protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to