• 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: CGContext - Drawing Circle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGContext - Drawing Circle


  • Subject: Re: CGContext - Drawing Circle
  • From: Markus Spoettl <email@hidden>
  • Date: Thu, 04 Jul 2013 15:13:19 +0200

On 7/4/13 2:35 PM, Dave wrote:
> Here is the call:
>
>
> - (void)drawRect:(CGRect) theDrawRect
> {
> switch (mCheckBoxStyle)
>     {
>     case kCheckBoxStyleBox:
>     [self drawCheckBoxStyleBox:theDrawRect];
>     break;
>
>     case kCheckBoxStyleCircle:
>     [self drawCheckBoxStyleCircle:theDrawRect];
>     break;
>     }
> }

Which is what I suspected. -drawRect: gets the dirty rect NOT the view's bounds (as input parameter). Try passing [self bounds] to your -drawCheckBoxStyleCircle: method instead.

Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________

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: 
 >CGContext - Drawing Circle (From: Dave <email@hidden>)
 >Re: CGContext - Drawing Circle (From: Markus Spoettl <email@hidden>)
 >Re: CGContext - Drawing Circle (From: Dave <email@hidden>)

  • Prev by Date: Re: CGContext - Drawing Circle
  • Next by Date: Re: CGContext - Drawing Circle
  • Previous by thread: Re: CGContext - Drawing Circle
  • Next by thread: Re: CGContext - Drawing Circle
  • Index(es):
    • Date
    • Thread