Re: Aborting NSOutlineView field editor - follow up
Re: Aborting NSOutlineView field editor - follow up
- Subject: Re: Aborting NSOutlineView field editor - follow up
- From: Mark Alldritt <email@hidden>
- Date: Tue, 13 Dec 2005 10:28:20 -0800
- Thread-topic: Aborting NSOutlineView field editor - follow up
Hi All,
A while ago I posted this question, and I received several useful
suggestions. However, the
http://developer.apple.com/documentation/Cocoa/Conceptual/TextEditing/
index.html?
http://developer.apple.com/documentation/Cocoa/Conceptual/
TextEditing/Tasks/FieldEditor.html page sends you in the wrong direction.
It turns out that the simplest solution is to implement the NSResponder
cancelOperation: function:
- (void) cancelOperation:(id) sender
{
[self abortEditing];
}
>
Does anyone have an example illustrating how to let the user abort
>
an edit
>
in an NSOutlineView. I want the user to be able to use Escape or
>
Command-.
>
to abandon their edits.
Cheers
-Mark
------------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 Script Debugger 3.0 - AppleScript IDE
WEB:
http://www.latenightsw.com/ FaceSpan 4.2 - AppleScript RAD
Affrus 1.0 - Perl Debugging
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden