• 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: [SOLVED !] Disabling_Expose_for_some_windows,_some_day?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SOLVED !] Disabling_Expose_for_some_windows,_some_day?


  • Subject: Re: [SOLVED !] Disabling_Expose_for_some_windows,_some_day?
  • From: Jérome Foucher <email@hidden>
  • Date: Tue, 3 Feb 2004 09:47:32 +0100

On 2 fivr. 04, at 20:08, Yann Bizeul wrote:

Many, many thanks to Richard Wareham, developer of the *great* desktop
manager (If you don't know, give it a try, really amazing.

Indeed it's a nice piece of work.

Thats an
utility to give MacOS X Virtual Desktop feature "a la" Un*x :
http://wsmanager.sourceforge.net/). Since this one is opensource and I
noted that while running, my window were kept in place during exposi, I
asked him the way to do this and it gave me a nice solution.
Here is what I took from the source code, rearranged to fit into a
WindowController subclass :

-(void)setSticky:(BOOL)flag {
CGSConnection cid;
CGSWindow wid;

wid = [[ self window ] windowNumber ];
cid = _CGSDefaultConnection();
int tags[2];
tags[0] = tags[1] = 0;
OSStatus retVal = CGSGetWindowTags(cid, wid, tags, 32);
if(!retVal) {
if (flag)
tags[0] = tags[0] | 0x00000800;
else
tags[0] = tags[0] & 0x00000800;

retVal = CGSSetWindowTags(cid, wid, tags, 32);
}
}

But any luck, does anybody know how to retrieve the windowNumber of a Carbon window ?
(I know I'm not on the Carbon-dev list, but it's worth a shot on this list too).


Thanks
Jerome
_______________________________________________
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: [SOLVED !] Disabling_Expose_for_some_windows,_some_day?
      • From: Yann Bizeul <email@hidden>
References: 
 >[SOLVED !] Disabling_Expose_for_some_windows,_some_day? (From: Yann Bizeul <email@hidden>)

  • Prev by Date: Re: Packager
  • Next by Date: Re: Finder Icon Badging...
  • Previous by thread: Re: [SOLVED !] Disabling_Expose_for_some_windows,_some_day?
  • Next by thread: Re: [SOLVED !] Disabling_Expose_for_some_windows,_some_day?
  • Index(es):
    • Date
    • Thread