• 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: Aborting NSOutlineView field editor - follow up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Double Help menus
  • Next by Date: Re: [CORE DATA] Core Data and NSArrayController behavior when deleting a NSManagedObject
  • Previous by thread: Re: Double Help menus
  • Next by thread: _arrangedObjects not allocated
  • Index(es):
    • Date
    • Thread