• 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: NSDocument autosavesInPlace and additional menu items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument autosavesInPlace and additional menu items


  • Subject: Re: NSDocument autosavesInPlace and additional menu items
  • From: Redler Eyal <email@hidden>
  • Date: Fri, 5 May 2017 02:07:51 +0300

>> my menu nib contains "Save" and "Save As...” items
>
> What is the IB action associated with your Save As item? It’s not clear how Cocoa recognizes the menu item, but the action seems like the likely mechanism. Or it could be by standardized name, so your old menu might (e.g.) have three periods where an ellipsis is expected.


The action is saveDocumentAs: and it is the same as in the vanilla project I've created for testing.
It makes sense that it the action that is used to identify the item, especially since the addition of items also works when running in other localisations.

>
>> A test app I created from a template also has "Save" and "Save as..." but the "Save as..." is replaced by duplicate when running.
>
> According to the 10.7 release notes, Duplicate is added, and Save As is “hidden”. You’re getting the addition, just not getting the hiding.
>
> If you can’t figure it out, there may be some IB magic in the File menu that your XIB doesn’t have because it’s too old. You could try putting a fresh File menu in your menu bar, and modify it to match any other customized items in your old one.

I tried removing the existing file menu in my "MainNib" and replaced it with a freshly-dragged-from-the-side-pane File menu - same result.

Eyal
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

References: 
 >NSDocument autosavesInPlace and additional menu items (From: Eyal Redler <email@hidden>)
 >Re: NSDocument autosavesInPlace and additional menu items (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: strange behaviour of hasPrefix
  • Next by Date: Re: NSDocument autosavesInPlace and additional menu items
  • Previous by thread: Re: NSDocument autosavesInPlace and additional menu items
  • Next by thread: Re: NSDocument autosavesInPlace and additional menu items
  • Index(es):
    • Date
    • Thread