• 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: How to eliminate field editor from NSTextField?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to eliminate field editor from NSTextField?


  • Subject: Re: How to eliminate field editor from NSTextField?
  • From: Tron Thomas <email@hidden>
  • Date: Wed, 24 Mar 2010 08:54:54 -0700

I finally figured out how to solve the problem.  The problem was when trying to cancel and edit via the cancelOperation method that gets calls.  The code as calling the abortEditing method on the NSTextField to cancel the text editing, and it also needed to call setEditable with a value of NO on the NSTextField to eliminate the field editor.

On Mar 23, 2010, at 17:10 o'clock, Kyle Sluder wrote:

> On Tue, Mar 23, 2010 at 4:52 PM, Tron Thomas <email@hidden> wrote:
>> I tried that, and it did not work.  The field editor remains sitting on top of the NSTextField.
>
> As I said, there are reasons views might refuse to resign first
> responder (in which case -makeFirstResponder: returns NO). Have you
> checked the conditions I've mentioned?
>
> --Kyle Sluder

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >How to eliminate field editor from NSTextField? (From: Tron Thomas <email@hidden>)
 >Re: How to eliminate field editor from NSTextField? (From: Kyle Sluder <email@hidden>)
 >Re: How to eliminate field editor from NSTextField? (From: Tron Thomas <email@hidden>)
 >Re: How to eliminate field editor from NSTextField? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Attempt to nest an NSCollectionView fails.
  • Next by Date: Re: Can I add my own characters to strings in text fields?
  • Previous by thread: Re: How to eliminate field editor from NSTextField?
  • Next by thread: re-ordering the layers of NSView's subviews
  • Index(es):
    • Date
    • Thread