Creating a masked edit control with Objective/C

Hi, ALL,

Is there a way to create a masked edit control, for example, to enter IP address or a phone number?

Let's say I have a mask and want to create a fully functional text control to follow that mask.

I'm also curious why Apple does not provide such a useful control. But that's just rhetorical.

Thank you.