• 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: petite_abeille <email@hidden>
  • Date: Sat, 13 Jul 2002 22:47:38 +0200

On Saturday, July 13, 2002, at 10:15 , Rosyna wrote:

Yup, there are a few more conveniences, but CPSProcessSerNum and ProcessSerialNumber are the same. I use them both interchangeably all the time. It's especially useful in creating AppleEvents.

Thanks. I understand and I can see that both the CPSProcessSerNum and ProcessSerialNumber works fine and that the Carbon API is simply wonderful. That's not the issue. I simply would like to understand how it works...

Not understanding a thing about how DisplayPostScript (aka Quartz) works, lets look for David C. Lambert's Fiend -the best Dock extension produced by mankind so far- for some help... Damn, cannot find the original code... But wait... Here is an old port of it to Mac OS X Server by Steve Nygard of OmniGroup fame... Lets take a look... Here it is:

PScountwindowlist (0, &count);
PSwindowlist (0, count, windowNumbers);
safeGetCurrentOwner (windowNumbers[l], &anOwnerContext)

Then further down:

status = safeUnhideContext (ownerContext, YES, YES, hideOthers);

Ok... Sounds simple enough... But where is <AppKit/psopsNeXT.h>? Damn! Cannot find it. However there is something called NSGraphics. And here are a couple of interesting functions:

APPKIT_EXTERN void NSCountWindows(int *count);
APPKIT_EXTERN void NSWindowList(int size, int list[]);
APPKIT_EXTERN void NSCountWindowsForContext(int context, int *count);
APPKIT_EXTERN void NSWindowListForContext(int context, int size, int list[]);

But where do I find those safeGetCurrentOwner and safeUnhideContext? Should I dig into the Adobe stuff? Where is the doc for Quartz?

Any insight or pointers greatly appraciated!-)

Thanks.

PA.
_______________________________________________
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: Finlay Dobbie <email@hidden>
References: 
 >Re: how to hide/show/bring to front apps with Cocoa? (From: Rosyna <email@hidden>)

  • Prev by Date: Re: [OT] Quartz Extreme in developer previews?
  • Next by Date: Re: how to hide/show/bring to front apps with Cocoa?
  • 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