Re: how to hide/show/bring to front apps with Cocoa?
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.