On Apr 2, 2009, at 10:57 PM, Huibert Aalbers wrote:
Hi everyone,
I am writing an application that offers support for Undo/Redo.
Everything works fine, except for a small detail that bothers me.
Since I set the document edited flag manually, using the [theWindow
setDocumentEdited:YES]
Ashley,
Thanks for your advice. I think you are right, I have implemented
Graham's recommendation but even though undo/redo works fine, as you
mention, there seems to be no effect on the window's dirty state.
Regards,
Huibert
On 03/04/2009, at 10:22 a.m., Ashley Clark wrote:
On Apr 2,
Hi everyone,
I am writing an application that offers support for Undo/Redo.
Everything works fine, except for a small detail that bothers me.
Since I set the document edited flag manually, using the [theWindow
setDocumentEdited:YES] instruction each time the document is modified,
I have
On 03/04/2009, at 2:57 PM, Huibert Aalbers wrote:
The solution would be to set the document edited flag based on the
status of the Undo menu item state. Is there a simple way to do this?
Yes: leave it alone entirely. The Undo manager will manage this flag
automatically.
--Graham
Wow,
That certainly qualified as a simple solution :-) However, it didn't
work. Maybe that is because my application is not document-based.
Any additional suggestions?
Regards,
Huibert
On 02/04/2009, at 09:59 p.m., Graham Cox wrote:
On 03/04/2009, at 2:57 PM, Huibert Aalbers wrote:
On 03/04/2009, at 3:15 PM, Huibert Aalbers wrote:
Wow,
That certainly qualified as a simple solution :-) However, it didn't
work. Maybe that is because my application is not document-based.
Any additional suggestions?
Hrrm, well, you didn't actually mention that rather important