Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Quartz, where is it?

Quartz, where is it?
Thread Tools
TheWolf
Guest
Status:
Reply With Quote
Oct 10, 2000, 06:11 PM
 
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
Guest
Status:
Reply With Quote
Oct 12, 2000, 03:58 PM
 
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
Guest
Status:
Reply With Quote
Oct 12, 2000, 05:37 PM
 
I am an ADC member. I will do that.

Thanks for the tip.
     
Forum Regular
Join Date: Sep 2000
Status: Offline
Reply With Quote
Oct 12, 2000, 09:53 PM
 
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
Guest
Status:
Reply With Quote
Oct 13, 2000, 10:41 AM
 
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
Guest
Status:
Reply With Quote
Oct 13, 2000, 12:47 PM
 
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.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:42 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2