Re: off screen NSView rendering
Re: off screen NSView rendering
- Subject: Re: off screen NSView rendering
- From: Vince DeMarco <email@hidden>
- Date: Fri, 2 Nov 2001 20:25:52 -0800
On Friday, November 2, 2001, at 06:30 pm, Ruben Westerberg wrote:
Hi all,
Another newbie question.
Is it posible to render a NSView offscreen? I seem to remember that a
NSView must be in a window to be of any use.
Also, i wish to add a subview to an existing vew. I have created the sub
view and the used [parentView addSubview:mySubview] but it doesn't appear.
Am I missing something here?
Render your picture etc. into an NSImage
alloc an NSImage of the right size
lockFocus on it draw in it, the unlockFocus when you are done drawwing.
vince