Re: Menu Items "Save" "Save As" and "Revert" won't enable for Document
Re: Menu Items "Save" "Save As" and "Revert" won't enable for Document
- Subject: Re: Menu Items "Save" "Save As" and "Revert" won't enable for Document
- From: Jerry Krinock <email@hidden>
- Date: Mon, 21 Aug 2006 17:36:03 -0700
- Thread-topic: Menu Items "Save" "Save As" and "Revert" won't enable for Document
on 06/08/21 14:35, Michael Nickerson at email@hidden wrote:
> Either way, you can always implement -validateMenuItem: in your
> document subclass and do your own custom validation there for the
> menu items.
Ah, yes. It never occurred to me that NSDocument would be getting
-validateMenuItem for the main menu. (I'd have thought that such a thing
would be handled by the NSDocumentController).
As it turns out, I had already implemented -validateMenuItem for a popUp
menu in the document window, but was returning NO for unknown items instead
of forwarding to super.
Problem is now fixed. Thank you, Michael!
Jerry Krinock
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden