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:41:56 -0600
Thanks, that works great!
-Jan Van Tol
On Tuesday, November 26, 2002, at 08:29 PM, Daryn wrote:
On Tuesday, November 26, 2002, at 08:11 PM, Jan Van Tol wrote:
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?
I should have been clearer on this. My tableView is uneditable.
The return key is supposed to activate the default button in my
window.
My mistake, I misread the question. I'm pretty sure a newline still
triggers an insertNewline: message even when the view is uneditable.
Try this:
- (void)insertNewline:(id)sender {
[[[self window] defaultButtonCell] performClick:nil];
}
There's probably a neat responder chain way to handle this though.
Daryn
_______________________________________________
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.
_______________________________________________
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.