• 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
ESC while editing NSOutlineView subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ESC while editing NSOutlineView subclass


  • Subject: ESC while editing NSOutlineView subclass
  • From: Kevin Gessner <email@hidden>
  • Date: Thu, 23 Apr 2009 15:04:52 +0200

Hello list,

I've created a subclass of NSOutlineView, MyEditorOutlineView (implements only textDidEndEditing: and keyDown:). When a row is being edited, I'd like the escape key to stop editing. I'm having trouble working with the field editor.

I implemented - (BOOL)control:(NSControl *)control textView: (NSTextView *)textView doCommandBySelector:(SEL)command in MyEditorOutlineView, thinking that the outline view would be the field editor's delegate, and so this method would be called. It's not called. I'm unsure how to check the field editor's delegate, or if I'm even on the right track.

I was also thinking about returning a custom field editor for instances of MyEditorOutlineView, and having the field editor handle ESC itself. This seems like overkill with all the delegate methods available, though.

Thanks in advance for any help.

-- Kevin

Kevin Gessner
http://kevingessner.com
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


  • Follow-Ups:
    • Re: ESC while editing NSOutlineView subclass
      • From: Corbin Dunn <email@hidden>
    • RE: ESC while editing NSOutlineView subclass
      • From: Ulai Beekam <email@hidden>
  • Prev by Date: Re: Core Data Fetches + Transient Properties + NSPredicateEditor = Sadness
  • Next by Date: Re: Accuracy of timers?
  • Previous by thread: Re: image transition while dragging
  • Next by thread: RE: ESC while editing NSOutlineView subclass
  • Index(es):
    • Date
    • Thread