Re: Drawing in a NSView out side of drawRect
Re: Drawing in a NSView out side of drawRect
- Subject: Re: Drawing in a NSView out side of drawRect
- From: "David Alter" <email@hidden>
- Date: Mon, 22 Dec 2008 13:22:52 -0800
>
> > CGContextRef myContext =
> > (CGContextRef)[[NSGraphicsContext currentContext]graphicsPort];
>
> Right now you're getting the current graphics context, which is purely
> arbitrary. Nothing has set it yet, so you're getting whatever happened
> to be hanging around.
Is there a way to create a NSGraphicsContext for the view?
>
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden