Re: Cycle Through Windows
Re: Cycle Through Windows
- Subject: Re: Cycle Through Windows
- From: Andrew Pinski <email@hidden>
- Date: Thu, 23 May 2002 00:51:02 -0400
You don't, it is already implemented as command ~.
Thanks,
Andrew Pinski
On Wednesday, May 22, 2002, at 11:36 , Paul A. Seligman wrote:
Does anybody know if it's possible to implement a cycle through windows
function in Cocoa, like in IE? I can send windows to the back of all
"normal" windows, but that places a window behind other open
applications. I thought the following would work
- (IBAction)sendToBack:(id)sender
{
int size;
int windowsList[1000];
NSArray *windowsArray = [[NSApplication sharedApplication] windows];
NSCountWindows(&size);
NSWindowList(size, windowsList);
if ( size > 1 )
[[[NSApplication sharedApplication] keyWindow]
orderWindow:NSWindowBelow relativeTo:windowsList[size - 1]];
}
as NSWindowList was supposed to give me back the window ref numbers of
window in my application, but I don't see any difference between the
results of the above code and
[[[NSApplication sharedApplication] keyWindow]
orderWindow:NSWindowBelow relativeTo:0];
Any ideas?
Thanks,
Paul Seligman
Student - Dartmouth College email@hidden
Intern - Handspring email@hidden
_______________________________________________
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.