Jake
2004.11.19, 06:24 PM
I am getting some reports of multiple windows coming up. After my second round of golf I start to see them too, here is the code
NSWindow *infoWindow = NSGetAlertPanel( @"Score", @"Triple Bogey", @"Crap.", nil, nil );
[NSApp runModalForWindow:infoWindow ];
[infoWindow close];
On the first round of golf it waits until you close it to go to the next hole, but on the second round I think (not going to play 18 holes to test) it waits for the first window to be closed but not the second.
Any ideas? I am almost 100% sure my program only hits that piece of code once.
NSWindow *infoWindow = NSGetAlertPanel( @"Score", @"Triple Bogey", @"Crap.", nil, nil );
[NSApp runModalForWindow:infoWindow ];
[infoWindow close];
On the first round of golf it waits until you close it to go to the next hole, but on the second round I think (not going to play 18 holes to test) it waits for the first window to be closed but not the second.
Any ideas? I am almost 100% sure my program only hits that piece of code once.