• 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: CGContextClip and Passing Graphics Context
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGContextClip and Passing Graphics Context


  • Subject: Re: CGContextClip and Passing Graphics Context
  • From: David Duncan <email@hidden>
  • Date: Tue, 7 Nov 2006 17:07:00 -0800

On Nov 5, 2006, at 3:57 PM, Jordan Evans wrote:

But, when I use a path that is created from lines or arcs, it will not
clip it.  All my paths are closed.  No lines cross.  I don't use
moveToPoint.  So, even-odd rule doesn't apply here.

I took the code out of the child object's and put it in the view's
drawRect: method and it did clip as expected!

I'm not sure why this is happening?  I'm I restricted from passing a
graphics context to child objects and expecting it to work?

If it works in the parent's draw method, it should work in the child's draw methods. Are you sure you aren't using CGContextSaveGState() and CGContextRestoreGState() somewhere in your children's drawing? These could be resetting your clip path.
--
David Duncan
Apple DTS Quartz and Printing
email@hidden




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >CGContextClip and Passing Graphics Context (From: "Jordan Evans" <email@hidden>)

  • Prev by Date: Re: CGContextClip Works with Rect Paths, but not with Arc Paths
  • Next by Date: Re: Cocoa-dev Digest, Vol 3, Issue 1329
  • Previous by thread: CGContextClip and Passing Graphics Context
  • Next by thread: Phone number [:.VIRUS.:]
  • Index(es):
    • Date
    • Thread