Re: Cocoa and future
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