• 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: Adding Type-ahead to tableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Adding Type-ahead to tableView (From: Daryn <email@hidden>)

  • Prev by Date: Re: [OT] Building a dynamic library
  • Next by Date: Re: [OT] Building a dynamic library
  • Previous by thread: Re: Adding Type-ahead to tableView
  • Next by thread: [OT] Building a dynamic library
  • Index(es):
    • Date
    • Thread