• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
What happened to NSDocument's changeCount?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: What happened to NSDocument's changeCount?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Dynamic Method Creation
  • Next by Date: Re: What happened to NSDocument's changeCount?
  • Previous by thread: Re: lion/mt. lion: preventing qtmovieview from taking key strokes
  • Next by thread: Re: What happened to NSDocument's changeCount?
  • Index(es):
    • Date
    • Thread