Creating an Offscreen NSView
Creating an Offscreen NSView
- Subject: Creating an Offscreen NSView
- From: Mark Morrill <email@hidden>
- Date: Fri, 20 May 2005 16:01:40 -0600
Hi all,
Is creating an offscreen NSView as easy as:
NSView* myOffscreenView = [[NSView alloc] initWithFrame:theFrame];
And is drawing into it as easy as:
[myOffscreenView drawRect:myDrawRect];
Or getting PDF data from it as easy as:
NSData* myPDF = [myOffscreenView drawRect:myDrawRect];
This seems to be too easy. Is there a catch? How does the view know not
to draw on the screen? How does it allocate a graphics context?
Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden