• 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
Re: Status Item problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Status Item problems


  • Subject: Re: Status Item problems
  • From: Orr Philip <email@hidden>
  • Date: Tue, 15 May 2007 23:22:05 +0100

Okay then, I'll answer my own problem.

Before displaying the window I first need to ensure that my application is the frontmost. To do this simply send [NSApp activateIgnoringOtherApps:YES];.

It is also possible to get the current key and main windows if any using the NSApplication Class and return those back when your window is removed.

Philip


On 12 May 2007, at 15:12, Orr Philip wrote:

I have a status menu item that displays a NSBorderlessWindowMask window. When the time comes to display the window I use [flipWindow makeKeyAndOrderFront:sender]; but this just displays the window on screen above all other windows but does not make it active or the main window. I have canBecomeKeyWindow and canBecomeMainWindow returning true.

Also when I orderOut the window disappears but no windows beneath it become active. I would like to return the active window back to that before my app was called, if any.

Thanks

Philip

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Status Item problems (From: Orr Philip <email@hidden>)

  • Prev by Date: Re: Unique items in Core Data models
  • Next by Date: Nontrivial Undo Support for WebView
  • Previous by thread: Status Item problems
  • Next by thread: Linking error on "release" build -- undefined symbols
  • Index(es):
    • Date
    • Thread