• 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: Open windows in frontmost...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open windows in frontmost...


  • Subject: Re: Open windows in frontmost...
  • From: Daniel Jalkut <email@hidden>
  • Date: Mon, 1 Sep 2003 12:03:34 -0700

In my experience, you should also remember the app that was active before you "stole the scene". That way you can set it back when you're all done, instead of leaving the user dangling in the confusing "faceless background app is frontmost" zone. Use the Carbon routine GetFrontProcess to figure out who's front when you bust in, and then SetFrontProcess back to it when you're through.

Daniel

On Saturday, August 23, 2003, at 12:11 PM, Andreas Mayer wrote:

Am Samstag, 23.08.03 um 19:29 Uhr schrieb daniele:

No, I think. Is an NSStatusItem application... you can tell it from the menu bar but it is not the front most app....


This works for me in that case:

[NSApp activateIgnoringOtherApps:YES];
[window makeKeyAndOrderFront:self];


bye. Andreas.
_______________________________________________
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.
_______________________________________________
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: Re: Enable the Copy Menu
  • Next by Date: Erasing a NSTextView
  • Previous by thread: Re: Enable the Copy Menu
  • Next by thread: Erasing a NSTextView
  • Index(es):
    • Date
    • Thread