• 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
Deactivate Current App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Deactivate Current App


  • Subject: Deactivate Current App
  • From: email@hidden
  • Date: Wed, 6 Aug 2003 13:41:14 -0700

I'm developing a Cocoa app and would like to have the app deactivate
itself (ie: send itself to the background and the last active and
running app become active again).

I've tried
[[NSApplication sharedApplication] deactivate];
but all it does it deactivate my current window. The application
still stays active though.

Is there a way to send the current Cocoa app to the backgound without
hiding it. (I know hide will do this but it has the unwanted side
effect of hiding the app)? Or is there a way to tell the next app to
activate?

Thank you again.

SD.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Deactivate Current App
      • From: "James W. Walker" <email@hidden>
    • Re: Deactivate Current App
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: Re: Cross platform development
  • Next by Date: Re: Cross platform development
  • Previous by thread: [ANN] myPDA 3.1a3 - a Cocoa/GNUstep system for the Sharp Zaurus Linux series
  • Next by thread: Re: Deactivate Current App
  • Index(es):
    • Date
    • Thread