• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSQuickDrawView opacity troubles (solved)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSQuickDrawView opacity troubles (solved)


  • Subject: Re: NSQuickDrawView opacity troubles (solved)
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Tue, 6 Apr 2004 06:23:47 +0200

At 12:01 Uhr -0700 05.04.2004, Chris Silverberg wrote:
If you are using NSQuickDrawView and do not need transparency, you can gain efficiency by making your view opaque by implementing isOpaque:

Quickdraw doesn't support transparency. At least not in a way that lets you composite it into Quartz.

- (BOOL)isOpaque { return YES; }

However, if you do this, you *must* flush the quickdraw port when you draw. For example:

- (void)drawRect:(NSRect)rect
{
/* do some quickdraw stuff here */

QDFlushPortBuffer([self qdPort], NULL); /* you MUST do this if this view is opaque */
}

--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >NSQuickDrawView opacity troubles (solved) (From: Chris Silverberg <email@hidden>)

  • Prev by Date: Re: memory leaks, many of them
  • Next by Date: Localized nib will only load english
  • Previous by thread: NSQuickDrawView opacity troubles (solved)
  • Next by thread: NSRulerView sample?
  • Index(es):
    • Date
    • Thread