• 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: Window minimize erases content?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Space Required By Text
  • Next by Date: Default Input Field - force NSTextEditField to stay
  • Previous by thread: Re: Window minimize erases content?
  • Next by thread: One last difficulty with Foundation tool
  • Index(es):
    • Date
    • Thread