• 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: Menu Items "Save" "Save As" and "Revert" won't enable for Document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Menu Items "Save" "Save As" and "Revert" won't enable for Document (From: Michael Nickerson <email@hidden>)

  • Prev by Date: Re: Is there a standard for the blue shading of table views?
  • Next by Date: Re: Is there a standard for the blue shading of table views?
  • Previous by thread: Re: Menu Items "Save" "Save As" and "Revert" won't enable for Document
  • Next by thread: Providing application resources to a Plugin
  • Index(es):
    • Date
    • Thread