Kevin, thanks for that. This was exactly the problem. My text view subclass
asks its delegate for an undo manager, and I forgot to implement the delegate
method in this particular document subclass.
Many thanks!
Martin
On May 23, 2012, at 07:00 PM, Kevin Perry wrote:
>
> On May 23, 2012, at
On May 23, 2012, at 12:43 PM, Martin Hewitson
wrote:
>
> On May 23, 2012, at 05:30 PM, Kevin Perry wrote:
>
>> Does "Revert to Last Saved" become available after saving and editing? Which
>> NSDocument methods are you overriding?
>
> I override:
>
> -autosavesInPlace
> -readFromURL:ofType:e
On May 23, 2012, at 9:43 AM, Martin Hewitson wrote:
>> It is indeed -updateChangeCount: that controls the 'Edited' state. You might
>> try overriding with a call to super and setting a breakpoint or adding a log
>> to make sure it's being called as expected (with NSChangeDone). That should
>>
On May 23, 2012, at 05:30 PM, Kevin Perry wrote:
> Does "Revert to Last Saved" become available after saving and editing? Which
> NSDocument methods are you overriding?
I override:
-autosavesInPlace
-readFromURL:ofType:error:
-writeToURL:ofType:error:
-saveDocument:
plus some others (like -pr
Does "Revert to Last Saved" become available after saving and editing? Which
NSDocument methods are you overriding?
It is indeed -updateChangeCount: that controls the 'Edited' state. You might
try overriding with a call to super and setting a breakpoint or adding a log to
make sure it's being c
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