• 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: Offscreen Drawing, NSView-Quartz-Mix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Offscreen Drawing, NSView-Quartz-Mix


  • Subject: Re: Offscreen Drawing, NSView-Quartz-Mix
  • From: Matthew Formica <email@hidden>
  • Date: Mon, 04 Feb 2002 12:24:34 -0800

NSGraphicsContext's -graphicsPort returns a CGContextRef; from there, you
can go and call Quartz all you like.

- Matthew

On 2/4/02 3:47 AM, "Manfred Lippert" <email@hidden> wrote:

> Hi,
>
> I haven't read much of the documentation about drawing (NSView and Quartz)
> and I am not completely familiar with the concepts about the various (?)
> drawing contexts, so maybe my questions are somewhere answered inside the
> docs or are perhaps trivial. But it is difficult to find specific answers to
> my problems when you don't know where so search. So here it comes:
>
> Is it possible to "intermix" NSView, NSGraphicsContext and Quartz drawing?
>
> Is it possible to create an offscreen graphics context (NSGraphicsContext or
> Quartz???) and "copy" the contents of an NSView into that offscreen context,
> draw some things there offscreen and copy the result back to the NSView?
> (All should be done inside the drawRect method of the NSView.)
>
> How can this be done?
>
> It would be great if someone can point me in the right direction.
>
> I'll continue reading in the docs in the meanwhile ... ;-)
>
> Regards,
> Mani
> _______________________________________________
> 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.
>


--

Matthew Formica
DTS Engineer - Developer Tools and Cocoa
Apple Computer, Inc.
email@hidden

Mac OS X Development Tools:
http://developer.apple.com/tools/
Project Builder on the web:
http://developer.apple.com/tools/projectbuilder/
Project Builder FAQ:
http://developer.apple.com/tools/projectbuilder/faq.html
Cocoa docs on the web:
http://developer.apple.com/techpubs/macosx/Cocoa/CocoaTopics.html
Cocoa sample code:
http://developer.apple.com/samplecode/Sample_Code/Cocoa.htm


References: 
 >Offscreen Drawing, NSView-Quartz-Mix (From: Manfred Lippert <email@hidden>)

  • Prev by Date: Re: Speed of Quartz (was: optimizing compilers)
  • Next by Date: Transparent Button
  • Previous by thread: Offscreen Drawing, NSView-Quartz-Mix
  • Next by thread: Re: Offscreen Drawing, NSView-Quartz-Mix
  • Index(es):
    • Date
    • Thread