reuss wrote: > If i would like to restrict the number of letters of user input in > textfield (eg. max. 30 to put in database), how can i do it?
When using an NSTextView, you would implement -textView:shouldChangeTextInRange:replacementString: in the delegate and rejecting the change (by returning NO) if it would cause the string to become too long. In an NSTextField, the text field instance sets itself as the delegate for the NSTextView field editor, so you could write a custom subclass of NSTextField that implemented -textView:shouldChangeTextInRange:replacementString: and use that instead of a plain NSTextField. (An alternative would be to use formatters, but that isn't implemented yet.) - Alexander Malmberg _______________________________________________ Help-gnustep mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-gnustep
