A couple years ago, I was able to debug Undo issues in documents by reading the 
_changeCount instance variable of an NSDocument.  Although it was not exposed 
in the API, the offset of this instance variable could be determined by doing a 
class dump on AppKit.

But it seems that, starting with Mac OS X 10.7, NSDocument no longer has a 
_changeCount.  Neighboring instance variables are still in there.  This is kind 
of surprising.  Although I understand that changes were made to support Auto 
Save and Versions, I don't think any of this affected the Undo architecture.  
According to the archived Release Notes [1], the last significant change to 
document undo was made with Mac OS X 10.5.

It would be helpful if someone could explain what happened to the "change 
count" function in NSDocument.  Is there a modern equivalent?

Thanks,

Jerry Krinock


[1] 
https://developer.apple.com/library/mac/#releasenotes/Cocoa/AppKitOlderNotes.html
_______________________________________________

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

This email sent to arch...@mail-archive.com

Reply via email to