Skip navigation.
 
mlRE:Problems subclassing TextFields
FROM : Jerry LeVan
DATE : Fri Nov 22 20:32:06 2002

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_removed>              http://www.ocs.cz
>private        <email_removed>            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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
No related mails found.