Let me try character-art to illustrate the issue (forgive the top-post):
+---+
Title: | |= splits on spaces only, counts dups
+---+
Label: word count Label:dup count
+---+
Keywords: |
On 2009 Nov 12, at 18:54, s.ross wrote:
That suggests to me that subclassing NSTextField and allowing a
single controller to register a callback would be the right way to
go, but I'm struggling with how to specify *which* text field
I don't understand the question. You subclass class
s.ross wrote:
How it's implemented now is that I have a separate controller for
each field and the NSTextField delegates to that controller because
for each character, I need to:
- dup-check and possibly count
- change a label to show the count and any dup alerts
- watch for
I'm building an app that has two NSTextFields (prob'ly more before I'm done).
Each of these text fields does word splitting according to different criteria
(comma, optional space for one, and whitespace for the other). One of them
counts the words and checks case-insensitive for dups. The other