On Jul 8, 2009, at 4:03 PM, David Alter wrote:
I have CGContextRef that I use for some quartz calls. It is a bitmapcontext. I would like to set it as the current context so that I can useNSString drawAtPoint: withAttributes:. I do not see how to do this.NSGraphicContext setCurrentContext: takes a NSGraphicContext and not anCGContextRef. I do not see a way to create a NSGraphicContext with a CGContextRef.
Use +[NSGraphicsContext graphicsContextWithGraphicsPort:flipped:].
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com