Dear list,

I have an NSDocument app that implements autosave and versions on Lion. The 
NSDocument subclass is essentially a text editor. If I create a new document 
and type something in the text view then the 'Edited' tag appears. I then save 
the document to disk. After this, typing in the text view no longer triggers 
the 'Edited' state and hence no versions are autosaved. However, using "Save a 
Version" works fine, and I can view the versions in the versions browser.

Does anyone have a clue what I'm missing? As I understand it, if I'm using the 
default NSDocument undo mechanism (which I believe I am - at least undo/redo 
works on the editor) then I don't need to manually call -updateChangeCount:.

What else could I be doing wrong?

Many thanks for any suggestions,

Martin

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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