• 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: Quit and save menu item enabling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quit and save menu item enabling


  • Subject: Re: Quit and save menu item enabling
  • From: John Timmer <email@hidden>
  • Date: Tue, 21 Jun 2005 08:30:55 -0400

> The Save and Save As items are not enabled when I update the change
> count, although I am prompted to save changes if I attempt to close
> the document. Do I need to enable/disable them myself? Or do I need
> to call [super validateMenuItem...] for any item that I don't deal with?

For document based apps, the last line in your menu item validations should
always be:
return [super validateMenuItem: anItem];

The only exception to this is if you have some sort of auxiliary window
open, and you don't want things to fall through up the responder chain.


JT

_______________________________________________
This mind intentionally left blank


 _______________________________________________
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: 
 >Quit and save menu item enabling (From: Andy Bettis <email@hidden>)

  • Prev by Date: Another NSXMLParser question (multiple delegates)
  • Next by Date: Re: Xcode 2.1 debugging
  • Previous by thread: Quit and save menu item enabling
  • Next by thread: Another NSXMLParser question (multiple delegates)
  • Index(es):
    • Date
    • Thread