Re: Window minimize erases content?
Re: Window minimize erases content?
- Subject: Re: Window minimize erases content?
- From: Enrique Zamudio <email@hidden>
- Date: Wed, 30 May 2001 17:50:39 -0500
- Organization: Nasoft
A good solution would be to subclass NSView, and then set an instance of
your NSView subclass as the window's contentView. Your subview would
include the NSQuickDrawView and you would have the drawing routines
inside your view.
That way, when the window gets minimized/maximized the view will be
notified (I think) because it will need to be redrawn. Then you can draw
whatever you need.
If the -drawRect: is not send to your view during minimize/maximize
events, perhaps you can set your view to be the delegate of its window,
or at least reigster for the minimize notificacionts, then you will know
when the window is changing and you can draw what you need.
eZL