• 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: "M. Uli Kusterer" <email@hidden>
  • Date: Tue, 14 Sep 2004 23:35:42 +0200

At 13:53 Uhr -0400 14.09.2004, John Tsombakos wrote:
> From: "Peter Karlsson" <email@hidden>
 Subject: Re: controlTextDidChange, backspace possible?

 Ok, maybe this is better?

 if ([[myTexfieldOutlet stringValue] length] < 33)

 But I still have the problem with my moving cursor.

Peter

I checked the documentation for NSTextField and there is a delegate message:

- (BOOL)shouldBeginTextEditing:(NSText *)textObject

Am I missing the point of this message? (according to the docs: "If it is editable and its delegate responds to control:textShouldBeginEditing:, invokes that method and returns the result.") and the docs of NSControl's control:textShouldBeginEditing: delegate message says:

Your delegate isn't responding to control:textShouldBeginEditing:, I suppose. Maybe you could try overriding that message instead of shouldBeginTextEditing:, maybe?


--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
       "The Witnesses of TeachText are everywhere..."
                   http://www.zathras.de
_______________________________________________
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


References: 
 >Re: controlTextDidChange, backspace possible? (From: John Tsombakos <email@hidden>)

  • Prev by Date: Re: Country codes vs. Language codes
  • Next by Date: Re: controlTextDidChange, backspace possible?
  • Previous by thread: Re: controlTextDidChange, backspace possible?
  • Next by thread: Re: controlTextDidChange, backspace possible?
  • Index(es):
    • Date
    • Thread