• 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
Window not becoming key window when it should after makeKeyAndOrderFront:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Window not becoming key window when it should after makeKeyAndOrderFront:


  • Subject: Window not becoming key window when it should after makeKeyAndOrderFront:
  • From: Steve Moon <email@hidden>
  • Date: Wed, 28 Nov 2001 07:47:55 -0800

Hi

one of my application install itself in the menu bar using NSStatusBar/NSStatusItem. The application itself is configured with the flag NSUIElement set to "1". When I click on the icon installed in the menu bar the app show up a menu, and one of this menu can bring up a window on screen (most of the time the user close this window : so it's often off screen).
I show this window by doing a regular : [window makeKeyAndOrderFront:self]; and this window has the regular attribute (resizable, miniaturize, ...).

BUT often the window do not show up as the key window (the title bar is semi transparent), and so make some of the widget in it really unusable !! Anything wrong I am doing here ?? Any ideas why it's happening ? I notice that if the app run without the NSUIElement setting the problem do not happen (apparently since I was not able to reproduce it).

Steve


  • Follow-Ups:
    • Re: Window not becoming key window when it should after makeKeyAndOrderFront:
      • From: Rosyna <email@hidden>
  • Prev by Date: Re: Memory Error -NSRTFReader?
  • Next by Date: ProjectBuilder and intermediate files
  • Previous by thread: Re: Memory Error -NSRTFReader?
  • Next by thread: Re: Window not becoming key window when it should after makeKeyAndOrderFront:
  • Index(es):
    • Date
    • Thread