Recently I was working on MAC application where there was a requirement to select text inside NSTextField as soon as user focus it. In this blog I am going to explain how to do this.
First add a class to your project and name is CustomTextField. It will create two files CustomTextField.h and CustomTextField.m
Open CustomTextField.h file and add following code to it.