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
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
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
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
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
-(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/
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
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
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