• 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: Show/Hide a PSN?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Show/Hide a PSN?


  • Subject: Re: Show/Hide a PSN?
  • From: Scott Anguish <email@hidden>
  • Date: Fri, 20 Sep 2002 19:51:12 -0400

Even better

Take the code you write, generalize it, add it to an NSWorkspace category and save it for future usage. Build your own Cocoa framework extensions.. then put them on Softrak (http://www.stepwise.com/Softrak)



On Friday, September 20, 2002, at 04:28 PM, David Remahl wrote:

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

References: 
 >Re: Show/Hide a PSN? (From: David Remahl <email@hidden>)

  • Prev by Date: Re: needed Time for a method
  • Next by Date: Re: sockets in threaded obj-C app.
  • Previous by thread: Re: Show/Hide a PSN?
  • Next by thread: Shell Script Build Phase for AutoDoc
  • Index(es):
    • Date
    • Thread