What happened to NSDocument's changeCount?
What happened to NSDocument's changeCount?
- Subject: What happened to NSDocument's changeCount?
- From: Jerry Krinock <email@hidden>
- Date: Sun, 16 Sep 2012 12:47:02 -0700
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 (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