• 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
Re: Drawing an NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing an NSImage


  • Subject: Re: Drawing an NSImage
  • From: Andreas Schweizer <email@hidden>
  • Date: Wed, 18 Jul 2001 18:45:36 +0200

Hi all,

the problem was that I did call drawRect directly to update the view, instead of calling setNeedsUpdate:YES.

Thanks and greetings,
Andy

> I have a subclass of NSView and want to draw an NSImage in my drawRect
> method. Using the code below, the drawing does not occur until I select
> the window that contains the NSView. Am I missing something here? (e.g.
> a 'flush' operation?)


  • Prev by Date: Re: My Several posts on dealloc/cleanup by framework - Summary & Thanks (was: Collection of Cocoa & objc etc.
  • Next by Date: Re: Is it possible to update a single tab of an NSTabView?
  • Previous by thread: Drawing an NSImage
  • Next by thread: [OT] 10.1
  • Index(es):
    • Date
    • Thread