• 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
TextField Delegates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TextField Delegates


  • Subject: TextField Delegates
  • From: Jane <email@hidden>
  • Date: Fri, 28 Dec 2001 08:24:43 -0700

I'm sure I'm missing something elementary but..

I have a NSTextField object in a window created in IB and designated my controller object as its delegate. However, whenever I enter, change the text , or end editing in the NSTextField, none of my delegate methods are sent the expected messages.

I have verified in my awakeFromNib method that my controller is indeed the delegate (via testing using the NSTextField delegate method is equal to self) and, using the NSObject method description, that my IBOutlet is an NSTextField. I put an NSTextView in the window via IB and set my controller as its delegate. My delegate methods do get the expected messages from the NSTextView.

Delegates that I have set up include: textShouldBeginEditing, textDidEndEditing, textDidChange, among others documented for NSTextField. What am I doing wrong???

TIA. Jane


  • Follow-Ups:
    • Re: TextField Delegates
      • From: Sam Goldman <email@hidden>
  • Prev by Date: NSTimer Bug?
  • Next by Date: Re: TextField Delegates
  • Previous by thread: Re: Dumb NSImageView Question
  • Next by thread: Re: TextField Delegates
  • Index(es):
    • Date
    • Thread