Re: "save as" in a document based app
Re: "save as" in a document based app
- Subject: Re: "save as" in a document based app
- From: Sherm Pendley <email@hidden>
- Date: Mon, 26 Mar 2007 18:20:51 -0400
On Mar 26, 2007, at 5:58 PM, Jaime Magiera wrote:
Well, OK, here's a conundrum... I hooked up the action as you
said.. but when the app is launched, the menu item is greyed out.
Even if I try saving, opening docs etc. That's why I'm asking
about the process. Something seems to be disabled somewhere... or
not right.
By default, a menu item that's connected to First Responder is
enabled if something in the responder chain implements its action
method. Since NSDocument implements it, and document instances are
certainly in the responder chain, the problem must lie elsewhere.
The previous developer didn't by any chance create a -
validateMenuItem: method, did he? That can be used to override the
default behavior above.
sherm--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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