Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2eb6b91 commit fac00b2Copy full SHA for fac00b2
src/_macosx.m
@@ -5760,11 +5760,12 @@ - (int)index
5760
if(nwin > 0)
5761
{
5762
[NSApp activateIgnoringOtherApps: YES];
5763
- NSArray *windowsArray = [[NSApp windows] retain];
5764
- for (int i = 0; i < [windowsArray count]; i++) {
5765
- [[windowsArray objectAtIndex:i] orderFront:nil];
+ NSArray *windowsArray = [NSApp windows];
+ NSEnumerator *enumerator = [windowsArray objectEnumerator];
+ NSWindow *window;
5766
+ while ((window = [enumerator nextObject])) {
5767
+ [window orderFront:nil];
5768
}
- [windowsArray release];
5769
[NSApp run];
5770
5771
Py_INCREF(Py_None);
0 commit comments