• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Drawing into an NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Problem with NSSet's containsObject: and member: methods
  • Next by Date: HELP! - IB ate my nib!
  • Previous by thread: Drawing into an NSView
  • Next by thread: 10.2.5 problem
  • Index(es):
    • Date
    • Thread