Re: controlTextDidChange, backspace possible?
Re: controlTextDidChange, backspace possible?
- Subject: Re: controlTextDidChange, backspace possible?
- From: j o a r <email@hidden>
- Date: Tue, 14 Sep 2004 19:11:16 +0200
Do do that I think that you need to subclass, and I guess that you can
choose between subclassing the text field or it's field editor.
In both cases you can use something like the technique that I outlined
in the recent thread "class needs access to table data source".
To say anything about your drag and drop problem I would need to know
more about what you're doing.
j o a r
On 2004-09-14, at 19.01, Harilaos Skiadas wrote:
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?
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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