Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quartz idioms and Control Manager




On Mar 21, 2008, at 2:08 PM, Mike wrote:
This question has probably already been asked here before.

Actually it's probably been asked on carbon-dev before. :) This list is more specifically for Quartz drawing issues rather than integration with other system services.


How does one reconcile the newer Quartz paradigms and contexts to older APIs such as the Carbon Control Manager? For example, I can use an HIView or other HI Toolbox routines and structures in Carbon, but if those structures require older QuickDraw things like Rects, how to reconcile the two? Do I have to do transforms manually every time between the Quartz system and older APIs?

Many of the older Control Manager routines that took Rects, for example, have been gradually replaced with new routines in HIView.h (especially in Leopard) that take HIRects. So in many cases we have Quartz-based equivalents available now.


If there is no Quartz-based equivalent, then yes, you just have to create a Rect/Point/whatever with the same values as the CGRect/Point/ etc.

-eric

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden
References: 
 >Quartz idioms and Control Manager (From: Mike <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.