Re: NSDocument autosavesInPlace and additional menu items

2017-05-04 Thread Jerome Krinock
> On 2017 May 04, at 16:12, Eyal Redler wrote: > > If all fails I will probably do something along these lines. Can you explain > what you mean by "Or maybe your predecessor implemented -menuNeedsUpdate:"? > I'm not sure I follow… I'd assumed that since you were working on an “old app” and di

Re: NSDocument autosavesInPlace and additional menu items

2017-05-04 Thread Redler Eyal
>> 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 thr

Re: NSDocument autosavesInPlace and additional menu items

2017-05-04 Thread Jerome Krinock
On 2017 May 03, at 15:43, Quincey Morris wrote: > > 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. Or maybe your predecessor implemented -menuNeedsUpdate:. I’ve been able to hack the document-based File menu by loopi

Re: NSDocument autosavesInPlace and additional menu items

2017-05-03 Thread Quincey Morris
On May 3, 2017, at 08:03 , Eyal Redler wrote: > > 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,

NSDocument autosavesInPlace and additional menu items

2017-05-03 Thread Eyal Redler
Hi, I'm working on a very old document based application. When autosave in place was introduced back in 10.7 I've added support for this and made it optional for my users. I know that the autosaving feature was tweaked a few times in subsequent releases but I'm really fuzzy about what these twe