Drawing into an NSView
Drawing into an NSView
- Subject: Drawing into an NSView
- From: email@hidden
- Date: Sat, 12 Apr 2003 23:06:13 -0400
On Saturday, April 12, 2003, at 03:55 PM, J. Priimann wrote:
Have you tryed to flush the offscreen buffer to the screen in the end?
[[self window] flushWindow];
-----------------------------------------
Hot Mobiil - helinad, logod ja piltsunumid!
http://portal.hot.ee
I've tried like mad to draw into an NSView (actually, an
NSQuickDrawView), but to no avail. I tried locking the focus and
unlocking the focus and a couple of ways of getting a CGContextRef or
making an NSView the current context, but Lo! there is nothing that is
drawn (even after setNeedsDisplay:). I would supply some code, but I
scrapped it and acquiesced to the custom view drawRect: deal. Please
send me a code snippet that shows how to draw into an NSView
independently of the drawRect: method (from another object or method,
for instance). Thank you.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.