Re: Show/Hide a PSN?
Re: Show/Hide a PSN?
- Subject: Re: Show/Hide a PSN?
- From: David Remahl <email@hidden>
- Date: Fri, 20 Sep 2002 22:28:26 +0200
>
OK...
>
>
...I am cocoa code.
>
...I am not an app.
>
...I am bigger than a breadbox and smaller than a... Oops, wrong
>
forum! :)
>
...no, seriously - I have the psn of an application.
>
>
Now: How do I use it to show/hide that application?
>
>
Ando
In Processes.h:
/*
* ShowHideProcess()
*
* Summary:
* Hides or shows a given process.
*
* Discussion:
* Given a psn, this call will hide or show the process specified in
* the psn parameter. You determine whether you would like to show
* or hide the process with the visible parameter. True passed into
* visible indicates you wish for the process to become visible.
*
* Parameters:
*
* psn:
* Serial number of the process
*
* visible:
* true = show process; false = hide process
*
* Availability:
* Mac OS X: in version 10.1 and later in
ApplicationServices.framework
* CarbonLib: in CarbonLib 1.5 and later
* Non-Carbon CFM: not available
*/
extern OSErr
ShowHideProcess(
const ProcessSerialNumber * psn,
Boolean visible)
AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER;
Link with ApplicationServices.
/ Sincerely, David Remahl
_______________________________________________
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.