0

I have an NSTextField with a custom font set up in Interface Builder. When it loads, this is how it shows up:

start

When the user starts typing, the cursor moves correctly

second

And then when the user deletes the text it resets to the correct original position

third

Any ideas why this might be happening?

SevenBits
  • 2,836
  • 1
  • 20
  • 33
cwRichardKim
  • 1,030
  • 1
  • 9
  • 15

1 Answers1

0

try to enable the CG layer for the textfield and its superview

.wantsLayer = YES;
Peter Lapisu
  • 19,915
  • 16
  • 123
  • 179