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

NSComboBox Delegates


  • Subject: NSComboBox Delegates
  • From: Charles Ross <email@hidden>
  • Date: Tue, 20 Jun 2006 09:18:59 -0700

I have an NSComboBox with the delegate set to my NSPersistentDocument subclass. I've successfully implemented a comboBoxSelectionDidChange method in the document class, but I also want to catch when the user changes the text without selecting something. I noticed that NSComboBox is a subclass of NSTextField and that this class has a delegate method for textDidChange, which, I would think, would cover the event where the user simply deletes the text in the NSComboBox or enters something not available in the menu. However, when I implement textDidChange in my document class it's never called (as demonstrated with its implementation having a single NSLog() function).

So, my question is, why? Do delegate methods of superclasses not get called? comboBoxSelecitonDidChange does get called, so the delegate is properly set. Am I simply going about this in the wrong way? Is there a better way to capture the user altering the entry in an NSComboBox by typing rather than using the menu?

Thanks,
Chuck Ross
Developer & Writer
mailto:email@hidden
AIM:mer0dyn
web:http://www.chivalrysoftware.com/


_______________________________________________ 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: NSComboBox Delegates
      • From: "Michael Ash" <email@hidden>
  • Prev by Date: Re: Slice a .txt file in lines
  • Next by Date: Re: iPhoto like zooming
  • Previous by thread: Re: mounted drive Aliases problem
  • Next by thread: Re: NSComboBox Delegates
  • Index(es):
    • Date
    • Thread