Re: L-shaped custom view in Cocoa?
Re: L-shaped custom view in Cocoa?
- Subject: Re: L-shaped custom view in Cocoa?
- From: Steve Christensen <email@hidden>
- Date: Wed, 04 May 2011 08:40:11 -0700
You could either use a path or a pair of rectangles to clip drawing and test for events such as a mouseDown or tap. You'll need to calculate the dimensions based on the current size of the view.
On May 4, 2011, at 8:21 AM, Vyacheslav Karamov wrote:
> Yes, I understand, I meant want to know how to restrict drawing and responding to events to L-shaped area.
>
> 04-May-11 17:38, Steve Christensen пишет:
>> All views are rectangular in shape. You can restrict drawing and responding to events to an L-shaped area, but the view itself will still be a rectangle.
>>
>>
>> On May 4, 2011, at 6:41 AM, Vyacheslav Karamov wrote:
>>
>>> I need to make custom view in the form of letter L. How to do it?
_______________________________________________
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