• 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: odd drawInsertionPointInRect behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: odd drawInsertionPointInRect behavior


  • Subject: Re: odd drawInsertionPointInRect behavior
  • From: Ken Thomases <email@hidden>
  • Date: Fri, 19 Aug 2016 14:10:50 -0500

On Aug 16, 2016, at 9:31 PM, David Young <email@hidden> 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.
>
> Instead, my method overriding drawInsertionPointInRect is called once
> per pulse.  Each time it is called, turnedOn is true.  […]

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?

Regards,
Ken


_______________________________________________

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


  • Follow-Ups:
    • Re: odd drawInsertionPointInRect behavior
      • From: David Young <email@hidden>
References: 
 >odd drawInsertionPointInRect behavior (From: David Young <email@hidden>)

  • Prev by Date: Re: Resend: array = [NSArray new] or array = [NSArray array]?
  • Next by Date: Re: array = [NSArray new] or array = [NSArray array]?
  • Previous by thread: odd drawInsertionPointInRect behavior
  • Next by thread: Re: odd drawInsertionPointInRect behavior
  • Index(es):
    • Date
    • Thread