Re: L-shaped custom view in Cocoa?
Re: L-shaped custom view in Cocoa?
- Subject: Re: L-shaped custom view in Cocoa?
- From: Quincey Morris <email@hidden>
- Date: Wed, 04 May 2011 09:52:39 -0700
On May 4, 2011, at 08:38, Ken Thomases wrote:
> For events which have location associated with them, you should check the location and just invoke super for any which fall outside of the L shape.
There's also -[NSView hitTest] for customizing the behavior at a slightly higher lever than redirecting events. This might help an odd-shaped view be a better citizen when placed in a window with other views.
_______________________________________________
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