Re: NSTextField mouse down event
Kyle Sluder <[email protected]>
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Feb 3, 2010 at 3:22 AM, Christiaan Hofman <[email protected]> wrote: > So if you want to know when a text field gets selected (rather than when editing starts), I think you can only do that by subclassing NSTextFieldCell and overriding the appropriately named method. Text fields really can't be selected; to be more accurate, the field editor is what gets selected. Since the field editor is an instance of NSTextView, you can use listen for its NSTextViewDidChangeSelectionNotification, or you could become its delegate and implement -textViewDidChangeSelection:. --Kyle Sluder