• 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: L-shaped custom view in Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >L-shaped custom view in Cocoa? (From: Vyacheslav Karamov <email@hidden>)
 >Re: L-shaped custom view in Cocoa? (From: Steve Christensen <email@hidden>)
 >Re: L-shaped custom view in Cocoa? (From: Vyacheslav Karamov <email@hidden>)

  • Prev by Date: Nested NSCollectionView scroll weirdness
  • Next by Date: NSClassFormString returning nil.
  • Previous by thread: Re: L-shaped custom view in Cocoa?
  • Next by thread: Re: L-shaped custom view in Cocoa?
  • Index(es):
    • Date
    • Thread