We really recommend looking at the approach I described earlier using
NSFormatter subclass for input validation.
Unfortunately, I am not actually formatting or validating anything so
this isn't helpful for me. I am working on a middle-layer framework
and what I am interested in is the text
On 9/21/11, Jens Alfke j...@mooseyard.com wrote:
On Sep 21, 2011, at 7:42 PM, Eric Wing wrote:
I have been using the delegate callback
textField:shouldChangeCharactersInRange:replacementString for
UITextField.
I am trying to port code over to Mac using NSTextField. Is there
something that
Eric,
We really recommend looking at the approach I described earlier using
NSFormatter subclass for input validation.
- (BOOL)isPartialStringValid:(NSString **)partialStringPtr
proposedSelectedRange:(NSRangePointer)proposedSelRangePtr
originalString:(NSString *)origString
Actually, the most of functionality provided by the UITextField method is
better implemented by a formatter subclass with NSTextField.
Aki Inoue
On 2011/09/21, at 19:49, Jens Alfke j...@mooseyard.com wrote:
On Sep 21, 2011, at 7:42 PM, Eric Wing wrote:
I have been using the delegate
I have been using the delegate callback
textField:shouldChangeCharactersInRange:replacementString for
UITextField.
I am trying to port code over to Mac using NSTextField. Is there
something that provides similar functionality?
Thanks,
Eric
--
Beginning iPhone Games Development
On Sep 21, 2011, at 7:42 PM, Eric Wing wrote:
I have been using the delegate callback
textField:shouldChangeCharactersInRange:replacementString for
UITextField.
I am trying to port code over to Mac using NSTextField. Is there
something that provides similar functionality?
Yes, but it’s a