FROM : Daniel Richman
DATE : Sun Jun 22 16:58:36 2008
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_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
>
> This email sent to <email_removed>
DATE : Sun Jun 22 16:58:36 2008
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_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| William Squires | Jun 22, 16:43 | |
| Daniel Richman | Jun 22, 16:58 | |
| Graham Cox | Jun 23, 01:16 |






Cocoa mail archive

