• 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
Optimizing Drawing (was Re: Drawing onto NSImageView subclass (Newbie))
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Optimizing Drawing (was Re: Drawing onto NSImageView subclass (Newbie))


  • Subject: Optimizing Drawing (was Re: Drawing onto NSImageView subclass (Newbie))
  • From: mmalcolm crawford <email@hidden>
  • Date: Sun, 8 Feb 2004 23:02:01 -0800

On Feb 8, 2004, at 10:06 PM, Andreas Mayer wrote:

difference I believe, just a best/common practice issue.

From what I know it can make a difference. If you want the view to redraw, just send it setNeedsDisplay: or setNeedsDisplayInRect:.


setNeedsDisplayInRect: is better, particularly on Panther, but see new Tech Note:

<http://developer.apple.com/technotes/tn2002/tn2107.html>

"Working around Incorrect -needsToDrawRect: Behavior in Custom View Classes"

mmalc
_______________________________________________
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.

References: 
 >Re: Drawing onto NSImageView subclass (Newbie) (From: Alan Cook <email@hidden>)
 >Re: Drawing onto NSImageView subclass (Newbie) (From: Andreas Mayer <email@hidden>)

  • Prev by Date: identification of preference modules and making them visible.
  • Next by Date: NSButtonCell textattachment
  • Previous by thread: Re: Drawing onto NSImageView subclass (Newbie)
  • Next by thread: Re: Drawing onto NSImageView subclass (Newbie)
  • Index(es):
    • Date
    • Thread