2718.us blog » core animation http://2718.us/blog Miscellaneous Technological Geekery Tue, 18 May 2010 02:42:55 +0000 en hourly 1 http://wordpress.org/?v=3.0.4 NSTextView [Mis]Spelling Underlines Misplaced http://2718.us/blog/2009/07/25/nstextview-misspelling-underlines-misplaced/ http://2718.us/blog/2009/07/25/nstextview-misspelling-underlines-misplaced/#comments Sat, 25 Jul 2009 21:47:15 +0000 2718.us http://2718.us/blog/?p=163 I’ve just spent a total of about 2 hours taking apart and rebuilding an interface window because those little red dotted underlines on misspelled words  in an NSTextView were appearing about a line and a half too high and about 4em to the right.  Net result?  It seems that if core animation is enabled for the content view of a window, which is also the parent view of the NSTextView, spelling underlining becomes very broken.  Adding a custom view inside the content view and enabling core animation for that custom view (and putting the objects that needed their parent to have core animation enabled inside that custom view) seems to have solved the issue.

]]>
http://2718.us/blog/2009/07/25/nstextview-misspelling-underlines-misplaced/feed/ 0