Re: NSTextField delegate that will monitor user input
Re: NSTextField delegate that will monitor user input
- Subject: Re: NSTextField delegate that will monitor user input
- From: Daniel Todd Currie <email@hidden>
- Date: Thu, 4 Dec 2003 14:48:59 -0800
Hope this helps, I'm not terribly experienced with Cocoa...
On 2003 Dec 04, at 14:13, Huyler, Christopher M wrote:
1) Check each character the user enters into a NSTextField to make sure
it is a number or period (for an ip address). If it is, allow it to be
entered, if it isn't, don't allow it to be entered.
Use an NSFormatter. Here's a good simple example:
http://www.lumacode.com/simon/developer.html
2) When the user is finished, check the syntax and save it.
Now you only need one delegate, so checking the syntax and saving
should be easy.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.