I found the source of the problem. The hitTest looked at the wrong view for
subviews. What was misleading me was that still textfields reacted correctly
while textviews did not.
Alex
Am 31.10.2011 um 10:44 schrieb Alexander Reichstadt:
> There remains an issue. NSTextViews underneath the draw
There remains an issue. NSTextViews underneath the drawing view don't respond
to key events. Text can be selected though, but the highlight color of selected
text is grey, as if the textview was not first responder and keyview. Any other
control works correctly though, also textfields.
Alex
A
On Sun, Oct 30, 2011 at 7:22 PM, Steve Sisak wrote:
> It might be worth someone submitting a documentation bug on this.
So what's the number of the documentation bug you filed? ;-)
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
At 7:09 PM -0700 10/30/11, Ken Ferry wrote:
On Oct 30, 2011, at 2:06 PM, Jens Alfke wrote:
> On Oct 30, 2011, at 12:46 PM, Alexander Reichstadt wrote:
> Subviews are always drawn after their superview, so they are
visually in front of it. You can't change that.
> What you can try is adding a
On Oct 30, 2011, at 2:06 PM, Jens Alfke wrote:
>
> On Oct 30, 2011, at 12:46 PM, Alexander Reichstadt wrote:
>
>> given a custom NSView using drawRect to draw, say, a blue rectangle,
>> controls inside that view are always in front of the blue rectangle. Is
>> there a way to draw above contro
Thanks much. I ended up subclassing an NSView to draw the required things,
subclassed another view to be the containing superview and hold controls, and
override in the containing view the addSubview method to always have it call
super and also add the drawing view-subclass at the end. That way
On Oct 30, 2011, at 12:46 PM, Alexander Reichstadt wrote:
> given a custom NSView using drawRect to draw, say, a blue rectangle, controls
> inside that view are always in front of the blue rectangle. Is there a way to
> draw above controls with drawRect? Also putting a view with controls inside
Hi,
given a custom NSView using drawRect to draw, say, a blue rectangle, controls
inside that view are always in front of the blue rectangle. Is there a way to
draw above controls with drawRect? Also putting a view with controls inside
another view that draw in drawRect doesn't change that. Lik