Re: controlTextDidChange, backspace possible?
Re: controlTextDidChange, backspace possible?
- Subject: Re: controlTextDidChange, backspace possible?
- From: Harilaos Skiadas <email@hidden>
- Date: Tue, 14 Sep 2004 10:01:02 -0700 (PDT)
--- j o a r <email@hidden> wrote:
> To override you need to subclass, and that's
> something I try to avoid
> if possible.
>
Good point. I would be interested in that case if you
have a suggestion how to approach my problem with a
text field: I basically want a particular behavior to
happen when the up and down arrows are pressed, namely
the user would then be moving through a history list
and the text field would each time change according to
the entry in the history list. At the moment I have
subclassed the text field and implemented
performKeyEquivalents there, setting the desired
behavior. Also I wanted some drag and drop
functionality, which I have also implemented there.
But I feel that the text field does not really need to
know about the history list and the up/down arrow
functionality, nor about the drag and drop thing (Ok,
that's bad design on my part, I probably want the
controller for my window, which is also the delegate
of the field, to handle that.), rather, its delegate
should know. What would be the best way to implement
all this? In particular, if I want all this in the
delegate, what methods should I be implementing? Or is
there a whole different way I should be going at it?
Haris
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
_______________________________________________
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