• 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
Final (cleanup) drawing event?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Final (cleanup) drawing event?


  • Subject: Final (cleanup) drawing event?
  • From: Clyde McQueen <email@hidden>
  • Date: Fri, 8 Feb 2002 06:51:22 -0800

I've got an NSView subclass with a rather expensive drawRect: operation, but there's a quicker, less accurate substitute that's good enough for resizing the view. I'd like to have window/view resizing invoke the quick version, but then go back after the mouse is up and perform the final, slower draw. How can drawRect: distinguish between the zillions of intermediate draws and the final draw?

Btw, I've noticed that NSSplitView actions generates an update after the mouse up, but NSWindow resizing doesn't, so I can't check the mouse down state. I'm guessing I have to generate some sort of event or notification?
_______________________________________________
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: Is this a bug in NSTextView or a feature?
  • Next by Date: How to keep a subview centered - autoresizing
  • Previous by thread: Re: Is this a bug in NSTextView or a feature?
  • Next by thread: Re: Final (cleanup) drawing event?
  • Index(es):
    • Date
    • Thread