• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: controlTextDidChange, backspace possible?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: controlTextDidChange, backspace possible?


  • Subject: Re: controlTextDidChange, backspace possible?
  • From: j o a r <email@hidden>
  • Date: Tue, 14 Sep 2004 17:30:02 +0200

To override you need to subclass, and that's something I try to avoid if possible.

Also, yes, you probably need a custom field editor - as "insertText:" is a NSTextView method, and Peter asked for a way to limit the string length in a NSTextField.

j o a r

On 2004-09-14, at 17.19, Harilaos Skiadas wrote:

just wondering, could he also override the insertText:
method to check the length of the string and not send
any text if the string is longer than 32 characters?
If so, where would be the right place to do that?
Would he need a custom field editor?

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: controlTextDidChange, backspace possible?
      • From: Harilaos Skiadas <email@hidden>
References: 
 >Re: controlTextDidChange, backspace possible? (From: Harilaos Skiadas <email@hidden>)

  • Prev by Date: Re: controlTextDidChange, backspace possible?
  • Next by Date: Re: Simple Question: Get NSString of the file name in an NSImage
  • Previous by thread: Re: controlTextDidChange, backspace possible?
  • Next by thread: Re: controlTextDidChange, backspace possible?
  • Index(es):
    • Date
    • Thread