If you need to draw something to an NSImage off-screen, just
create your image at the correct size, then -lockFocus on it, do the
drawing, -unlockFocus, and you've got a nicely-formed image to do
with whatever you want (composite it to an on-screen view, or set it
as a button's image, etc.).
Hope this helps.
On Jul 27, 2006, at 4:48 PM, Alan Smith wrote:
So, I've never done any "off screen drawing" before and I need some
help with this. To put it bluntly, how do I do it? Or, where do I
// Quotes from yours truly -------------------------
"You don't forget, you just don't remember."
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
"Don't waste your life doing things others have already done."
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