• 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: how to hide/show/bring to front apps with Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to hide/show/bring to front apps with Cocoa?


  • Subject: Re: how to hide/show/bring to front apps with Cocoa?
  • From: Finlay Dobbie <email@hidden>
  • Date: Sat, 13 Jul 2002 14:35:51 +0100

On Saturday, July 13, 2002, at 01:45 PM, Ondra Cada wrote:

Just send the appropriate NSApplication the appropriate message. If AppleScript is designed well (which I dunno at all), it should be possible through it. Otherwise, you need to load your own bundle into the application to do so (eg. via InputManagement) to get "inside".

This is completely evil and disgusting and vomit-inducing. Don't do it. (Not to mention not all apps have an NSApplication).

You can send AppleScripts/AppleEvents to the /System/Library/CoreServices/System Events.app to do what you want. Otherwise, just use Carbon. There's no good reason not to. Carbon Process Manager is just a thin wrapper around Core Process Services, which is how this sort of thing is dealt with internally by the windowserver et al.

petite_abeille, Nathan Day provided a link to a Cocoa WRAPPER for the Carbon functionality, so you don't even have to call the Carbon functions yourself. What more could you ask for? This is what would happen if Apple wrote support for it and added it to NSWorkspace.

Please guys, stop being so anti-Carbon. If it's there and it works, use it.

-- Finlay
_______________________________________________
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: how to hide/show/bring to front apps with Cocoa?
      • From: petite_abeille <email@hidden>
References: 
 >Re: how to hide/show/bring to front apps with Cocoa? (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Carbon API with carbon
  • Next by Date: Re: [OT] Quartz Extreme in developer previews?
  • Previous by thread: Re: how to hide/show/bring to front apps with Cocoa?
  • Next by thread: Re: how to hide/show/bring to front apps with Cocoa?
  • Index(es):
    • Date
    • Thread