LSUIElement and foreground window
LSUIElement and foreground window
- Subject: LSUIElement and foreground window
- From: Arthur VIGAN <email@hidden>
- Date: Tue, 1 Apr 2003 18:31:16 +0200
Hi,
I programmed an application using an NSStatusItem in the menu bar, and
I sometimes need to open a preference window. Tha application has no
real UI: no icon in the dock, no always-opened window. I used
LSUIElement in the info.plist file to do this. The problem is that this
window often open in the background, behind other windows. Even if I
use:
In my application controller: [preferencesController showWindow:self];
And in my preferenceController object: [[self window]
makeKeyAndOrderFront:self];
preferenceController is an NSWindowController subclass.
Is there a way to open it in the foreground?
-- Arthur
_______________________________________________
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.