• 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
NSTextView Custom Insertion Point
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView Custom Insertion Point


  • Subject: NSTextView Custom Insertion Point
  • From: Willie Alberty <email@hidden>
  • Date: Thu, 22 Sep 2005 01:22:09 -0700

I'm working on an NSTextView subclass that draws a custom insertion point cursor. I've got the insertion point drawing properly by overriding -drawInsertionPointInRect:color:turnedOn:. If the TextView is waiting for input or if I've moved the insertion point by using the keyboard or mouse, the custom cursor works fine. However, after I type a character, the normal 'thin line' cursor displays for one blink then my custom cursor code starts drawing again.

I suspect there's a different method that is called immediately after text layout that draws this initial insertion point but I can't find it. Any suggestions?

--

Willie Alberty, Owner
Spenlen Media
email@hidden

http://www.spenlen.com/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: NSTextView leaks when closing window with active edit field?
  • Next by Date: Re: How to join NSScrollView and NSTableView programmatically
  • Previous by thread: NSTextView leaks when closing window with active edit field?
  • Next by thread: NSPopUpButton bindings confusion: selectedIndex vs selectedObject vs contentValues etc
  • Index(es):
    • Date
    • Thread