• 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
reading NSTableView cell edits before user tabs or enters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

reading NSTableView cell edits before user tabs or enters


  • Subject: reading NSTableView cell edits before user tabs or enters
  • From: Randy Hulett <email@hidden>
  • Date: Fri, 16 Nov 2007 07:43:25 -0800 (PST)

I am using an NSTableview and would like to better trap table cell edits as they happen.

1) I would like to be able to monitor changes to manage updateChangeCount during table cell editing.

2) If the user presses command-S to save, I would like to report the current cell edits/contents to the data source for saving.




I can trap THAT A CELL HAS CHANGED with controlTextDidChange. The problem is that I don't know the mechanism for reading active cell edits before the user tabs or enters (i.e. the content of the changes) and they are reported via:

- (void)tableView:(NSTableView *)aTableView setObjectValue:(id)anObject forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex




There must be some way to provide a row and column to the NSTableView and then to see NSCell edits before they are completed/implemented, right?




Thanks for your help.

Randy




      ____________________________________________________________________________________
Get easy, one-click access to your favorites.
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs
_______________________________________________

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: reading NSTableView cell edits before user tabs or enters
      • From: Joshua Emmons <email@hidden>
    • Re: reading NSTableView cell edits before user tabs or enters
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Crash Reporter for Cocoa Application
  • Next by Date: Re: count how many NSPersistentDocument instances are open, and detect document close
  • Previous by thread: Re: Interface Builder 3.0
  • Next by thread: Re: reading NSTableView cell edits before user tabs or enters
  • Index(es):
    • Date
    • Thread