• 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: Cocoa and future
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa and future


  • Subject: Re: Cocoa and future
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 20 Feb 2009 10:34:10 -0800


On Feb 20, 2009, at 9:44 AM, john smith wrote:

Is there any way to draw onto a window on 64-bit os versions from C++, not using obj-c?

Yes. Use the Quartz aka CoreGraphics API. It's all C functions. This is the API that all the other graphics layers are based on. There are at least two books describing how to use it, as well as all the free Apple docs.

You will have to have an NSView subclass, but all its -drawRect: method needs to do is get the current CG graphics context and make a CG call to draw the bits into it.

If you're using CopyBits, that's the ancient (DOB: 1982) and long-deprecated QuickDraw. Apple's been warning developers to move away from that since 2000 or so.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Audio unit hosting (From: James Membrez <email@hidden>)
 >Re: Audio unit hosting (From: William Stewart <email@hidden>)
 >Cocoa and future (From: john smith <email@hidden>)
 >Re: Cocoa and future (From: tahome izwah <email@hidden>)
 >FW: Cocoa and future (From: john smith <email@hidden>)
 >Re: Cocoa and future (From: Jens Alfke <email@hidden>)
 >RE: Cocoa and future (From: john smith <email@hidden>)
 >Re: Cocoa and future (From: David Duncan <email@hidden>)
 >RE: Cocoa and future (From: john smith <email@hidden>)
 >Re: Cocoa and future (From: tahome izwah <email@hidden>)
 >RE: Cocoa and future (From: john smith <email@hidden>)

  • Prev by Date: RE: Cocoa and future
  • Next by Date: Re: Cocoa and future
  • Previous by thread: RE: Cocoa and future
  • Next by thread: Re: Cocoa and future
  • Index(es):
    • Date
    • Thread