• 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
Re: Dynamically validating undo menu item availability (NSUndoManager)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamically validating undo menu item availability (NSUndoManager)


  • Subject: Re: Dynamically validating undo menu item availability (NSUndoManager)
  • From: Mike Abdullah <email@hidden>
  • Date: Fri, 11 Jan 2008 22:46:54 +0000

The -validateMenuItem: method in an appropriate controller should do wonders.

Mike.

On 11 Jan 2008, at 22:22, Lachlan Cotter wrote:

Hi Cocoabuilders,


I've got a situation where I'm performing operations on the file system and I want those operations to be undoable. The tricky part is that because the file system can be changed by anyone at anytime, I can't necessarily assume that it will be in a state which is consistent with how I made my change. I have routines which can check for this and determine whether or not I am able to undo, but I don't know the best way to work with the UndoManager on this.


How can I proactively get my validation routine called and disable to undo menu item when it is not available?


Cheers, Lach

_______________________________________________

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

_______________________________________________

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: Dynamically validating undo menu item availability (NSUndoManager)
      • From: mmalc crawford <email@hidden>
References: 
 >Dynamically validating undo menu item availability (NSUndoManager) (From: Lachlan Cotter <email@hidden>)

  • Prev by Date: Dynamically validating undo menu item availability (NSUndoManager)
  • Next by Date: "Reloading" an NSBrowser bound to an NSTreeController
  • Previous by thread: Dynamically validating undo menu item availability (NSUndoManager)
  • Next by thread: Re: Dynamically validating undo menu item availability (NSUndoManager)
  • Index(es):
    • Date
    • Thread