Re: How to eliminate field editor from NSTextField?
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