RE:Problems subclassing TextFields
RE:Problems subclassing TextFields
- Subject: RE:Problems subclassing TextFields
- From: Jerry LeVan <email@hidden>
- Date: Fri, 22 Nov 2002 14:32:06 -0500
Kalie,
This appeared a day of so ago...
>
That's since a text field (or cell or whatever editable text) is
>
active, it ceases to be a text field (or...), and immediately becomes
>
an NSTextView. See the field editor stuff in NSWindow (and elsewhere).
---
>
Ondra Cada
>
OCSoftware: email@hidden http://www.ocs.cz
>
private email@hidden http://www.ocs.cz/oc
I think you need to terminate the editor that is controlling the field, here
is what I did:
Adding: the method call [[self window] endEditingFor:self]; in the
draggingEntered method seems to do the trick :) (Self is the instance of
the subclassed textField under consideration.)
Check out the endEditingFor:object method
--Jerry
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.