• 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
Re: Wherefore art thou, o NSTableView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wherefore art thou, o NSTableView?


  • Subject: Re: Wherefore art thou, o NSTableView?
  • From: Daniel Richman <email@hidden>
  • Date: Sun, 22 Jun 2008 07:58:36 -0700

You should implement

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

The table view sends this message to you when one of its cells is being edited, and then you do whatever you want with the data.

Daniel


William Squires wrote:
Okay, this one has me stumped. What delegate do I need to implement to handle user editing a cell in an NSTableView (i.e. after they edit it, and hit the <Enter> key to accept.) None of the delegate methods described in the docs seem to fit the bill, but maybe I'm just overlooking it? I've already implemented tableView:shouldEditTableColum:row to return YES.
Or is this a case for connecting actions in IB?


_______________________________________________

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
_______________________________________________

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


References: 
 >Wherefore art thou, o NSTableView? (From: William Squires <email@hidden>)

  • Prev by Date: Wherefore art thou, o NSTableView?
  • Next by Date: Re: Why does this https post request always return "404 Not Found"
  • Previous by thread: Wherefore art thou, o NSTableView?
  • Next by thread: Re: Wherefore art thou, o NSTableView?
  • Index(es):
    • Date
    • Thread