• 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
Drawing Invalidation Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawing Invalidation Question


  • Subject: Drawing Invalidation Question
  • From: Seth Willits <email@hidden>
  • Date: Sat, 31 Jan 2009 21:41:49 -0800



When inside of -[NSView drawRect:], what's the difference between

- (void)drawRect:(NSRect)rect;
{
      if ([self needsToDrawRect:someRect])
          ....
}


... and ...


- (void)drawRect:(NSRect)rect; { if (NSIntersectsRect(rect, someRect)) .... }


... ?


AFAICT from the documentation, there isn't a difference. Am I misreading something important?




--
Seth Willits



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: maximum theoretical speedup with dual quad processors
  • Next by Date: Re: maximum theoretical speedup with dual quad processors
  • Previous by thread: [MEET] CocoaHeads Mac Developer Meetings
  • Next by thread: +[NSColor highlightColor] returns white instead of actual color
  • Index(es):
    • Date
    • Thread