• 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
[SOLVED !] Re-enabling Expose for certain windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLVED !] Re-enabling Expose for certain windows


  • Subject: [SOLVED !] Re-enabling Expose for certain windows
  • From: Andreas Kummer <email@hidden>
  • Date: Thu, 12 Feb 2004 15:31:54 +0100

Well, since nobody answered my post of yesterday, I've got my own hands dirty... ;-)

After some poking around, here is a new version of the method that makes windows ignoring Expose __and__ (Applause, please!) gets them back to normal behaviour:

- (OSStatus)setSticky:(BOOL)flag
{
CGSConnection cid;
CGSWindow wid;
int tags[2];

wid = [[self window] windowNumber];
cid = _CGSDefaultConnection();
if (!CGSGetWindowTags(cid, wid, tags, 32)) {
tags[0] = 0x0800;
tags[1] = 0;
if (flag)
return CGSSetWindowTags(cid, wid, tags, 32);
else
return CGSClearWindowTags(cid, wid, tags, 32);
}
}

Of course, like the other stuff, CGSClearWindowTags() has to be declared somewhere:

extern OSStatus CGSClearWindowTags(const CGSConnection cid, const CGSWindow wid,
int *tags, int thirtyTwo);

Cheers,
Andreas

________________________________________________________________________ __
Aksima
Andreas Kummer
Helene-Mayer-Ring 10/706
80809 Muenchen
Germany
Fon: ++49-89-15909290
Fax: ++49-89-15909289
Email: email@hidden
________________________________________________________________________ __
_______________________________________________
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.
  • Prev by Date: Re: NSTableView and confused Drag&Drop
  • Next by Date: Passing an integer as contextInfo from a sheet
  • Previous by thread: Re: Use of mouseOver & live-feedback (possibly OT)
  • Next by thread: Passing an integer as contextInfo from a sheet
  • Index(es):
    • Date
    • Thread