Frontmost window
Frontmost window
- Subject: Frontmost window
- From: John Stiles <email@hidden>
- Date: Fri, 16 Nov 2007 16:50:13 -0800
I'm trying to determine which window in my app is frontmost.
It might not necessarily be key if my app isn't in the foreground.
I found a technique that works, but is there a simpler API that I'm missing?
NSWindow * windowInFront = [NSApp
makeWindowsPerform:@selector(myWindowIsInFront:) inOrder:YES];
@implementation NSWindow (MyAdditions)
- (id) myWindowIsInFront:(id)sender {
return (id)YES;
}
@end
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden