Re: wantsDefaultClipping set to NO

2013-12-10 Thread Leonardo
do > Da: Kyle Sluder > Data: Thu, 05 Dec 2013 16:12:16 -0800 > A: Leonardo , > Oggetto: Re: wantsDefaultClipping set to NO > > On Thu, Dec 5, 2013, at 01:03 PM, Leonardo wrote: >> I have to draw a NSShadow out of my NSViews' bounds. >> So I overrided the w

Re: wantsDefaultClipping set to NO

2013-12-05 Thread Kyle Sluder
On Thu, Dec 5, 2013, at 01:03 PM, Leonardo wrote: > I have to draw a NSShadow out of my NSViews' bounds. > So I overrided the wantsDefaultClipping methond returning NO. You can't do this. Drawing outside of your view's bounds isn't supported. (More specifically, you must not draw outside of the re

wantsDefaultClipping set to NO

2013-12-05 Thread Leonardo
I have to draw a NSShadow out of my NSViews' bounds. So I overrided the wantsDefaultClipping methond returning NO. That works, but not yet so well as I epxected. For example, when I move the view and setNeedsDisplay:YES, the area outside the view get not refreshed. So I subclassed setNeedsDisplay