Re: Adding Type-ahead to tableView
Re: Adding Type-ahead to tableView
- Subject: Re: Adding Type-ahead to tableView
- From: Jan Van Tol <email@hidden>
- Date: Tue, 26 Nov 2002 20:11:56 -0600
On Tuesday, November 26, 2002, at 07:21 PM, Daryn wrote:
On Tuesday, November 26, 2002, at 06:24 PM, Jan Van Tol wrote:
Everything works great, except for one thing. When ever I hit return
to push the default button in my window, it just beeps at me. How
can I work this so that the return key will act normally?
Something similar to this should work:
- (void)insertNewline:(id)sender {
int row = [self selectedRow];
if (row != -1) {
[self editColumn:0 row:row withEvent:nil select:NO];
}
}
I should have been clearer on this. My tableView is uneditable. The
return key is supposed to activate the default button in my window.
Thanks for the response,
-Jan Van Tol
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.