• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE:Problems subclassing TextFields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: RE: how to deal with files
  • Next by Date: pasteFont: is a no-op for plain-text text objects?
  • Previous by thread: RE: how to deal with files
  • Next by thread: pasteFont: is a no-op for plain-text text objects?
  • Index(es):
    • Date
    • Thread