Re: Stop editing session of NSTextField
Re: Stop editing session of NSTextField
- Subject: Re: Stop editing session of NSTextField
- From: Mark Townsend <email@hidden>
- Date: Wed, 24 Feb 2010 10:55:02 -0800
The way that I did it was to change the FirstResponder. Generically I did:
[[self window] makeFirstResponder:self];
This is on a NSWindowController sub-class, but it should work on anything
that you can change the FirstResponder on.
---
Mark Townsend
http://www.markltownsend.com
On Wed, Feb 24, 2010 at 5:05 AM, Nikhil Khandelwal <
email@hidden> wrote:
> Hi,
>
> How can I end the editing session for NSTextField forcefully. I tried
> abortEditing however it does not accept the changes made to NSTextField.
> I want the changes made to NSTextField acceptable when I quit the editing
> session.
> Thanks in advance.
>
> ----
> Nikhil
>
> DISCLAIMER
> ==========
> This e-mail may contain privileged and confidential information which is
> the property of Persistent Systems Ltd. It is intended only for the use of
> the individual or entity to which it is addressed. If you are not the
> intended recipient, you are not authorized to read, retain, copy, print,
> distribute or use this message. If you have received this communication in
> error, please notify the sender and delete all copies of this message.
> Persistent Systems Ltd. does not accept any liability for virus infected
> mails.
> _______________________________________________
>
> 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
>
_______________________________________________
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