• 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
Changing NSTableView cell immediately before editing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing NSTableView cell immediately before editing


  • Subject: Changing NSTableView cell immediately before editing
  • From: K.Darcy Otto <email@hidden>
  • Date: Mon, 2 Mar 2009 08:11:52 -0800

I want to change the contents of an NSTableView cell immediately prior to editing, but cannot figure out how to do this. That is, I want to return YES to tableView:aTableView:shouldEditTableColumn:row:, to permit editing to begin, but before editing actually begins, modify the colour and text of the cell that is going to be edited.

I was thinking about putting the code into tableView:aTableView:shouldEditTableColumn:row:; but I'm pretty sure this would not be good form; and in any case, that method is called more than once at the beginning of an edit. Any help would be greatly appreciated.
_______________________________________________


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: Changing NSTableView cell immediately before editing
      • From: "K. Darcy Otto" <email@hidden>
  • Prev by Date: Can't use in/contains operator with collection FIRST
  • Next by Date: Re: enabling Edit menu items in a modal window?
  • Previous by thread: Can't use in/contains operator with collection FIRST
  • Next by thread: Re: Changing NSTableView cell immediately before editing
  • Index(es):
    • Date
    • Thread