Automatically disabled menu items
Automatically disabled menu items
- Subject: Automatically disabled menu items
- From: Hamish Allan <email@hidden>
- Date: Thu, 1 Jul 2004 17:59:43 +0100
Hi all,
Under what circumstances will Cocoa's document-based architecture
automatically disable the 'Save' menu item?
In my doc-based app, 'Save' is always greyed out wheras 'Save as...' is
not. The document's file is writeable. I'm updating the document's
change count, so 'Revert' works fine. 'Save as...' also works fine.
What might I be missing? The only non-standard thing I'm doing is
returning NO for applicationShouldOpenUntitledFile (empty files are
meaningless as my app is designed to populate existing files with
metadata). If I return YES instead, 'Save' is enabled for a new file,
but of course it's just hooked up to 'Save as...'.
Any ideas?
Thanks,
Hamish
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.