Re: Document Window Versions Drop-down Menu

2013-05-14 Thread Vincent CARLIER
Re Quincey, 2013/5/14 Quincey Morris > On May 14, 2013, at 04:30 , Vincent CARLIER > wrote: > > As you will see, the menu item opens a second (and any number) of windows > for the document, but only the first has got the menu. > > > Yes, now you've pointed this out, I can see the same (mis)beha

Re: Document Window Versions Drop-down Menu

2013-05-14 Thread Vincent CARLIER
Hi Kyle, 2013/5/14 Kyle Sluder > On May 14, 2013, at 1:33 AM, Vincent CARLIER > wrote: > > > No matter what I do, only the first window (that is the window managed by > > the first WC created for the document) gets the menu. > > What does the secondary window return for -isExcludedFromWindowsMe

Re: Document Window Versions Drop-down Menu

2013-05-14 Thread Quincey Morris
On May 14, 2013, at 04:30 , Vincent CARLIER wrote: > As you will see, the menu item opens a second (and any number) of windows for > the document, but only the first has got the menu. Yes, now you've pointed this out, I can see the same (mis)behavior in my own apps. Whether it used to work and

Re: Document Window Versions Drop-down Menu

2013-05-14 Thread Kyle Sluder
On May 14, 2013, at 1:33 AM, Vincent CARLIER wrote: > No matter what I do, only the first window (that is the window managed by > the first WC created for the document) gets the menu. What does the secondary window return for -isExcludedFromWindowsMenu? It's possible that NSDocument automatical

Re: Document Window Versions Drop-down Menu

2013-05-14 Thread Vincent CARLIER
To illustrate the issue, I created a simple test project that you can clone from Bitbucket : https://bitbucket.org/vincedev/tesdocapp.git As you will see, the menu item opens a second (and any number) of windows for the document, but only the first has got the menu. Vince. 2013/5/14 Vincent CAR

Re: Document Window Versions Drop-down Menu

2013-05-14 Thread Vincent CARLIER
-(IBAction)openDocumentInNewWindow:(id)sender { AMDocumentWindowController *dwc = [[AMDocumentWindowController alloc] init]; [[self document] addWindowController:gpdwc]; [gpdwc release]; [gpdwc showWindow:self]; } Typo here, WC reference name is "dwc", not "gpdwc". Sorry. 2013/5/

Re: Document Window Versions Drop-down Menu

2013-05-14 Thread Vincent CARLIER
Hi Quincey, thank you for the quick answer. Unfortunately, no, I didn't forget to add the window controllers using the method you mention. At document creation/opening, a first WC is created (I mean alloc/init), added to the document, and released. As the user request additional windows, the sam

Re: Document Window Versions Drop-down Menu

2013-05-14 Thread Quincey Morris
On May 14, 2013, at 00:07 , Vincent CARLIER wrote: > Is there a way to put the menu on other windows too, is there any available > API to do that ? All document windows should have the menu. My guess is that you forgot to invoke '-[NSDocument addWindowController:]' on the additional window con

Document Window Versions Drop-down Menu

2013-05-14 Thread Vincent CARLIER
Hi all, I'm writing a document based app. Each document is displayed in a window, and can have several other windows too. The primary window and the others are the same (same NIB, same window controller), each window is able to display a different part of the document data. At the beginning, only