Re: Ending NSTableView editing via textDidEndEditing
Re: Ending NSTableView editing via textDidEndEditing
- Subject: Re: Ending NSTableView editing via textDidEndEditing
- From: "K. Darcy Otto" <email@hidden>
- Date: Wed, 13 Jun 2007 12:49:14 -0700
Thank you - that did the trick. I hadn't set the NSTableView in
Interface Builder to use the custom class. For future reference
(anyone following this thread), this is what I had to do:
(1) Drag the NewNSTableView.h to the "Instances" (sub)window of
Interface Builder
(2) Select the NSTableView widget in my window
(3) In the inspector, select 'custom class' and pick "NewNSTableView"
Then IB ran the appropriate code and the editing ended. Oh, and I
also added:
- (void)tableView:(NSTableView *)aTableView setObjectValue:(id)
anObject forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex
{
... (other stuff) ...
[tableView deselectAll:self];
}
to the delegate so that no row was selected once editing was finished.
On 13-Jun-07, at 10:30 AM, George Orthwein wrote:
It should get called automatically. I don't see anything wrong in
the code... you did set the table view in Interface Builder to use
the custom class, right? :)
George
_______________________________________________
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