Recently I was working on MAC OSX application where we have a view with some textfields. Where in few textfields where only numeric values are allowed. In this blog I will explain how to do this.
I used NSNumberFormatter for that. First you have to create a class which extends NSNumberFormatter.
Go to your .m file and add new interface.