• 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: validateMenuItem Not Called for Undo: Menu Item?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: validateMenuItem Not Called for Undo: Menu Item?


  • Subject: Re: validateMenuItem Not Called for Undo: Menu Item?
  • From: Vik Rubenfeld <email@hidden>
  • Date: Thu, 25 Aug 2011 19:39:59 -0700

Thank you very much, Quincey. That fixed it.


On Aug 25, 2011, at 7:00 PM, Quincey Morris wrote:

> Configuring the Undo menu item with action 'undo:' tells the frameworks that this is *the* undo menu item, so it becomes one element of a standard undo UI mechanism implemented in NSWindow. Under these circumstances, the menu item (and especially its validation) isn't yours to mess with. The proper way to provide an undo manager object to this mechanism is to use the 'windowWillReturnUndoManager:' window delegate method.

_______________________________________________

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

References: 
 >validateMenuItem Not Called for Undo: Menu Item? (From: Vik Rubenfeld <email@hidden>)
 >Re: validateMenuItem Not Called for Undo: Menu Item? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: validateMenuItem Not Called for Undo: Menu Item?
  • Next by Date: Re: rightMouseDown: never called in NSView subclass
  • Previous by thread: Re: validateMenuItem Not Called for Undo: Menu Item?
  • Next by thread: Persistant reference to file that is not a path?
  • Index(es):
    • Date
    • Thread