• 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
Automatically disabled menu items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: iMovie like time-line animation.
  • Next by Date: Re: Mixing Objective-C and C++ in Xcode
  • Previous by thread: Re: iMovie like time-line animation.
  • Next by thread: Rotating text fields
  • Index(es):
    • Date
    • Thread