Re: validateMenuItem Not Called for Undo: Menu Item?
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