• 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
Linking the "document edited" flag to the Undo menu item state
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linking the "document edited" flag to the Undo menu item state


  • Subject: Linking the "document edited" flag to the Undo menu item state
  • From: Huibert Aalbers <email@hidden>
  • Date: Thu, 2 Apr 2009 21:57:00 -0600

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 no way to remove the flag when a user undoes all the changes.

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?

Thanks in advance,

Huibert
_______________________________________________

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: Linking the "document edited" flag to the Undo menu item state
      • From: Ashley Clark <email@hidden>
    • Re: Linking the "document edited" flag to the Undo menu item state
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Toll-free bridge type at runtime
  • Next by Date: Re: Linking the "document edited" flag to the Undo menu item state
  • Previous by thread: Re: Loading a view controller from a tab bar controller
  • Next by thread: Re: Linking the "document edited" flag to the Undo menu item state
  • Index(es):
    • Date
    • Thread