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: HIView and marquee selection




On Mar 1, 2005, at 10:10 AM, David Duncan wrote:

On Mar 1, 2005, at 09:16 AM, Mike Garrity wrote:

Question 1 - There have been many discussions about a lack of "rubber-band api." At the time (May03) the WindowFun sample code was pointed out as a "modern" way of implementing a selection tool (like the Finder). WindowFun had a LineTool example that created an overlay window using QDBeginCGContext. I wanted to make sure that using QuickDraw CGrafPtrs was still the "modern way of doing this"???

You will want to move to using CoreGraphics directly instead of Quickdraw. With CoreGraphics you will get transparency with your drawing now, and acceleration in the future (Tiger).

The only use of QuickDraw in this case is the code that extracts the port from the window and creates a CGContext using that port. This behavior will continue to be supported for the foreseeable future.


But your point is well taken. Drawing into an overlay window with QuickDraw is a Bad Idea™

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

This email sent to email@hidden
References: 
 >HIView and marquee selection (From: Mike Garrity <email@hidden>)
 >Re: HIView and marquee selection (From: David Duncan <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.