Re: Quit and save menu item enabling
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