• 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
problem with interaction between NSTableView and fieldEditor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with interaction between NSTableView and fieldEditor


  • Subject: problem with interaction between NSTableView and fieldEditor
  • From: Glenn Zelniker <email@hidden>
  • Date: Fri, 6 Apr 2007 16:22:11 -0400

I have an NSTableView and I'm using the dataSource method - setObjectValue:ForTableColumn:row to allow the user to change the value of a table entry. This works fine, but I would like to suppress the table's (or window's) field editor from moving to the next row in the current column. Rather, upon completion, I'd like the field editor to simply "go away." I can do this if I make the table column uneditable, bypass the -setObjectValue:ForTableColumn:row method, set the table's doubleAction to a method where I manually set up the field editor, set the field editor's delegate, and respond to the various NSText-related notifications that get posted. But I'd *really* like to accomplish the same thing "naively," using nothing more than a few extra lines of code in my - setObjectValue:forTableColumn:row method -- something like NSWindow's -endEditing:for method or NSCell's -endEditing : method, neither of which seem to work.

Might anyone have an idea how I can go about this?

Glenn Zelniker

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Core Data Relationships
  • Next by Date: Quick question, to show up a panel window.
  • Previous by thread: Re: Basic Coredata / threading question
  • Next by thread: Re: problem with interaction between NSTableView and fieldEditor
  • Index(es):
    • Date
    • Thread