• 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: CGContextSetStyle console log error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGContextSetStyle console log error?


  • Subject: Re: CGContextSetStyle console log error?
  • From: Scott Thompson <email@hidden>
  • Date: Mon, 27 Aug 2007 11:19:13 -0500


On Aug 27, 2007, at 10:49 AM, Andrew Merenbach wrote:

Hi, Felix,

Pardon me if I'm wrong, but rather than calling -drawRect: directly, couldn't you call -display or -displayIfNeeded (or even - displayIfNeededIgnoringOpacity) in order to force the redrawing of your view?

More than "couldn't you" I would say "shouldn't you". The answer of course is "Yes, you should". Although you really shouldn't call any of these directly unless you have VERY specific needs. You should be using one of the "setNeedsDisplay" variants.


But the person that posted that did say they were badly coded unit tests :-)

Scott

_______________________________________________

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


References: 
 >CGContextSetStyle console log error? (From: Keith Blount <email@hidden>)
 >Re: CGContextSetStyle console log error? (From: Felix Franz <email@hidden>)
 >Re: CGContextSetStyle console log error? (From: Andrew Merenbach <email@hidden>)

  • Prev by Date: Re: CGContextSetStyle console log error?
  • Next by Date: Re: Newbie question about _NSSize and NSSize
  • Previous by thread: Re: CGContextSetStyle console log error?
  • Next by thread: Re: CGContextSetStyle console log error?
  • Index(es):
    • Date
    • Thread