• 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
LSUIElement and foreground window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: knowing which objects are retaining
  • Next by Date: Re: "Standard" strings available anywhere?
  • Previous by thread: Re: Help for Help
  • Next by thread: Re: "Standard" strings available anywhere?
  • Index(es):
    • Date
    • Thread