Re: Drawing an NSImage
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?)