• 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
NSTableView edit line, prevent dialog close with return key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView edit line, prevent dialog close with return key


  • Subject: NSTableView edit line, prevent dialog close with return key
  • From: Trygve Inda <email@hidden>
  • Date: Sat, 19 Mar 2016 15:15:12 -0700
  • Thread-topic: NSTableView edit line, prevent dialog close with return key

I have an NSTableView in a sheet. The sheet has an OK button which closes
the sheet (and is the default blue button).

If I am editing a line of text in the NSTableView and press return, I want
the editing to stop and be accepted, but I don't want the sheet to close due
to the OK button accepting the return key as well.

How can I do this?



_______________________________________________

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


  • Prev by Date: Re: iOS - how to make documents visible in iTunes
  • Next by Date: Re: UIDocument with NSFileWrapper
  • Previous by thread: Re: iOS - how to make documents visible in iTunes
  • Next by thread: Re: NSTableView edit line, prevent dialog close with return key
  • Index(es):
    • Date
    • Thread