 |
 |
Quartz API
|
 |
|
 |
|
Junior Member
Join Date: Aug 2001
Location: Chicago, IL
Status:
Offline
|
|
I'm trying to find the API that the developer program "Quartz Debug" uses to find all allocated window information. I haven't been able to find much info from Apple's developer site and was hoping someone here would have some insight.
Thanks.
|
Peace. Love. MacOSX.
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jan 2001
Location: Boulder, CO, USA
Status:
Offline
|
|
Haven't looked into it myself, but I typed this at the command line:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
nm /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/CoreGraphics | grep Window | more
</font>[/code]
And found some things which might be of help.
Try man nm for more info about it.
Let us know what you come up with. 
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Aug 2001
Location: CA
Status:
Offline
|
|
Looks like the function is definitely CGSetDebugOptions. you can see it using:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
nm /Developer/Applications/QuartzDebug.app/Contents/MacOS/Quartz\ Debug
</font>[/code]
If you want some fun, just put:
CGSetDebugOptions(); in a Cocoa app and run it. I reccomend shutting down all your apps first, because after some weird red and green stuff draws on the screen, the window server crashes.  Heh.
Need to figure out the arguments. Judging by the colors and crash, there are some other debug options.. perhaps buggy ones...
|
|
Dual 800 - GF3 - 1.5GB
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Aug 2001
Location: Chicago, IL
Status:
Offline
|
|
So, from this, I'm guessing the the CoreGraphics API isn't documented and I'll have to guess at the parameters and return types? Yikes.
|
Peace. Love. MacOSX.
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
The Quartz Compositing / CoreGraphics Services API (the windowserver API, in other words) is not public, is not documented, and is not there for third parties to use. You can figure it out with some guesswork and a knowledge of assembly (you can disassemble the CoreGraphics library with otool), but it's not easy and it's likely to change without warning.
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Aug 2001
Location: CA
Status:
Offline
|
|
Originally posted by Hous68:
<STRONG>So, from this, I'm guessing the the CoreGraphics API isn't documented and I'll have to guess at the parameters and return types? Yikes.</STRONG>
Um, for private, udocumented functions yes. The function you asked for is private. The fact that we can hack and call it is just a cool side effect of the way OS X works.
Quartz is the marketing name for Core Graphics. It is documented, among other places, at http://developer.apple.com/techpubs/.../quartz2d.html
-Ben
|
|
Dual 800 - GF3 - 1.5GB
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
Well... That documentation is just for the public side of Quartz, Quartz 2D (AKA CoreGraphics Rendering). The WindowServer API, AKA Quartz Compositing, AKA CoreGraphics Services is not public and not documented.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|