Re: odd drawInsertionPointInRect behavior

2016-08-19 Thread David Young
On Fri, Aug 19, 2016 at 02:10:50PM -0500, Ken Thomases wrote: > What happens when you switch away from your app or even from the window with > your text view? Do you get a call with turnedOn being false then? I'm afraid not. In every call, turnedOn == true. Dave -- David Young //\ Tr

Re: odd drawInsertionPointInRect behavior

2016-08-19 Thread Ken Thomases
On Aug 16, 2016, at 9:31 PM, David Young wrote: > > I'm trying to draw my own NSTextView cursor. I expect that for each > pulse of the cursor, drawInsertionPointInRect(_:color:turnedOn:) will be > called twice, once with turnedOn == true and, shortly afterward, again > with turnedOn == false. >

odd drawInsertionPointInRect behavior

2016-08-19 Thread David Young
I'm trying to draw my own NSTextView cursor. I expect that for each pulse of the cursor, drawInsertionPointInRect(_:color:turnedOn:) will be called twice, once with turnedOn == true and, shortly afterward, again with turnedOn == false. Instead, my method overriding drawInsertionPointInRect is cal