orderWindow problem
orderWindow problem
- Subject: orderWindow problem
- From: Darrin Cardani <email@hidden>
- Date: Thu, 4 Mar 2004 13:32:03 -0600
In my application, there are 3 windows associated with each document.
When any one of them is brought to the front, I would like the other
2 to come to the front, as well, right behind the one that was
clicked on. What I've done is to write a notification handler for
each of the windows that attempts to put the other 2 windows
immediately below itself by using -orderWindow:relativeTo:. It looks
like this:
NSWindow* theWin = [ notification object ];
int winNum = [ theWin windowNumber ];
if (winNum != 0) {
[ otherWindow1 orderWindow:NSWindowBelow relativeTo:winNum ];
[ otherWindow2 orderWindow:NSWindowBelow relativeTo:winNum ];
}
However, upon startup, this actually puts otherWindow1 and
otherWindow2 behind *all other windows on screen*. If I click on the
application's icon in the doc, the windows then perform as expected.
But until I do that, calling [ someWindow orderWindow:NSWindowBelow
relativeTo:newFrontWindowNum ], sends "someWindow" to the very back.
Am I just misunderstanding how -orderWindow:relativeTo: works? Or is
this a bug in the OS or some other problem with my code?
Thanks,
Darrin
--
Darrin Cardani - email@hidden
President, Buena Software, Inc.
<
http://www.buena.com/>
Video, Image and Audio Processing Development
_______________________________________________
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.