Re: Basic NSGraphicsContext question
Re: Basic NSGraphicsContext question
- Subject: Re: Basic NSGraphicsContext question
- From: Jim Crafton <email@hidden>
- Date: Fri, 04 Jul 2003 21:20:40 -0400
Shawn Erickson wrote:
On Friday, July 4, 2003, at 01:36 PM, Jim Crafton wrote:
First off I'll admit I am a complete newbie to OS X development (I am
coming from a Win32 background).
Is there a way to create an NSGraphicsContext from an image (I guess
similar to
CGCreateBitmapContext ?) to use for drawing, and then render the
contents of the NSGraphicsContext back to the one owned by a Window?
Is it possible to get the NSGraphicsContext that the NSImage uses ?
If not, is it possible to use the lower level Quartz 2D drawing API
and still integrate nicely with Cocoa ?
I was reading up on it, and Quartz has methods to create a bitmap GC,
which is precisely what I want. However I am not sure how this
corresponds to the Cocoa world.
We could be more helpful if we better understood what you are trying
to do, based on the above I am not sure how to answer your question.
I'm trying to port the Visual Component Framework (
http://vcf.sf.net) to
OS X. I wrote it first in Win32 (and a parttial port to GTK2 is also
done, but given that linux is such a pain to develop under...).
I'd like to port it using Cocoa, as that seems to be the preffered way
to go.
This is perhaps not the best introduction I could've made to the
framework, but anyone out there who would like to contribute to the OS X
port I gladly welcome it. I'd like to make it a really solid C++
framework capable of working just as well under OSX as it does under Win32.
If one has any suggestions for the port, and/or the framework in
general, particularly any changes that may be neccessary to make it work
well under OS X, I'd appreciate comments posted to one of the topic's at
the VCF forum:
http://vcf.sourceforge.net/forums/index.php?act=ST&f=5&t=24&s=77ec1c0e1ef6ec870a05892e7bf290b0
Cheers
Jim
_______________________________________________
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.