Re: Clipping subview drawing to arbitrary path or image (iPhone)

2010-01-17 Thread Rick Mann
On Jan 16, 2010, at 21:23:16, David Duncan wrote: > I'm not certain where you see that comment, but it is incorrect (with respect > to iPhone OS 3.x – the mask property did not exist on 2.x). Scroll to the bottom of this page: http://developer.apple.com/Mac/library/documentation/Cocoa/Conceptu

Re: Clipping subview drawing to arbitrary path or image (iPhone)

2010-01-16 Thread David Duncan
On Jan 15, 2010, at 5:07 PM, Rick Mann wrote: > Hmm. I tried some experiments with your suggestion, and seemed to be getting > masking with the inverse of what I specified. So I looked at the docs for the > mask property, and there's this note: "iPhone OS Note: As a performance > consideration,

Re: Clipping subview drawing to arbitrary path or image (iPhone)

2010-01-15 Thread Rick Mann
On Jan 15, 2010, at 16:16:15, David Duncan wrote: > On Jan 15, 2010, at 4:10 PM, Rick Mann wrote: > >>> If not, this could be done (with performance penalty) using the layer's >>> mask property. Simplest way I can think is to make a new layer, assign the >>> contents of the parent layer to tha

Re: Clipping subview drawing to arbitrary path or image (iPhone)

2010-01-15 Thread David Duncan
On Jan 15, 2010, at 4:10 PM, Rick Mann wrote: >> If not, this could be done (with performance penalty) using the layer's mask >> property. Simplest way I can think is to make a new layer, assign the >> contents of the parent layer to that new layer's contents, then assign that >> layer as the m

Re: Clipping subview drawing to arbitrary path or image (iPhone)

2010-01-15 Thread Rick Mann
On Jan 15, 2010, at 15:53:29, David Duncan wrote: > On Jan 15, 2010, at 2:31 PM, Rick Mann wrote: > >> Hi. We have a requirement to clip a set of subviews' drawing to an arbitrary >> path or clip image specified by a containing (parent) view. Is there any way >> to accomplish this? > > > Do

Re: Clipping subview drawing to arbitrary path or image (iPhone)

2010-01-15 Thread David Duncan
On Jan 15, 2010, at 2:31 PM, Rick Mann wrote: > Hi. We have a requirement to clip a set of subviews' drawing to an arbitrary > path or clip image specified by a containing (parent) view. Is there any way > to accomplish this? Do the subviews move? If not, it would seem that the best way to dea

Clipping subview drawing to arbitrary path or image (iPhone)

2010-01-15 Thread Rick Mann
Hi. We have a requirement to clip a set of subviews' drawing to an arbitrary path or clip image specified by a containing (parent) view. Is there any way to accomplish this? UIView, not NSView. TIA, Rick ___ Cocoa-dev mailing list (Cocoa-dev@lists.a