 |
 |
Quartz, where is it?
|
 |
|
 |
|
TheWolf
|
|
I have recently joined the ADC and I have been searching through the material that I have received and there is no mention of Quartz anywhere. Where is it? Those GUI classes in Cocoa that have been implemented in Objective-C, what are they using to draw on the screen?
Thanks.
|
|
|
| |
|
|
|
 |
|
 |
|
trf_trf
|
|
If you are an ADC member and have access to the developer conference videos on the ADC member page, watch the Quarz session video.
Basically, Quarz is there, but Quarz seems to only be a marketing name. So look closer in the docs and you will find the graphics classes that make up Quarz.
Thorsten
|
|
|
| |
|
|
|
 |
|
 |
|
TheWolf
|
|
I am an ADC member. I will do that.
Thanks for the tip.
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Sep 2000
Status:
Offline
|
|
In case it helps...the System Overview has a blurb about what makes up Quartz:
"Quartz has two components, Core Graphics Services and Core Graphics Rendering.
"The first of these, Core Graphics Services, is essentially the window server for the system. The window server provides the fundamental windowing and event-routing services for all application environments. This high-performance server is lightweight in that it performs no rendering itself, yet it provides essential services to all graphics rendering libraries that are clients of it, including Core Graphics Rendering and QuickDraw. Core Graphics Services features such advanced capabilities as device-independent color and pixel depth, remote display, layered compositing, and buffered windows for the automatic repair of window damage.
"The Core Graphics Rendering component of Quartz is a graphics rendering library for two-dimensional shapes. It is used for screen rendering, PDF generation, print preview, and other services. Core Graphics Rendering uses PDF as an internal model for vector graphics representation. PDF offers several advantages, including good color management, internal compression, and font independence. Core Graphics Rendering uses a coordinate system that is flexible and precise (because it uses floating-point coordinates) and thus permits some degree of device independence."
I believe the Cocoa objects automatically use Core Graphics Rendering, and you can call CoreGraphics functions directly as well (e.g. in a Carbon application).
What I find intriguing is the mention of "remote display" in the window server...
Anyway, you may already know this, but I figured I'd post it just in case.
|
|
|
| |
|
|
|
 |
|
 |
|
TheWolf
|
|
Thanks for the reply Marshall. However, what prompted me to post a question is that I am looking at the Cocoa documentation and they just don't mention Quartz anywhere. In addition, I started browsing through the Objective-C AppKit classes (i.e. NS***) and I don't find any classes that has any actual drawing methods. NSView has a hook named '-drawRect' where you are expected to put the drawing code for your view in the case that you have subclassed NSView. That is all I could find so far.
Thanks again.
|
|
|
| |
|
|
|
 |
|
 |
|
abner
|
|
Check out some of the examples in the developer kit. Any of the extensions of NSView. You'll find the use of classes like NSBezier to draw primitives and some pretty complex shapes.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

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