Le 29 oct. 2012 à 15:26, Roland King <r...@rols.org> a écrit : > Doesn't help I'm afraid. If I only have that one, single, path, the even-odd > rule returns odd inside the path/circle so it's inside and the non-zero > returns either 1 or -1 depending on the order of the control points so either > way so that's inside too and in either case they get clipped in, not clipped > out. I think I need two paths, one at the boundary of the context and one > inside it, but I haven't managed to quite get my head around it.
If you’re drawing on a solid background, you can always – as a kludge – draw everything then fill the inside of your path with the background color, which will give you the same result. Of course, if you are dealing with a stack of CALayers, it might be more difficult to find a workaround like this. Vincent _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com