• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cycle Through Windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Cycle Through Windows
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: Re: validateMenuItem: issues
  • Next by Date: finding text to be drawn in NSTextView drawRect
  • Previous by thread: ioctl Call From My Code
  • Next by thread: Re: Cycle Through Windows
  • Index(es):
    • Date
    • Thread